From 3f5c4a381be2835fe037e6fd28e52d6546c28fe6 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Fri, 29 May 2026 21:18:44 +0300 Subject: [PATCH] Working on phone ui --- resources/w/ui/img/phone/CharHeader001.png | 3 + resources/w/ui/img/phone/ChatListItem001.png | 3 + resources/w/ui/img/phone/ChatListItem002.png | 3 + resources/w/ui/img/phone/ChatListItem003.png | 3 + resources/w/ui/img/phone/ChatListUnread1.png | 3 + resources/w/ui/img/phone/Phone.png | 3 + resources/w/ui/img/phone/Phone002.png | 3 + resources/w/ui/img/phone/PhoneChat001.png | 3 + resources/w/ui/img/phone/PhoneChatList001.png | 3 + resources/w/ui/img/phone/PhoneTest001.png | 3 + resources/w/ui/img/phone/PhoneTest002.png | 3 + resources/w/ui/img/phone/chat01_01in.png | 3 + resources/w/ui/img/phone/chat01_02out.png | 3 + resources/w/ui/screen_phone.json | 25 -- resources/w/ui/screen_phone_chat.json | 90 +++++++ ...screen_phone_chat_list — копия.json | 241 ++++++++++++++++++ resources/w/ui/screen_phone_chat_list.json | 227 +++++++++++++++++ src/Game.cpp | 4 +- src/MenuManager.cpp | 10 +- 19 files changed, 608 insertions(+), 28 deletions(-) create mode 100644 resources/w/ui/img/phone/CharHeader001.png create mode 100644 resources/w/ui/img/phone/ChatListItem001.png create mode 100644 resources/w/ui/img/phone/ChatListItem002.png create mode 100644 resources/w/ui/img/phone/ChatListItem003.png create mode 100644 resources/w/ui/img/phone/ChatListUnread1.png create mode 100644 resources/w/ui/img/phone/Phone.png create mode 100644 resources/w/ui/img/phone/Phone002.png create mode 100644 resources/w/ui/img/phone/PhoneChat001.png create mode 100644 resources/w/ui/img/phone/PhoneChatList001.png create mode 100644 resources/w/ui/img/phone/PhoneTest001.png create mode 100644 resources/w/ui/img/phone/PhoneTest002.png create mode 100644 resources/w/ui/img/phone/chat01_01in.png create mode 100644 resources/w/ui/img/phone/chat01_02out.png delete mode 100644 resources/w/ui/screen_phone.json create mode 100644 resources/w/ui/screen_phone_chat.json create mode 100644 resources/w/ui/screen_phone_chat_list — копия.json create mode 100644 resources/w/ui/screen_phone_chat_list.json diff --git a/resources/w/ui/img/phone/CharHeader001.png b/resources/w/ui/img/phone/CharHeader001.png new file mode 100644 index 0000000..617e663 --- /dev/null +++ b/resources/w/ui/img/phone/CharHeader001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d25c4d0105e670f2d452955417b82a2607e6ebfa9c8104c16c20bdc76e0b7a27 +size 102544 diff --git a/resources/w/ui/img/phone/ChatListItem001.png b/resources/w/ui/img/phone/ChatListItem001.png new file mode 100644 index 0000000..70d935b --- /dev/null +++ b/resources/w/ui/img/phone/ChatListItem001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d3f3bff9e6b678e8dc9439d9d6a8ef405a58b0c98d2eeba82ca55219f55ad73 +size 96694 diff --git a/resources/w/ui/img/phone/ChatListItem002.png b/resources/w/ui/img/phone/ChatListItem002.png new file mode 100644 index 0000000..9cec6b2 --- /dev/null +++ b/resources/w/ui/img/phone/ChatListItem002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d3f081fc8eec6c22b77f748592b3adb9930c628c02f0eed378fbed44fac57e9 +size 96447 diff --git a/resources/w/ui/img/phone/ChatListItem003.png b/resources/w/ui/img/phone/ChatListItem003.png new file mode 100644 index 0000000..14cd22f --- /dev/null +++ b/resources/w/ui/img/phone/ChatListItem003.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3b4da034fa48784826c1ee92029903f93fcb9c8c689a41602e2ca1bdc91221b +size 96508 diff --git a/resources/w/ui/img/phone/ChatListUnread1.png b/resources/w/ui/img/phone/ChatListUnread1.png new file mode 100644 index 0000000..7406701 --- /dev/null +++ b/resources/w/ui/img/phone/ChatListUnread1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c084a5cac1c5c5daf9dd9ad8609e3a58e530389ada7c0f146cd80a355efb7b80 +size 3012 diff --git a/resources/w/ui/img/phone/Phone.png b/resources/w/ui/img/phone/Phone.png new file mode 100644 index 0000000..4aac84b --- /dev/null +++ b/resources/w/ui/img/phone/Phone.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e8e65439bbe093abc3f7f5274497f2b48782293338c210a635f293eeeb64577 +size 6668717 diff --git a/resources/w/ui/img/phone/Phone002.png b/resources/w/ui/img/phone/Phone002.png new file mode 100644 index 0000000..0faa8b5 --- /dev/null +++ b/resources/w/ui/img/phone/Phone002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98b10c7c67efb99df0285e9ca4be25ee8b585e6ea2e7d389137d19e1bba479c4 +size 6668950 diff --git a/resources/w/ui/img/phone/PhoneChat001.png b/resources/w/ui/img/phone/PhoneChat001.png new file mode 100644 index 0000000..cdb61da --- /dev/null +++ b/resources/w/ui/img/phone/PhoneChat001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:435386e704abc981777f2b8c3371e855d2cdd8bb50a163608b07b392abc56a43 +size 6755329 diff --git a/resources/w/ui/img/phone/PhoneChatList001.png b/resources/w/ui/img/phone/PhoneChatList001.png new file mode 100644 index 0000000..46cc9c7 --- /dev/null +++ b/resources/w/ui/img/phone/PhoneChatList001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:678f827cba4860b0d1bbe5f80d218c58eb0597e91948f6ddbd76ab1da0dd040e +size 6682970 diff --git a/resources/w/ui/img/phone/PhoneTest001.png b/resources/w/ui/img/phone/PhoneTest001.png new file mode 100644 index 0000000..e4654ee --- /dev/null +++ b/resources/w/ui/img/phone/PhoneTest001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f7d77e5e3eb18641765ce45acc0893e28c8e04d52c7b77e4df9445eb610218f +size 7372950 diff --git a/resources/w/ui/img/phone/PhoneTest002.png b/resources/w/ui/img/phone/PhoneTest002.png new file mode 100644 index 0000000..495430d --- /dev/null +++ b/resources/w/ui/img/phone/PhoneTest002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91a4d3f796ccc7c179cb48cf95d2fa682ec6931d6e352145cee4e6a8fb4dc003 +size 8411257 diff --git a/resources/w/ui/img/phone/chat01_01in.png b/resources/w/ui/img/phone/chat01_01in.png new file mode 100644 index 0000000..7633891 --- /dev/null +++ b/resources/w/ui/img/phone/chat01_01in.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed01965378ba891b9609827b57943eb5ba55bcc2cc4a5634fc6002acc7e852d1 +size 71100 diff --git a/resources/w/ui/img/phone/chat01_02out.png b/resources/w/ui/img/phone/chat01_02out.png new file mode 100644 index 0000000..e93603c --- /dev/null +++ b/resources/w/ui/img/phone/chat01_02out.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ef9f85e9c2063b127b21d60f19e5229f77fd6a70b2a8ee101cde95595714fc7 +size 10322 diff --git a/resources/w/ui/screen_phone.json b/resources/w/ui/screen_phone.json deleted file mode 100644 index 4c09d40..0000000 --- a/resources/w/ui/screen_phone.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "root": { - "type": "FrameLayout", - "name": "hud_root", - "width": "match_parent", - "height": "match_parent", - "vertical_align": "center", - "horizontal_align": "center", - "children": [ - { - "type": "Button", - "name": "phoneExitButton", - "horizontal_gravity": "center", - "vertical_gravity": "center", - "width": 1232, - "height": 627, - "textures": { - "normal": "resources/w/ui/img/PhoneTest001.png", - "hover": "resources/w/ui/img/PhoneTest001.png", - "pressed": "resources/w/ui/img/PhoneTest001.png" - } - } - ] - } -} \ No newline at end of file diff --git a/resources/w/ui/screen_phone_chat.json b/resources/w/ui/screen_phone_chat.json new file mode 100644 index 0000000..30c0f30 --- /dev/null +++ b/resources/w/ui/screen_phone_chat.json @@ -0,0 +1,90 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "Button", + "name": "phoneExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 0, + "width": "match_parent", + "height": "match_parent", + "textures": { + "normal": "resources/transparent.png", + "hover": "resources/transparent.png", + "pressed": "resources/transparent.png" + } + }, + { + "type": "Button", + "name": "phoneMain", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -60, + "width": 617.4, + "height": 991.2, + "textures": { + "normal": "resources/w/ui/img/phone/PhoneChat001.png", + "hover": "resources/w/ui/img/phone/PhoneChat001.png", + "pressed": "resources/w/ui/img/phone/PhoneChat001.png" + } + }, + { + "type": "TextButton", + "name": "chatTitleButton", + "horizontal_gravity": "center", + "x": 0.0, + "y": 20.0, + "width": 446.25, + "height": 78.4, + "text": "Мама", + "textPaddingY": 16.0, + "textPaddingX": 140.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/CharHeader001.png", + "hover": "resources/w/ui/img/phone/CharHeader001.png", + "pressed": "resources/w/ui/img/phone/CharHeader001.png" + } + }, + { + "type": "StaticImage", + "name": "message01in", + "width": 320.6, + "height": 103.6, + "x" : 430, + "y" : 100, + "horizontal_gravity": "left", + "vertical_gravity": "top", + "texture": "resources/w/ui/img/phone/chat01_01in.png" + }, + { + "type": "StaticImage", + "name": "message02out", + "width": 116.2, + "height": 43.4, + "x" : 430, + "y" : 203.6, + "horizontal_gravity": "right", + "vertical_gravity": "top", + "texture": "resources/w/ui/img/phone/chat01_02out.png" + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui/screen_phone_chat_list — копия.json b/resources/w/ui/screen_phone_chat_list — копия.json new file mode 100644 index 0000000..9dce470 --- /dev/null +++ b/resources/w/ui/screen_phone_chat_list — копия.json @@ -0,0 +1,241 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "Button", + "name": "phoneExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 0, + "width": "match_parent", + "height": "match_parent", + "textures": { + "normal": "resources/transparent.png", + "hover": "resources/transparent.png", + "pressed": "resources/transparent.png" + } + }, + { + "type": "Button", + "name": "phoneMain", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -60, + "width": 617.4, + "height": 991.2, + "textures": { + "normal": "resources/w/ui/img/phone/Phone002.png", + "hover": "resources/w/ui/img/phone/Phone002.png", + "pressed": "resources/w/ui/img/phone/Phone002.png" + } + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "vertical_align": "top", + "horizontal_align": "center", + "spacing": 0, + "x": 0, + "y": 100, + "width": "match_parent", + "height": 800, + "children": [ + { + "type": "FrameLayout", + "name": "chat1frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat1button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Мама", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem001.png", + "hover": "resources/w/ui/img/phone/ChatListItem001.png", + "pressed": "resources/w/ui/img/phone/ChatListItem001.png" + } + }, + { + "type": "TextView", + "name": "chat1msg", + "x": 20.0, + "y": 30.0, + "width": 446.25, + "height": 88.2, + "text": "Я перевела тебе ...", + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ] + } + ] + }, + { + "type": "FrameLayout", + "name": "chat2frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat2button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Бишкек.Новости", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem002.png", + "hover": "resources/w/ui/img/phone/ChatListItem002.png", + "pressed": "resources/w/ui/img/phone/ChatListItem002.png" + } + }, + { + "type": "TextButton", + "name": "chat2secondButton", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "В последнее время ...", + "textPaddingY": 40.0, + "textPaddingX": 100.0, + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ], + "textures": { + "normal": "resources/transparent.png", + "hover": "resources/transparent.png", + "pressed": "resources/transparent.png" + } + } + ] + }, + { + "type": "FrameLayout", + "name": "chat3frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat3button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Айпери", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem003.png", + "hover": "resources/w/ui/img/phone/ChatListItem003.png", + "pressed": "resources/w/ui/img/phone/ChatListItem003.png" + } + }, + { + "type": "StaticImage", + "name": "chat3Unread", + "x" : 408, + "y" : 24, + "width": 28.7, + "height": 28.7, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextButton", + "name": "chat3secondButton", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Бекзат, ты должен ...", + "textPaddingY": 40.0, + "textPaddingX": 100.0, + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ], + "textures": { + "normal": "resources/transparent.png", + "hover": "resources/transparent.png", + "pressed": "resources/transparent.png" + } + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui/screen_phone_chat_list.json b/resources/w/ui/screen_phone_chat_list.json new file mode 100644 index 0000000..783de72 --- /dev/null +++ b/resources/w/ui/screen_phone_chat_list.json @@ -0,0 +1,227 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "Button", + "name": "phoneExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 0, + "width": "match_parent", + "height": "match_parent", + "textures": { + "normal": "resources/transparent.png", + "hover": "resources/transparent.png", + "pressed": "resources/transparent.png" + } + }, + { + "type": "Button", + "name": "phoneMain", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -60, + "width": 617.4, + "height": 991.2, + "textures": { + "normal": "resources/w/ui/img/phone/PhoneChatList001.png", + "hover": "resources/w/ui/img/phone/PhoneChatList001.png", + "pressed": "resources/w/ui/img/phone/PhoneChatList001.png" + } + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "vertical_align": "top", + "horizontal_align": "center", + "spacing": 0, + "x": 0, + "y": 100, + "width": "match_parent", + "height": 800, + "children": [ + { + "type": "FrameLayout", + "name": "chat1frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat1button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Мама", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem001.png", + "hover": "resources/w/ui/img/phone/ChatListItem001.png", + "pressed": "resources/w/ui/img/phone/ChatListItem001.png" + } + }, + { + "type": "TextView", + "name": "chat1msg", + "x": 100.0, + "y": 36.0, + "width": 446.25, + "height": 88.2, + "text": "Я перевела тебе ...", + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ] + } + ] + }, + { + "type": "FrameLayout", + "name": "chat2frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat2button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Бишкек.Новости", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem002.png", + "hover": "resources/w/ui/img/phone/ChatListItem002.png", + "pressed": "resources/w/ui/img/phone/ChatListItem002.png" + } + }, + { + "type": "TextView", + "name": "chat2msg", + "x": 100.0, + "y": 36.0, + "width": 446.25, + "height": 88.2, + "text": "В последнее время ...", + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ] + } + ] + }, + { + "type": "FrameLayout", + "name": "chat3frame", + "width": 446.25, + "height": 88.2, + "children": [ + { + "type": "TextButton", + "name": "chat3button", + "x": 0.0, + "y": 0.0, + "width": 446.25, + "height": 88.2, + "text": "Айпери", + "textPaddingY": 0.0, + "textPaddingX": 100.0, + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/phone/ChatListItem003.png", + "hover": "resources/w/ui/img/phone/ChatListItem003.png", + "pressed": "resources/w/ui/img/phone/ChatListItem003.png" + } + }, + { + "type": "StaticImage", + "name": "chat3Unread", + "x" : 408, + "y" : 24, + "width": 28.7, + "height": 28.7, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat2msg", + "x": 100.0, + "y": 36.0, + "width": 446.25, + "height": 88.2, + "text": "Бекзат, ты должен ...", + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ] + } + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/src/Game.cpp b/src/Game.cpp index 8b85a4b..6a68a6a 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -196,6 +196,7 @@ namespace ZL uniInteriorParams.npcsJsonPath = "resources/config2/npcs_uni_interior.json"; uniInteriorParams.dialoguesJsonPath = "resources/dialogue/uni_interior_dialogues.json"; + /* uniInteriorParams.navigationJsonPaths = { "resources/navigation/uni_interior0_all_locked.txt", @@ -703,9 +704,8 @@ namespace ZL //if (audioPlayer) audioPlayer->stopMusicAsync(); break; case SDLK_f: - //currentLocation->dialogueSystem.startDialogue("test_choice_dialogue"); + currentLocation->dialogueSystem.startDialogue("dialog_start001"); break; - case SDLK_e: currentLocation->dialogueSystem.startCutscene("test_cutscene_01"); //.startDialogue("test_cutscene_pan_dialogue"); break; diff --git a/src/MenuManager.cpp b/src/MenuManager.cpp index 10b464c..ed333ea 100644 --- a/src/MenuManager.cpp +++ b/src/MenuManager.cpp @@ -81,7 +81,8 @@ namespace ZL { hudStep5aRoot = loadUiFromFile("resources/w/ui/hud_step5a.json", renderer, zipFile); hudStep5bRoot = loadUiFromFile("resources/w/ui/hud_step5b.json", renderer, zipFile); hudStep5abRoot = loadUiFromFile("resources/w/ui/hud_step5ab.json", renderer, zipFile); - phoneScreenRoot = loadUiFromFile("resources/w/ui/screen_phone.json", renderer, zipFile); + //phoneScreenRoot = loadUiFromFile("resources/w/ui/screen_phone_chat_list.json", renderer, zipFile); + phoneScreenRoot = loadUiFromFile("resources/w/ui/screen_phone_chat.json", renderer, zipFile); newInventoryRoot = loadUiFromFile("resources/w/ui/screen_inventory.json", renderer, zipFile); questJournalRoot = loadUiFromFile("resources/w/ui/screen_journal.json", renderer, zipFile); @@ -201,6 +202,13 @@ namespace ZL { uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) { closePhoneScreen(); }); + uiManager.setButtonCallback("phoneMain", [this](const std::string&) { + //Keep the callback + }); + uiManager.setTextButtonCallback("chat1button", [this](const std::string&) { + std::cout << "Hello test " << std::endl; + + }); } void MenuManager::closePhoneScreen() {