From 763ba9eeacd3de95e32b281e1bda5b05f8a9a874 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Sat, 27 Jun 2026 13:50:39 +0300 Subject: [PATCH] Fixing clicking on phone --- resources/w/ui/portrait_screen_phone.json | 30 ++++++++++++++++--- .../w/ui/portrait_screen_phone_bank.json | 14 ++++++--- .../w/ui/portrait_screen_phone_chat1.json | 2 ++ .../w/ui/portrait_screen_phone_chat2.json | 2 ++ .../w/ui/portrait_screen_phone_chat3.json | 2 ++ .../w/ui/portrait_screen_phone_chat_list.json | 2 ++ ...rtrait_screen_phone_chat_list_hint001.json | 2 ++ .../w/ui/portrait_screen_phone_hint001.json | 12 ++++++-- .../ui/portrait_screen_phone_hint001_002.json | 12 ++++++-- .../w/ui/portrait_screen_phone_hint002.json | 12 ++++++-- .../w/ui/portrait_screen_phone_map_dorm.json | 14 ++++++--- .../w/ui/portrait_screen_phone_map_uni.json | 12 ++++++-- .../w/ui/portrait_screen_phone_video.json | 14 ++++++--- resources/w/ui/screen_phone.json | 12 ++++++-- resources/w/ui/screen_phone_bank.json | 12 ++++++-- resources/w/ui/screen_phone_chat1.json | 2 ++ resources/w/ui/screen_phone_chat2.json | 2 ++ resources/w/ui/screen_phone_chat3.json | 2 ++ resources/w/ui/screen_phone_chat_list.json | 2 ++ .../w/ui/screen_phone_chat_list_hint001.json | 2 ++ resources/w/ui/screen_phone_hint001.json | 10 +++++-- resources/w/ui/screen_phone_hint001_002.json | 10 +++++-- resources/w/ui/screen_phone_hint002.json | 12 ++++++-- resources/w/ui/screen_phone_map_dorm.json | 12 ++++++-- resources/w/ui/screen_phone_map_uni.json | 12 ++++++-- resources/w/ui/screen_phone_video.json | 2 ++ src/MenuManager.cpp | 5 +++- 27 files changed, 179 insertions(+), 48 deletions(-) diff --git a/resources/w/ui/portrait_screen_phone.json b/resources/w/ui/portrait_screen_phone.json index 4422e8d..dd4ec44 100644 --- a/resources/w/ui/portrait_screen_phone.json +++ b/resources/w/ui/portrait_screen_phone.json @@ -22,14 +22,36 @@ } }, { - "type": "StaticImage", + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } + }, + { + "type": "Button", + "name": "phoneMain", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -60, + "width": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", @@ -41,7 +63,7 @@ "height": 172, "texture": "resources/w/ui/img/phone2/ClockDay001.png" }, - { + { "type": "StaticImage", "name": "phoneTimeNight", "horizontal_gravity": "center", @@ -51,7 +73,7 @@ "height": 120.4, "texture": "resources/w/ui/img/phone2/ClockNight001.png" }, - { + { "type": "StaticImage", "name": "phoneTimeDawn", "horizontal_gravity": "center", diff --git a/resources/w/ui/portrait_screen_phone_bank.json b/resources/w/ui/portrait_screen_phone_bank.json index 9aa1518..ed03477 100644 --- a/resources/w/ui/portrait_screen_phone_bank.json +++ b/resources/w/ui/portrait_screen_phone_bank.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, - "width": 882, + "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phoneBank/PhoneBank002.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phoneBank/PhoneBank002.png", + "hover": "resources/w/ui/img/phoneBank/PhoneBank002.png", + "pressed": "resources/w/ui/img/phoneBank/PhoneBank002.png" + } }, { "type": "Button", diff --git a/resources/w/ui/portrait_screen_phone_chat1.json b/resources/w/ui/portrait_screen_phone_chat1.json index 8306e0c..0ae9624 100644 --- a/resources/w/ui/portrait_screen_phone_chat1.json +++ b/resources/w/ui/portrait_screen_phone_chat1.json @@ -29,6 +29,8 @@ "y": -60, "width": 882, "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/portrait_screen_phone_chat2.json b/resources/w/ui/portrait_screen_phone_chat2.json index 54258f4..9d4e853 100644 --- a/resources/w/ui/portrait_screen_phone_chat2.json +++ b/resources/w/ui/portrait_screen_phone_chat2.json @@ -29,6 +29,8 @@ "y": -60, "width": 882, "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/portrait_screen_phone_chat3.json b/resources/w/ui/portrait_screen_phone_chat3.json index acac120..6fc86db 100644 --- a/resources/w/ui/portrait_screen_phone_chat3.json +++ b/resources/w/ui/portrait_screen_phone_chat3.json @@ -29,6 +29,8 @@ "y": -60, "width": 882, "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/portrait_screen_phone_chat_list.json b/resources/w/ui/portrait_screen_phone_chat_list.json index 76bdca2..6a4912c 100644 --- a/resources/w/ui/portrait_screen_phone_chat_list.json +++ b/resources/w/ui/portrait_screen_phone_chat_list.json @@ -29,6 +29,8 @@ "y": -60, "width": 882, "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, "textures": { "normal": "resources/w/ui/img/phone/PhoneChatList001.png", "hover": "resources/w/ui/img/phone/PhoneChatList001.png", diff --git a/resources/w/ui/portrait_screen_phone_chat_list_hint001.json b/resources/w/ui/portrait_screen_phone_chat_list_hint001.json index 3a4d1fe..eb64826 100644 --- a/resources/w/ui/portrait_screen_phone_chat_list_hint001.json +++ b/resources/w/ui/portrait_screen_phone_chat_list_hint001.json @@ -48,6 +48,8 @@ "y": -60, "width": 882, "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, "textures": { "normal": "resources/w/ui/img/phone/PhoneChatList001.png", "hover": "resources/w/ui/img/phone/PhoneChatList001.png", diff --git a/resources/w/ui/portrait_screen_phone_hint001.json b/resources/w/ui/portrait_screen_phone_hint001.json index 9d47956..9a9721e 100644 --- a/resources/w/ui/portrait_screen_phone_hint001.json +++ b/resources/w/ui/portrait_screen_phone_hint001.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/portrait_screen_phone_hint001_002.json b/resources/w/ui/portrait_screen_phone_hint001_002.json index 0fb45cd..6308175 100644 --- a/resources/w/ui/portrait_screen_phone_hint001_002.json +++ b/resources/w/ui/portrait_screen_phone_hint001_002.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/portrait_screen_phone_hint002.json b/resources/w/ui/portrait_screen_phone_hint002.json index 6a1664b..639ff88 100644 --- a/resources/w/ui/portrait_screen_phone_hint002.json +++ b/resources/w/ui/portrait_screen_phone_hint002.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/portrait_screen_phone_map_dorm.json b/resources/w/ui/portrait_screen_phone_map_dorm.json index 689a6a8..c0dbd3f 100644 --- a/resources/w/ui/portrait_screen_phone_map_dorm.json +++ b/resources/w/ui/portrait_screen_phone_map_dorm.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, - "width": 882, + "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png", + "hover": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png", + "pressed": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png" + } }, { "type": "Button", diff --git a/resources/w/ui/portrait_screen_phone_map_uni.json b/resources/w/ui/portrait_screen_phone_map_uni.json index 80e6376..2f7a2f9 100644 --- a/resources/w/ui/portrait_screen_phone_map_uni.json +++ b/resources/w/ui/portrait_screen_phone_map_uni.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phoneMap/PhoneMapUni001.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phoneMap/PhoneMapUni001.png", + "hover": "resources/w/ui/img/phoneMap/PhoneMapUni001.png", + "pressed": "resources/w/ui/img/phoneMap/PhoneMapUni001.png" + } }, { "type": "Button", diff --git a/resources/w/ui/portrait_screen_phone_video.json b/resources/w/ui/portrait_screen_phone_video.json index ada8c34..0176052 100644 --- a/resources/w/ui/portrait_screen_phone_video.json +++ b/resources/w/ui/portrait_screen_phone_video.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, - "width": 882, + "width": 882, "height": 1416, - "texture": "resources/w/ui/img/phoneVideo/PhoneVideo003.png" + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui/img/phoneVideo/PhoneVideo003.png", + "hover": "resources/w/ui/img/phoneVideo/PhoneVideo003.png", + "pressed": "resources/w/ui/img/phoneVideo/PhoneVideo003.png" + } }, { "type": "Button", diff --git a/resources/w/ui/screen_phone.json b/resources/w/ui/screen_phone.json index bb49ddc..06a502c 100644 --- a/resources/w/ui/screen_phone.json +++ b/resources/w/ui/screen_phone.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/screen_phone_bank.json b/resources/w/ui/screen_phone_bank.json index 6c08ca0..99cfb5e 100644 --- a/resources/w/ui/screen_phone_bank.json +++ b/resources/w/ui/screen_phone_bank.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phoneBank/PhoneBank002.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phoneBank/PhoneBank002.png", + "hover": "resources/w/ui/img/phoneBank/PhoneBank002.png", + "pressed": "resources/w/ui/img/phoneBank/PhoneBank002.png" + } }, { "type": "Button", diff --git a/resources/w/ui/screen_phone_chat1.json b/resources/w/ui/screen_phone_chat1.json index 696261d..012d5ed 100644 --- a/resources/w/ui/screen_phone_chat1.json +++ b/resources/w/ui/screen_phone_chat1.json @@ -29,6 +29,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/screen_phone_chat2.json b/resources/w/ui/screen_phone_chat2.json index 2089201..ab028bd 100644 --- a/resources/w/ui/screen_phone_chat2.json +++ b/resources/w/ui/screen_phone_chat2.json @@ -29,6 +29,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/screen_phone_chat3.json b/resources/w/ui/screen_phone_chat3.json index 5f14616..1b7f5a7 100644 --- a/resources/w/ui/screen_phone_chat3.json +++ b/resources/w/ui/screen_phone_chat3.json @@ -29,6 +29,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "textures": { "normal": "resources/w/ui/img/phone/PhoneChat001.png", "hover": "resources/w/ui/img/phone/PhoneChat001.png", diff --git a/resources/w/ui/screen_phone_chat_list.json b/resources/w/ui/screen_phone_chat_list.json index efea8af..1a435aa 100644 --- a/resources/w/ui/screen_phone_chat_list.json +++ b/resources/w/ui/screen_phone_chat_list.json @@ -29,6 +29,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "textures": { "normal": "resources/w/ui/img/phone/PhoneChatList001.png", "hover": "resources/w/ui/img/phone/PhoneChatList001.png", diff --git a/resources/w/ui/screen_phone_chat_list_hint001.json b/resources/w/ui/screen_phone_chat_list_hint001.json index 001ad7f..7b79d36 100644 --- a/resources/w/ui/screen_phone_chat_list_hint001.json +++ b/resources/w/ui/screen_phone_chat_list_hint001.json @@ -48,6 +48,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "textures": { "normal": "resources/w/ui/img/phone/PhoneChatList001.png", "hover": "resources/w/ui/img/phone/PhoneChatList001.png", diff --git a/resources/w/ui/screen_phone_hint001.json b/resources/w/ui/screen_phone_hint001.json index 8adfb72..98dbc08 100644 --- a/resources/w/ui/screen_phone_hint001.json +++ b/resources/w/ui/screen_phone_hint001.json @@ -22,14 +22,20 @@ } }, { - "type": "StaticImage", + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/screen_phone_hint001_002.json b/resources/w/ui/screen_phone_hint001_002.json index 650c348..e0a0750 100644 --- a/resources/w/ui/screen_phone_hint001_002.json +++ b/resources/w/ui/screen_phone_hint001_002.json @@ -22,14 +22,20 @@ } }, { - "type": "StaticImage", + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/screen_phone_hint002.json b/resources/w/ui/screen_phone_hint002.json index fdd4010..a72ecb4 100644 --- a/resources/w/ui/screen_phone_hint002.json +++ b/resources/w/ui/screen_phone_hint002.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phone2/Phone002.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phone2/Phone002.png", + "hover": "resources/w/ui/img/phone2/Phone002.png", + "pressed": "resources/w/ui/img/phone2/Phone002.png" + } }, { "type": "StaticImage", diff --git a/resources/w/ui/screen_phone_map_dorm.json b/resources/w/ui/screen_phone_map_dorm.json index 2293ae8..ec62978 100644 --- a/resources/w/ui/screen_phone_map_dorm.json +++ b/resources/w/ui/screen_phone_map_dorm.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png", + "hover": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png", + "pressed": "resources/w/ui/img/phoneMap/PhoneMapDorm001.png" + } }, { "type": "Button", diff --git a/resources/w/ui/screen_phone_map_uni.json b/resources/w/ui/screen_phone_map_uni.json index 85a0805..062a978 100644 --- a/resources/w/ui/screen_phone_map_uni.json +++ b/resources/w/ui/screen_phone_map_uni.json @@ -21,15 +21,21 @@ "pressed": "resources/transparent.png" } }, - { - "type": "StaticImage", + { + "type": "Button", "name": "phoneMain", "horizontal_gravity": "center", "vertical_gravity": "center", "y": -60, "width": 617.4, "height": 991.2, - "texture": "resources/w/ui/img/phoneMap/PhoneMapUni001.png" + "clickZoneWidth": 500, + "clickZoneHeight": 800, + "textures": { + "normal": "resources/w/ui/img/phoneMap/PhoneMapUni001.png", + "hover": "resources/w/ui/img/phoneMap/PhoneMapUni001.png", + "pressed": "resources/w/ui/img/phoneMap/PhoneMapUni001.png" + } }, { "type": "Button", diff --git a/resources/w/ui/screen_phone_video.json b/resources/w/ui/screen_phone_video.json index 85cf04e..289c4d7 100644 --- a/resources/w/ui/screen_phone_video.json +++ b/resources/w/ui/screen_phone_video.json @@ -29,6 +29,8 @@ "y": -60, "width": 617.4, "height": 991.2, + "clickZoneWidth": 500, + "clickZoneHeight": 800, "texture": "resources/w/ui/img/phoneVideo/PhoneVideo003.png" }, { diff --git a/src/MenuManager.cpp b/src/MenuManager.cpp index a52138f..c011efb 100644 --- a/src/MenuManager.cpp +++ b/src/MenuManager.cpp @@ -7,7 +7,6 @@ #include #include - namespace ZL { static int questStatusPriority(Quest::QuestStatus status) { @@ -610,6 +609,7 @@ namespace ZL { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { closePhoneEntirely(); }); + uiManager.setButtonCallback("phoneMain", [this](const std::string&) {}); uiManager.setButtonCallback("phoneMessenger", [this](const std::string&) { openPhoneMessenger(); }); @@ -710,6 +710,7 @@ namespace ZL { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { closePhoneEntirely(); }); + uiManager.setButtonCallback("phoneMain", [this](const std::string&) {}); uiManager.setButtonCallback("buttonBack", [this](const std::string&) { uiManager.popMenu(); uiManager.updateAllLayouts(); @@ -723,6 +724,7 @@ namespace ZL { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { closePhoneEntirely(); }); + uiManager.setButtonCallback("phoneMain", [this](const std::string&) {}); uiManager.setButtonCallback("buttonBack", [this](const std::string&) { uiManager.popMenu(); uiManager.updateAllLayouts(); @@ -768,6 +770,7 @@ namespace ZL { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { closePhoneEntirely(); }); + uiManager.setButtonCallback("phoneMain", [this](const std::string&) {}); uiManager.setButtonCallback("buttonBack", [this](const std::string&) { uiManager.popMenu(); uiManager.updateAllLayouts();