Text rendering properly deals with newline characters. Updated components that were not properly rendering.

This commit is contained in:
2023-12-21 18:06:17 -06:00
parent 5d1e0b5a7a
commit c795e7f891
8 changed files with 39 additions and 16 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ void Menu::InitializeCharacterMenuWindow(){
for(int i=0;i<8;i++){
float x=31+(i%2)*33;
float y=24+(i/2)*28;
float labelX=2+(i%2)*90;
float labelX=0+(i%2)*88;
float labelY=24+(i/2)*28+36;
if(i<6){
y-=8;
@@ -234,7 +234,7 @@ void Menu::InitializeCharacterMenuWindow(){
equipmentSlot->SetShowQuantity(false);
equipmentSlot->SetCompactDescriptions(false);
equipSlot<<=1;
characterMenuWindow->ADD("Equip Label "+slotNames[i],PopupMenuLabel)({{labelX,labelY},{29,16}},slotNames[i],{0.5,1},ComponentAttr::SHADOW)END;
characterMenuWindow->ADD("Equip Label "+slotNames[i],PopupMenuLabel)({{labelX,labelY},{24,16}},slotNames[i],{0.5,1},ComponentAttr::SHADOW)END;
Menu::AddEquipStatListener(equipmentSlot);
}