Add Show Helm/Cloak checkboxes to Equipment tab; expose isHelmVisible/isCloakVisible

This commit is contained in:
Kelsi 2026-03-12 00:13:48 -07:00
parent d072c852f3
commit 928f00de41
2 changed files with 14 additions and 0 deletions

View file

@ -380,6 +380,8 @@ public:
// Display toggles
void toggleHelm();
void toggleCloak();
bool isHelmVisible() const { return helmVisible_; }
bool isCloakVisible() const { return cloakVisible_; }
// Follow/Assist
void followTarget();

View file

@ -1121,6 +1121,18 @@ void InventoryScreen::renderCharacterScreen(game::GameHandler& gameHandler) {
if (ImGui::BeginTabBar("##CharacterTabs")) {
if (ImGui::BeginTabItem("Equipment")) {
renderEquipmentPanel(inventory);
ImGui::Spacing();
ImGui::Separator();
// Appearance visibility toggles
bool helmVis = gameHandler.isHelmVisible();
bool cloakVis = gameHandler.isCloakVisible();
if (ImGui::Checkbox("Show Helm", &helmVis)) {
gameHandler.toggleHelm();
}
ImGui::SameLine();
if (ImGui::Checkbox("Show Cloak", &cloakVis)) {
gameHandler.toggleCloak();
}
ImGui::EndTabItem();
}