Skill menu (re)positioning.
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 6m36s

This commit is contained in:
sigonasr2 2025-06-17 09:51:16 -04:00
parent be05839743
commit 7247d226e8

View File

@ -352,9 +352,9 @@ void Menu::InitializeCharacterMenuWindow(){
std::pair<std::reference_wrapper<Ability>,AbilitySlot>{game->GetPlayer()->GetRightClickAbility(),AbilitySlot::DEFENSIVE}, std::pair<std::reference_wrapper<Ability>,AbilitySlot>{game->GetPlayer()->GetRightClickAbility(),AbilitySlot::DEFENSIVE},
}; };
for(size_t i{0};auto&[ability,slot]:abilityBoxes){ for(size_t i{0};auto&[ability,slot]:abilityBoxes){
float x=0; float x=4;
float y=24+i*28; float y=4+i*28;
float labelX=31; float labelX=28;
float labelY=24+i*28+36; float labelY=24+i*28+36;
auto skillBox{characterMenuWindow->ADD(std::format("Skill Icon Label {}",i),MenuIconButton)(geom2d::rect<float>{{x,y+28},{24,24}},GFX[ability.get().icon].Decal(),DO_NOTHING)END}; auto skillBox{characterMenuWindow->ADD(std::format("Skill Icon Label {}",i),MenuIconButton)(geom2d::rect<float>{{x,y+28},{24,24}},GFX[ability.get().icon].Decal(),DO_NOTHING)END};
auto skillNameLabel{characterMenuWindow->ADD(std::format("Skill Name Label {}",i),MenuLabel)(geom2d::rect<float>{{labelX,labelY},{96,24}},ability.get().GetNameWithPlayerModifiers())END}; auto skillNameLabel{characterMenuWindow->ADD(std::format("Skill Name Label {}",i),MenuLabel)(geom2d::rect<float>{{labelX,labelY},{96,24}},ability.get().GetNameWithPlayerModifiers())END};