Setup framework for scrollbar and buttons in ScrollableWindowComponent. Fixed a bug where disabled buttons would not increment selection check loop. CreateMenu function instead of creating pointer and returning, so windows can add stuff to menus easily.
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
INCLUDE_GFX
|
||||
typedef Attribute A;
|
||||
|
||||
Menu*Menu::InitializeTestSubMenu(){
|
||||
Menu*testSubMenu=new Menu({30,30},{24*4,24*5});
|
||||
void Menu::InitializeTestSubMenu(){
|
||||
Menu*testSubMenu=CreateMenu(TEST_2,{30,30},{24*4,24*5});
|
||||
|
||||
MenuFunc goBack=[](MenuFuncData data){
|
||||
data.menu.stack.pop_back();
|
||||
@@ -61,6 +61,4 @@ Menu*Menu::InitializeTestSubMenu(){
|
||||
};
|
||||
|
||||
testSubMenu->AddComponent("NEXT_THEME",new MenuComponent(TEST_2,{{24*3.5,24*3},{24*1,24*1}},">",themeNext));
|
||||
|
||||
return testSubMenu;
|
||||
}
|
||||
Reference in New Issue
Block a user