@ -48,7 +48,7 @@ INCLUDE_DATA
using A = Attribute ;
using A = Attribute ;
void Menu : : InitializeClassInfoWindow ( ) {
void Menu : : InitializeClassInfoWindow ( ) {
Menu * classInfoWindow = CreateMenu ( CLASS_INFO , CENTERED , game - > GetScreenSize ( ) - vi2d { 24 , 24 } ) ;
Menu * classInfoWindow = CreateMenu ( CLASS_INFO , CENTERED , game - > GetScreenSize ( ) - vi2d { 24 , 0 } ) ;
Menu * classSelectionWindow = Menu : : menus [ CLASS_SELECTION ] ;
Menu * classSelectionWindow = Menu : : menus [ CLASS_SELECTION ] ;
ClassInfo data = classutils : : GetClassInfo ( classSelectionWindow - > S ( A : : CLASS_SELECTION ) ) ;
ClassInfo data = classutils : : GetClassInfo ( classSelectionWindow - > S ( A : : CLASS_SELECTION ) ) ;
@ -66,12 +66,12 @@ void Menu::InitializeClassInfoWindow(){
vf2d abilityIconOffsets = { 0 , 32 } ;
vf2d abilityIconOffsets = { 0 , 32 } ;
classInfoWindow - > ADD ( " Ability 1 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 32 * 0 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } } , data . ability1 ) END ;
classInfoWindow - > ADD ( " Ability 1 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 40 * 0 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } + vf2d { 0 , 8 } } , data . ability1 ) END ;
classInfoWindow - > ADD ( " Ability 2 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 32 * 1 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } } , data . ability2 ) END ;
classInfoWindow - > ADD ( " Ability 2 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 40 * 1 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } + vf2d { 0 , 8 } } , data . ability2 ) END ;
classInfoWindow - > ADD ( " Ability 3 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 32 * 2 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } } , data . ability3 ) END ;
classInfoWindow - > ADD ( " Ability 3 Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 40 * 2 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } + vf2d { 0 , 8 } } , data . ability3 ) END ;
classInfoWindow - > ADD ( " Right Click Ability Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 32 * 3 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } } , data . rightClickAbility ) END ;
classInfoWindow - > ADD ( " Right Click Ability Display " , CharacterAbilityPreviewComponent ) ( geom2d : : rect < float > { healthDisplayLabelPos + vf2d { 0 , 40 * 3 } + abilityIconOffsets , labelSize * vf2d { 1 , 2 } + vf2d { 0 , 8 } } , data . rightClickAbility ) END ;
classInfoWindow - > ADD ( " Back Button " , MenuComponent ) ( geom2d : : rect < float > { { classInfoWindow - > center ( ) . x / 2 , healthDisplayLabelPos . y + 32 * 4 + abilityIconOffsets . y + 12 } , { classInfoWindow - > size . x / 2 , 16 } } , " Back " , [ ] ( MenuFuncData data ) { Menu : : CloseMenu ( ) ; return true ; } ) END ;
classInfoWindow - > ADD ( " Back Button " , MenuComponent ) ( geom2d : : rect < float > { { 0.f , healthDisplayLabelPos . y + 32 * 4 + abilityIconOffsets . y + 16 } , { classInfoWindow - > size . x / 3 - 6.f , 12 } } , " Back " , [ ] ( MenuFuncData data ) { Menu : : CloseMenu ( ) ; return true ; } ) END ;
classInfoWindow - > SetupKeyboardNavigation (
classInfoWindow - > SetupKeyboardNavigation (
[ ] ( MenuType type , Data & returnData ) { //On Open
[ ] ( MenuType type , Data & returnData ) { //On Open