mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add World Map visibility toggle with keybinding support
Implement showWorldMap_ state variable and TOGGLE_WORLD_MAP keybinding integration to allow players to customize the W key binding for opening/ closing the World Map, consistent with other window toggles like Nameplates (V key) and Guild Roster (O key).
This commit is contained in:
parent
3092d406fa
commit
a3e0d36a72
2 changed files with 7 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ private:
|
|||
bool showPlayerInfo = false;
|
||||
bool showSocialFrame_ = false; // O key toggles social/friends list
|
||||
bool showGuildRoster_ = false;
|
||||
bool showWorldMap_ = false; // W key toggles world map
|
||||
std::string selectedGuildMember_;
|
||||
bool showGuildNoteEdit_ = false;
|
||||
bool editingOfficerNote_ = false;
|
||||
|
|
|
|||
|
|
@ -1475,6 +1475,10 @@ void GameScreen::processTargetInput(game::GameHandler& gameHandler) {
|
|||
showNameplates_ = !showNameplates_;
|
||||
}
|
||||
|
||||
if (KeybindingManager::getInstance().isActionPressed(KeybindingManager::Action::TOGGLE_WORLD_MAP)) {
|
||||
showWorldMap_ = !showWorldMap_;
|
||||
}
|
||||
|
||||
// Action bar keys (1-9, 0, -, =)
|
||||
static const SDL_Scancode actionBarKeys[] = {
|
||||
SDL_SCANCODE_1, SDL_SCANCODE_2, SDL_SCANCODE_3, SDL_SCANCODE_4,
|
||||
|
|
@ -4003,6 +4007,8 @@ void GameScreen::updateCharacterTextures(game::Inventory& inventory) {
|
|||
// ============================================================
|
||||
|
||||
void GameScreen::renderWorldMap(game::GameHandler& gameHandler) {
|
||||
if (!showWorldMap_) return;
|
||||
|
||||
auto& app = core::Application::getInstance();
|
||||
auto* renderer = app.getRenderer();
|
||||
if (!renderer) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue