Added XP bar animations and steady increasing progress bar. Added level up animation text on stage completion screen. Refactor enable and disable functions for menu components. Differentiated between disabling due to being outside the window, and manual enable/disabling of components. Fix infinite loop bug with components outside of a scrollable window component not being iterated over. Fix bug with hovering over non-navigational components causing the default component for a menu to be selected while in mouse navigation mode. Release Build 7095.
loadGameWindow->ADD("Online Game Files List",ScrollableWindowComponent)(geom2d::rect<float>{{40,24},{112,116}})END
loadGameWindow->ADD("Online Game Files List",ScrollableWindowComponent)(geom2d::rect<float>{{40,24},{112,116}})END
->Enable(false);
->Disable();
loadGameWindow->ADD("Go Back Button",MenuComponent)(geom2d::rect<float>{{72,148},{48,12}},"Back",[](MenuFuncDatamenu){Menu::CloseMenu();returntrue;})END;
loadGameWindow->ADD("Go Back Button",MenuComponent)(geom2d::rect<float>{{72,148},{48,12}},"Back",[](MenuFuncDatamenu){Menu::CloseMenu();returntrue;})END;
#ifdef __EMSCRIPTEN__
#ifdef __EMSCRIPTEN__
autoofflineCharacterTab=loadGameWindow->ADD("Offline Character Tab",MenuComponent)(geom2d::rect<float>{{-8,4},{102,16}},"Offline Characters",[](MenuFuncDatadata){
autoofflineCharacterTab=loadGameWindow->ADD("Offline Character Tab",MenuComponent)(geom2d::rect<float>{{-8,4},{102,16}},"Offline Characters",[](MenuFuncDatadata){
if(iterationCount==MAX_ITERATIONS)ERR("WARNING! We've entered the max iteration count of automatic Menu navigation! THIS LIKELY MEANS WE'VE DONE SOMETHING TERRIBLY WRONG!");
//Let's transfer some information about our selection being off the screen. Our intention with keyboard controls is that the screen will scroll to the correct location instead.
//Let's transfer some information about our selection being off the screen. Our intention with keyboard controls is that the screen will scroll to the correct location instead.
booldisableOutsideWindow=false;//If set to true, this component was automatically set to not be renderable outside the window.
booldisable=false;//If set to true, this component will not be rendered or updated.
protected:
protected:
intdepth=0;
intdepth=0;
floathoverEffect=0;
floathoverEffect=0;
@ -110,7 +112,6 @@ protected:
boolselectable=true;
boolselectable=true;
boolselectableViaKeyboard=true;
boolselectableViaKeyboard=true;
boolselected=false;
boolselected=false;
booldisabled=false;//If set to true, this component will not be rendered or updated.
boolrenderInMain=true;//If set to false, this component is the responsibility of some other windowing system and won't be rendered or updated via the main window loop.
boolrenderInMain=true;//If set to false, this component is the responsibility of some other windowing system and won't be rendered or updated via the main window loop.
boolvalid=true;//If set to false, this would cause the component to be removed.
boolvalid=true;//If set to false, this would cause the component to be removed.
boolfitToLabel=false;//Will shrink text horizontally to fit the size of the label if the display text is too large.
boolfitToLabel=false;//Will shrink text horizontally to fit the size of the label if the display text is too large.