@ -46,6 +46,7 @@ All rights reserved.
# include "State_OverworldMap.h"
# include "State_OverworldMap.h"
# include "MenuLabel.h"
# include "MenuLabel.h"
# include "Slider.h"
# include "Slider.h"
# include "Checkbox.h"
INCLUDE_DATA
INCLUDE_DATA
INCLUDE_game
INCLUDE_game
@ -83,8 +84,19 @@ void Menu::InitializeSettingsWindow(){
Menu : : menus [ SETTINGS ] - > F ( A : : LAST_SFX_VOLUME ) = val ;
Menu : : menus [ SETTINGS ] - > F ( A : : LAST_SFX_VOLUME ) = val ;
}
}
} ) END ;
} ) END ;
settingsWindow - > ADD ( " Terrain Collision Boxes Checkbox " , Checkbox ) ( geom2d : : rect < float > { { windowSize . x / 2 - 88.f , 84 } , { 16.f , 16.f } } , [ ] ( ToggleFuncData data ) {
return true ;
} , true ) END ;
settingsWindow - > ADD ( " Terrain Collision Boxes Label " , MenuLabel ) ( geom2d : : rect < float > { { windowSize . x / 2 - 68.f , 84 } , { windowSize . x / 2 + 54.f , 16.f } } , " Terrain Collision Boxes " , 1.f , ComponentAttr : : SHADOW ) END ;
settingsWindow - > ADD ( " Keyboard Play Auto-Aim Checkbox " , Checkbox ) ( geom2d : : rect < float > { { windowSize . x / 2 - 88.f , 104 } , { 16.f , 16.f } } , [ ] ( ToggleFuncData data ) {
return true ;
} , false ) END ;
settingsWindow - > ADD ( " Keyboard Play Auto-Aim Label " , MenuLabel ) ( geom2d : : rect < float > { { windowSize . x / 2 - 68.f , 104 } , { windowSize . x / 2 + 54.f , 16.f } } , " Keyboard Aim Assist \n (For Keyboard Only Players) " , 1.f , ComponentAttr : : SHADOW ) END ;
settingsWindow - > ADD ( " Keyboard Bindings Label " , MenuComponent ) ( geom2d : : rect < float > { { 28 , 132.f } , vf2d { windowSize . x - 32 , 24 } } , " Keyboard Bindings " , MenuType : : ENUM_END , DO_NOTHING , vf2d { 1.5f , 2.f } ) END ;
settingsWindow - > ADD ( " Controller Bindings Label " , MenuComponent ) ( geom2d : : rect < float > { { 28 , 160.f } , vf2d { windowSize . x - 32 , 24 } } , " Controller Bindings " , MenuType : : ENUM_END , DO_NOTHING , vf2d { 1.5f , 2.f } ) END ;
settingsWindow - > ADD ( " Go Back " , MenuComponent ) ( geom2d : : rect < float > { windowSize / 2 - vf2d { 36 , 16 } , { 72 , 12 } } , " Go Back " , [ ] ( MenuFuncData data ) {
settingsWindow - > ADD ( " Go Back " , MenuComponent ) ( geom2d : : rect < float > { vf2d { windowSize . x / 2.f , windowSize . y } - vf2d { 36 , 16 } , { 72 , 12 } } , " Go Back " , [ ] ( MenuFuncData data ) {
Menu : : CloseMenu ( ) ;
Menu : : CloseMenu ( ) ;
return true ;
return true ;
} ) END ;
} ) END ;