mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +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
|
// Display toggles
|
||||||
void toggleHelm();
|
void toggleHelm();
|
||||||
void toggleCloak();
|
void toggleCloak();
|
||||||
|
bool isHelmVisible() const { return helmVisible_; }
|
||||||
|
bool isCloakVisible() const { return cloakVisible_; }
|
||||||
|
|
||||||
// Follow/Assist
|
// Follow/Assist
|
||||||
void followTarget();
|
void followTarget();
|
||||||
|
|
|
||||||
|
|
@ -1121,6 +1121,18 @@ void InventoryScreen::renderCharacterScreen(game::GameHandler& gameHandler) {
|
||||||
if (ImGui::BeginTabBar("##CharacterTabs")) {
|
if (ImGui::BeginTabBar("##CharacterTabs")) {
|
||||||
if (ImGui::BeginTabItem("Equipment")) {
|
if (ImGui::BeginTabItem("Equipment")) {
|
||||||
renderEquipmentPanel(inventory);
|
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();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue