mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] The addScript button disappears when needed.
When there is already the maximal number of scripts or when the ScriptStore accordion buffer is full. Change-Id: I0d43d42626da7f060a2309c66f1806b35a29bf38
This commit is contained in:
@@ -23,6 +23,7 @@ public:
|
||||
void renameScriptAtIndex(int i);
|
||||
void deleteScriptAtIndex(int i);
|
||||
void reloadConsole();
|
||||
bool shouldDisplayAddScriptRow();
|
||||
|
||||
/* ViewController */
|
||||
View * view() override { return &m_selectableTableView; }
|
||||
@@ -55,7 +56,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
static constexpr int k_maxNumberOfDisplayableScriptCells = 7; //TODO
|
||||
static constexpr int k_maxNumberOfScripts = 8;
|
||||
static constexpr int k_maxNumberOfDisplayableScriptCells = 5; // = 240/50
|
||||
static constexpr int AddScriptCellType = 0;
|
||||
static constexpr int ScriptCellType = 1;
|
||||
static constexpr KDCoordinate k_rowHeight = 50; //TODO create common parent class with Shared::ListController
|
||||
|
||||
Reference in New Issue
Block a user