mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add Show Helm/Cloak checkboxes to Equipment tab; expose isHelmVisible/isCloakVisible
This commit is contained in:
parent
d072c852f3
commit
928f00de41
2 changed files with 14 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue