From 48598296cfbe68a5fe2f46ff8d8535f5a1de2f07 Mon Sep 17 00:00:00 2001 From: Mino1289 Date: Fri, 24 Sep 2021 11:09:23 +0200 Subject: [PATCH] [apps/code] Increase of number of variables loaded in the variable box --- apps/code/variable_box_controller.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/code/variable_box_controller.h b/apps/code/variable_box_controller.h index f8968b41b..484f5b829 100644 --- a/apps/code/variable_box_controller.h +++ b/apps/code/variable_box_controller.h @@ -43,9 +43,9 @@ public: private: constexpr static size_t k_maxNumberOfDisplayedItems = (Ion::Display::Height - Metric::TitleBarHeight - Metric::PopUpTopMargin) / ScriptNodeCell::k_simpleItemHeight + 2; // +2 if the cells are cropped on top and at the bottom - constexpr static size_t k_maxScriptNodesCount = 32; // Chosen without particular reasons + constexpr static size_t k_maxScriptNodesCount = 128; // Chosen without particular reasons (Number of variables in the variables box) constexpr static int k_totalBuiltinNodesCount = 107; - constexpr static uint8_t k_scriptOriginsCount = 3; + constexpr static uint8_t k_scriptOriginsCount = 8; // Number of scripts loaded in the variable box constexpr static uint8_t k_subtitleCellType = NodeCellType; // We don't care as it is not selectable constexpr static uint8_t k_itemCellType = LeafCellType; // So that upper class NestedMenuController knows it's a leaf constexpr static KDCoordinate k_subtitleRowHeight = 23;