From a40a582b5a8aab15b05152c77b6d5af76e992c4f Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Tue, 7 Jul 2026 19:56:08 +0300 Subject: [PATCH] Working on translations in portrait mode --- resources/dialogue/translate_dialogues.json | 6 +- .../dialogue/uni_interior_dialogues_009.json | 2 +- .../journal/PortraitQuestJournalBkg001.png | 3 - .../journal/PortraitQuestJournalBkg002.png | 3 + .../PortraitQuestJournalItemBkg001.png | 3 - .../PortraitQuestJournalItemBkg002.png | 3 + resources/w/ui/portrait_screen_journal.json | 2 +- .../w/ui/portrait_screen_journal_item.json | 2 +- resources/w/ui/portrait_screen_phone.json | 16 - resources/w/ui/screen_settings.json | 12 +- resources/w/ui_en/hud_step1.json | 4 +- resources/w/ui_en/hud_step2.json | 4 +- resources/w/ui_en/hud_step3.json | 4 +- resources/w/ui_en/hud_step4.json | 4 +- .../ui_en/img/inv/PortraitInventoryBkg001.png | 3 + .../img/inv/PortraitInventoryItemBkg003.png | 3 + .../journal/PortraitQuestJournalBkg002.png | 3 + .../PortraitQuestJournalItemBkg002.png | 3 + .../w/ui_en/portrait_screen_inventory.json | 183 +++++++++++ .../ui_en/portrait_screen_inventory_item.json | 96 ++++++ .../w/ui_en/portrait_screen_journal.json | 293 ++++++++++++++++++ .../w/ui_en/portrait_screen_journal_item.json | 223 +++++++++++++ resources/w/ui_en/portrait_screen_phone.json | 132 ++++++++ .../w/ui_en/portrait_screen_phone_bank.json | 81 +++++ .../w/ui_en/portrait_screen_phone_chat1.json | 85 +++++ .../w/ui_en/portrait_screen_phone_chat2.json | 85 +++++ .../w/ui_en/portrait_screen_phone_chat3.json | 85 +++++ .../portrait_screen_phone_chat_list.json | 247 +++++++++++++++ ...rtrait_screen_phone_chat_list_hint001.json | 266 ++++++++++++++++ .../ui_en/portrait_screen_phone_hint001.json | 170 ++++++++++ .../portrait_screen_phone_hint001_002.json | 208 +++++++++++++ .../ui_en/portrait_screen_phone_hint002.json | 170 ++++++++++ .../ui_en/portrait_screen_phone_map_dorm.json | 70 +++++ .../ui_en/portrait_screen_phone_map_uni.json | 70 +++++ .../w/ui_en/portrait_screen_phone_video.json | 70 +++++ resources/w/ui_en/screen_load.json | 84 +++++ resources/w/ui_en/screen_save.json | 84 +++++ resources/w/ui_en/screen_settings.json | 130 ++++++++ src/MenuManager.cpp | 41 ++- 39 files changed, 2902 insertions(+), 51 deletions(-) delete mode 100644 resources/w/ui/img/journal/PortraitQuestJournalBkg001.png create mode 100644 resources/w/ui/img/journal/PortraitQuestJournalBkg002.png delete mode 100644 resources/w/ui/img/journal/PortraitQuestJournalItemBkg001.png create mode 100644 resources/w/ui/img/journal/PortraitQuestJournalItemBkg002.png create mode 100644 resources/w/ui_en/img/inv/PortraitInventoryBkg001.png create mode 100644 resources/w/ui_en/img/inv/PortraitInventoryItemBkg003.png create mode 100644 resources/w/ui_en/img/journal/PortraitQuestJournalBkg002.png create mode 100644 resources/w/ui_en/img/journal/PortraitQuestJournalItemBkg002.png create mode 100644 resources/w/ui_en/portrait_screen_inventory.json create mode 100644 resources/w/ui_en/portrait_screen_inventory_item.json create mode 100644 resources/w/ui_en/portrait_screen_journal.json create mode 100644 resources/w/ui_en/portrait_screen_journal_item.json create mode 100644 resources/w/ui_en/portrait_screen_phone.json create mode 100644 resources/w/ui_en/portrait_screen_phone_bank.json create mode 100644 resources/w/ui_en/portrait_screen_phone_chat1.json create mode 100644 resources/w/ui_en/portrait_screen_phone_chat2.json create mode 100644 resources/w/ui_en/portrait_screen_phone_chat3.json create mode 100644 resources/w/ui_en/portrait_screen_phone_chat_list.json create mode 100644 resources/w/ui_en/portrait_screen_phone_chat_list_hint001.json create mode 100644 resources/w/ui_en/portrait_screen_phone_hint001.json create mode 100644 resources/w/ui_en/portrait_screen_phone_hint001_002.json create mode 100644 resources/w/ui_en/portrait_screen_phone_hint002.json create mode 100644 resources/w/ui_en/portrait_screen_phone_map_dorm.json create mode 100644 resources/w/ui_en/portrait_screen_phone_map_uni.json create mode 100644 resources/w/ui_en/portrait_screen_phone_video.json create mode 100644 resources/w/ui_en/screen_load.json create mode 100644 resources/w/ui_en/screen_save.json create mode 100644 resources/w/ui_en/screen_settings.json diff --git a/resources/dialogue/translate_dialogues.json b/resources/dialogue/translate_dialogues.json index 4323032..454bbc7 100644 --- a/resources/dialogue/translate_dialogues.json +++ b/resources/dialogue/translate_dialogues.json @@ -1136,9 +1136,9 @@ "en": "I hope I never have to touch this computer again." }, { - "key": "Похоже, компьютеры в теневом режиме не функционируют никак.", - "ru": "Похоже, компьютеры в теневом режиме не функционируют никак.", - "en": "It appears that computers in dark lands do not function at all." + "key": "Похоже, компьютеры здесь не функционируют никак.", + "ru": "Похоже, компьютеры здесь не функционируют никак.", + "en": "It appears that computers here do not function at all." }, { "key": "Тут лежат зачетные книжки студентов.", diff --git a/resources/dialogue/uni_interior_dialogues_009.json b/resources/dialogue/uni_interior_dialogues_009.json index 6a9e317..c517637 100644 --- a/resources/dialogue/uni_interior_dialogues_009.json +++ b/resources/dialogue/uni_interior_dialogues_009.json @@ -1538,7 +1538,7 @@ "type": "Line", "speaker": "Бекзат", "portrait": "resources/dialogue/portrait_hero_neutral.png", - "text": "Похоже, компьютеры в теневом режиме не функционируют никак.", + "text": "Похоже, компьютеры здесь не функционируют никак.", "next": "end_1" }, { diff --git a/resources/w/ui/img/journal/PortraitQuestJournalBkg001.png b/resources/w/ui/img/journal/PortraitQuestJournalBkg001.png deleted file mode 100644 index 9f3b185..0000000 --- a/resources/w/ui/img/journal/PortraitQuestJournalBkg001.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1aa3568edf4144f22060ba441650de7ed63905b223ec369664fedbec0b873af -size 520669 diff --git a/resources/w/ui/img/journal/PortraitQuestJournalBkg002.png b/resources/w/ui/img/journal/PortraitQuestJournalBkg002.png new file mode 100644 index 0000000..3eefc76 --- /dev/null +++ b/resources/w/ui/img/journal/PortraitQuestJournalBkg002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bd59e91e0036873e6dcb3c08be1226b78848ac5662d24d255623a6d7dd835b1 +size 398106 diff --git a/resources/w/ui/img/journal/PortraitQuestJournalItemBkg001.png b/resources/w/ui/img/journal/PortraitQuestJournalItemBkg001.png deleted file mode 100644 index 3a33c52..0000000 --- a/resources/w/ui/img/journal/PortraitQuestJournalItemBkg001.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:beb416d645e32d63ce27970266e6e9d20fedf51a707397679ee7b80640808776 -size 542906 diff --git a/resources/w/ui/img/journal/PortraitQuestJournalItemBkg002.png b/resources/w/ui/img/journal/PortraitQuestJournalItemBkg002.png new file mode 100644 index 0000000..c111665 --- /dev/null +++ b/resources/w/ui/img/journal/PortraitQuestJournalItemBkg002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d7661f912992db136540731df404a0beac3e721cacfcd0d72775925c85ea2dc +size 399551 diff --git a/resources/w/ui/portrait_screen_journal.json b/resources/w/ui/portrait_screen_journal.json index 230be1e..37c3bb6 100644 --- a/resources/w/ui/portrait_screen_journal.json +++ b/resources/w/ui/portrait_screen_journal.json @@ -15,7 +15,7 @@ "y": 68, "horizontal_gravity": "center", "vertical_gravity": "top", - "texture": "resources/w/ui/img/journal/PortraitQuestJournalBkg001.png" + "texture": "resources/w/ui/img/journal/PortraitQuestJournalBkg002.png" }, { "type": "Button", diff --git a/resources/w/ui/portrait_screen_journal_item.json b/resources/w/ui/portrait_screen_journal_item.json index eb8edfd..5a34114 100644 --- a/resources/w/ui/portrait_screen_journal_item.json +++ b/resources/w/ui/portrait_screen_journal_item.json @@ -15,7 +15,7 @@ "y": 68, "horizontal_gravity": "center", "vertical_gravity": "top", - "texture": "resources/w/ui/img/journal/PortraitQuestJournalItemBkg001.png" + "texture": "resources/w/ui/img/journal/PortraitQuestJournalItemBkg002.png" }, { "type": "Button", diff --git a/resources/w/ui/portrait_screen_phone.json b/resources/w/ui/portrait_screen_phone.json index dd4ec44..9ab6405 100644 --- a/resources/w/ui/portrait_screen_phone.json +++ b/resources/w/ui/portrait_screen_phone.json @@ -37,22 +37,6 @@ "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", "name": "phoneTimeDay", diff --git a/resources/w/ui/screen_settings.json b/resources/w/ui/screen_settings.json index bc14771..9e32ce2 100644 --- a/resources/w/ui/screen_settings.json +++ b/resources/w/ui/screen_settings.json @@ -26,7 +26,7 @@ "name": "settingsTitleText", "width": 500, "height": 60, - "text": "Settings", + "text": "Настройки", "fontSize": 40, "textCentered": true, "color": [1.0, 1.0, 1.0, 1.0] @@ -36,7 +36,7 @@ "name": "musicVolumeText", "width": 500, "height": 40, - "text": "Music volume: 100", + "text": "Громкость музыки: 100", "fontSize": 32, "textCentered": false, "topAligned": true, @@ -61,7 +61,7 @@ "name": "soundVolumeText", "width": 500, "height": 40, - "text": "Sound volume: 80", + "text": "Громкость звука: 80", "fontSize": 32, "textCentered": false, "topAligned": true, @@ -86,7 +86,7 @@ "name": "musicToggleButton", "width": 500, "height": 40, - "text": "Music: ON", + "text": "Музыка: ВКЛ", "fontSize": 32, "textCentered": true, "color": [0.2, 0.9, 0.2, 1.0] @@ -96,7 +96,7 @@ "name": "soundToggleButton", "width": 500, "height": 40, - "text": "Sound: ON", + "text": "Звук: ВКЛ", "fontSize": 32, "textCentered": true, "color": [0.2, 0.9, 0.2, 1.0] @@ -106,7 +106,7 @@ "name": "fullScreenToggleButton", "width": 500, "height": 60, - "text": "Full Screen: OFF", + "text": "Полноэкранный режим: ВЫКЛ", "fontSize": 32, "textCentered": true, "color": [0.2, 0.9, 0.2, 1.0] diff --git a/resources/w/ui_en/hud_step1.json b/resources/w/ui_en/hud_step1.json index 2024d50..b2196b7 100644 --- a/resources/w/ui_en/hud_step1.json +++ b/resources/w/ui_en/hud_step1.json @@ -50,8 +50,8 @@ "horizontal_gravity": "center", "texture": "resources/w/ui_en/img/Hint2.png", "pulse": { - "minScale": 0.92, - "maxScale": 1.08, + "minScale": 0.88, + "maxScale": 0.95, "periodMs": 1500 }, "fadeIn": { diff --git a/resources/w/ui_en/hud_step2.json b/resources/w/ui_en/hud_step2.json index 3a23404..66287dd 100644 --- a/resources/w/ui_en/hud_step2.json +++ b/resources/w/ui_en/hud_step2.json @@ -50,8 +50,8 @@ "horizontal_gravity": "center", "texture": "resources/w/ui_en/img/Hint3.png", "pulse": { - "minScale": 0.92, - "maxScale": 1.08, + "minScale": 0.88, + "maxScale": 0.95, "periodMs": 1500 }, "fadeIn": { diff --git a/resources/w/ui_en/hud_step3.json b/resources/w/ui_en/hud_step3.json index 986f720..ca91fb9 100644 --- a/resources/w/ui_en/hud_step3.json +++ b/resources/w/ui_en/hud_step3.json @@ -50,8 +50,8 @@ "horizontal_gravity": "center", "texture": "resources/w/ui_en/img/Hint4.png", "pulse": { - "minScale": 0.92, - "maxScale": 1.08, + "minScale": 0.88, + "maxScale": 0.95, "periodMs": 1500 }, "fadeIn": { diff --git a/resources/w/ui_en/hud_step4.json b/resources/w/ui_en/hud_step4.json index 383af83..f671f65 100644 --- a/resources/w/ui_en/hud_step4.json +++ b/resources/w/ui_en/hud_step4.json @@ -50,8 +50,8 @@ "horizontal_gravity": "center", "texture": "resources/w/ui_en/img/Hint5.png", "pulse": { - "minScale": 0.92, - "maxScale": 1.08, + "minScale": 0.88, + "maxScale": 0.95, "periodMs": 1500 }, "fadeIn": { diff --git a/resources/w/ui_en/img/inv/PortraitInventoryBkg001.png b/resources/w/ui_en/img/inv/PortraitInventoryBkg001.png new file mode 100644 index 0000000..02a3dc7 --- /dev/null +++ b/resources/w/ui_en/img/inv/PortraitInventoryBkg001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f2ae3f07741c446f058bafc54370f9ea5aad5c0462f58dd1a3227b4f4cfc07c +size 224503 diff --git a/resources/w/ui_en/img/inv/PortraitInventoryItemBkg003.png b/resources/w/ui_en/img/inv/PortraitInventoryItemBkg003.png new file mode 100644 index 0000000..56cebc4 --- /dev/null +++ b/resources/w/ui_en/img/inv/PortraitInventoryItemBkg003.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20689b7d68f926cf18fba9a6a7e2dceeb7b411a2747fee27da35688900b87438 +size 231326 diff --git a/resources/w/ui_en/img/journal/PortraitQuestJournalBkg002.png b/resources/w/ui_en/img/journal/PortraitQuestJournalBkg002.png new file mode 100644 index 0000000..44976ba --- /dev/null +++ b/resources/w/ui_en/img/journal/PortraitQuestJournalBkg002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99c29079b2644c20d6d1d06c9f96f9d2ba338656c027631ff7ed4509d8b15631 +size 391735 diff --git a/resources/w/ui_en/img/journal/PortraitQuestJournalItemBkg002.png b/resources/w/ui_en/img/journal/PortraitQuestJournalItemBkg002.png new file mode 100644 index 0000000..97899d4 --- /dev/null +++ b/resources/w/ui_en/img/journal/PortraitQuestJournalItemBkg002.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab4df22131077185aaa5f8dc2cdff0f3592536ccd87f628487a94a0964a9cebf +size 399566 diff --git a/resources/w/ui_en/portrait_screen_inventory.json b/resources/w/ui_en/portrait_screen_inventory.json new file mode 100644 index 0000000..3bd7a51 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_inventory.json @@ -0,0 +1,183 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "StaticImage", + "name": "background", + "width": 640, + "height": 1200, + "y": 68, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui_en/img/inv/PortraitInventoryBkg001.png" + }, + { + "type": "StaticImage", + "name": "allItems", + "width": 220, + "height": 134, + "x": -210, + "y": 135, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui_en/img/inv/InventoryAllButton001.png" + }, + { + "type": "Button", + "name": "inventoryExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 120, + "height": 120, + "x": 267, + "y": 60, + "textures": { + "normal": "resources/w/ui/img/Close001_State=Default.png", + "hover": "resources/w/ui/img/Close001_State=Selected.png", + "pressed": "resources/w/ui/img/Close001_State=Tap.png" + } + }, + { + "type": "Button", + "name": "item1Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": -200, + "y": 250, + "textures": { + "normal": "resources/w/ui/img/inv/ItemSelPhone001.png", + "hover": "resources/w/ui/img/inv/ItemSelPhone001.png", + "pressed": "resources/w/ui/img/inv/ItemSelPhone001.png" + } + }, + { + "type": "Button", + "name": "item2Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": 0, + "y": 250, + "textures": { + "normal": "resources/w/ui/img/inv/ItemJournal001.png", + "hover": "resources/w/ui/img/inv/ItemJournal001.png", + "pressed": "resources/w/ui/img/inv/ItemJournal001.png" + } + }, + { + "type": "Button", + "name": "item3Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": 200, + "y": 250, + "textures": { + "normal": "resources/w/ui/img/inv/ItemKnife001.png", + "hover": "resources/w/ui/img/inv/ItemKnife001.png", + "pressed": "resources/w/ui/img/inv/ItemKnife001.png" + } + }, + { + "type": "Button", + "name": "item4Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": -200, + "y": 450, + "textures": { + "normal": "resources/w/ui/img/inv/ItemNote001.png", + "hover": "resources/w/ui/img/inv/ItemNote001.png", + "pressed": "resources/w/ui/img/inv/ItemNote001.png" + } + }, + { + "type": "Button", + "name": "item5Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": 0, + "y": 450, + "textures": { + "normal": "resources/w/ui/img/inv/ItemCoursework001.png", + "hover": "resources/w/ui/img/inv/ItemCoursework001.png", + "pressed": "resources/w/ui/img/inv/ItemCoursework001.png" + } + }, + { + "type": "Button", + "name": "item6Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": 200, + "y": 450, + "textures": { + "normal": "resources/w/ui/img/inv/ItemReportCard001.png", + "hover": "resources/w/ui/img/inv/ItemReportCard001.png", + "pressed": "resources/w/ui/img/inv/ItemReportCard001.png" + } + }, + { + "type": "Button", + "name": "item7Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": -200, + "y": 650, + "textures": { + "normal": "resources/w/ui/img/inv/ItemBook001.png", + "hover": "resources/w/ui/img/inv/ItemBook001.png", + "pressed": "resources/w/ui/img/inv/ItemBook001.png" + } + }, + { + "type": "Button", + "name": "item8Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": 0, + "y": 650, + "textures": { + "normal": "resources/w/ui/img/inv/ItemBook001.png", + "hover": "resources/w/ui/img/inv/ItemBook001.png", + "pressed": "resources/w/ui/img/inv/ItemBook001.png" + } + }, + { + "type": "Button", + "name": "item9Button", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 274, + "height": 274, + "x": -200, + "y": 650, + "textures": { + "normal": "resources/w/ui/img/inv/ItemBook001.png", + "hover": "resources/w/ui/img/inv/ItemBook001.png", + "pressed": "resources/w/ui/img/inv/ItemBook001.png" + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_inventory_item.json b/resources/w/ui_en/portrait_screen_inventory_item.json new file mode 100644 index 0000000..5b4bba2 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_inventory_item.json @@ -0,0 +1,96 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "StaticImage", + "name": "background", + "width": 640, + "height": 1200, + "y": 68, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui_en/img/inv/PortraitInventoryItemBkg003.png" + }, + { + "type": "Button", + "name": "inventoryExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 120, + "height": 120, + "x": 267, + "y": 60, + "textures": { + "normal": "resources/w/ui/img/Close001_State=Default.png", + "hover": "resources/w/ui/img/Close001_State=Selected.png", + "pressed": "resources/w/ui/img/Close001_State=Tap.png" + } + }, + { + "type": "StaticImage", + "name": "selectedItemPic", + "width": 274, + "height": 274, + "x": -200, + "y": 190, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui/img/inv/ItemSelReportCard001.png" + }, + { + "type": "TextView", + "name": "selectedText", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "x": 10, + "y": 140, + "width": 600, + "height": 137, + "text": "", + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "paddingX": 0.0, + "paddingY": 0.0, + "color": [ + 0.318, + 0.635, + 1.0, + 1.0 + ] + }, + { + "type": "TextView", + "name": "selectedDescription", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "x": 4.0, + "y": 520.0, + "width": 580.0, + "height": 400.0, + "text": "", + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "paddingX": 0.0, + "paddingY": 0.0, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ] + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_journal.json b/resources/w/ui_en/portrait_screen_journal.json new file mode 100644 index 0000000..fb5b947 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_journal.json @@ -0,0 +1,293 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "top", + "horizontal_align": "center", + "children": [ + { + "type": "StaticImage", + "name": "background", + "width": 640, + "height": 1200, + "y": 68, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui_en/img/journal/PortraitQuestJournalBkg002.png" + }, + { + "type": "Button", + "name": "journalExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 120, + "height": 120, + "x": 267, + "y": 60, + "textures": { + "normal": "resources/w/ui/img/Close001_State=Default.png", + "hover": "resources/w/ui/img/Close001_State=Selected.png", + "pressed": "resources/w/ui/img/Close001_State=Tap.png" + } + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "spacing": 0, + "x": 0, + "y": 170, + "width": 640, + "height": 1080, + "children": [ + { + "type": "TextButton", + "name": "item1name", + "x": 0.0, + "y": 0.0, + "width": 640, + "height": 0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkg001.png", + "hover": "resources/w/ui/img/journal/ButtonBkg001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkg001.png" + } + }, + { + "type": "TextButton", + "name": "item2name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item3name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 213.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.02, + 0.875, + 0.447, + 0.6 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item4name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item5name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item6name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item7name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item8name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + }, + { + "type": "TextButton", + "name": "item9name", + "x": 0.0, + "y": 0.0, + "width": 640.0, + "height": 0.0, + "text": "", + "textPaddingY": 8.0, + "textPaddingX": 32.0, + "fontSize": 48, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 1.0 + ], + "textures": { + "normal": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "hover": "resources/w/ui/img/journal/ButtonBkgTransparent001.png", + "pressed": "resources/w/ui/img/journal/ButtonBkgTransparent001.png" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_journal_item.json b/resources/w/ui_en/portrait_screen_journal_item.json new file mode 100644 index 0000000..bf2021a --- /dev/null +++ b/resources/w/ui_en/portrait_screen_journal_item.json @@ -0,0 +1,223 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "top", + "horizontal_align": "center", + "children": [ + { + "type": "StaticImage", + "name": "background", + "width": 640, + "height": 1200, + "y": 68, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "texture": "resources/w/ui_en/img/journal/PortraitQuestJournalItemBkg002.png" + }, + { + "type": "Button", + "name": "journalItemExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 120, + "height": 120, + "x": 267, + "y": 60, + "textures": { + "normal": "resources/w/ui/img/Close001_State=Default.png", + "hover": "resources/w/ui/img/Close001_State=Selected.png", + "pressed": "resources/w/ui/img/Close001_State=Tap.png" + } + }, + { + "type": "TextView", + "name": "quest_title", + "x": 30.0, + "y": 230.0, + "width": 640.0, + "height": 44.0, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "text": "", + "fontSize": 56, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": false, + "wrap": true, + "color": [ + 0.992, + 0.78, + 0.0, + 1.0 + ] + }, + { + "type": "StaticImage", + "name": "objective1checkbox", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 60, + "height": 60, + "x": -255, + "y": 380, + "texture": "resources/w/ui/img/journal/quest_objective_completed.png" + }, + { + "type": "LinearLayout", + "orientation": "horizontal", + "spacing": 0, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "vertical_align": "bottom", + "name": "objective1nameLayout", + "paddingY": 0, + "width": 540.0, + "height": 60.0, + "x": 56, + "y": 370, + "children": [ + { + "type": "TextView", + "name": "objective1name", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "paddingY": -20, + "width": 540.0, + "height": 60.0, + "text": "", + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": false, + "wrap": true, + "color": [ + 0.02, + 0.875, + 0.447, + 0.6 + ] + } + ] + }, + { + "type": "StaticImage", + "name": "objective2checkbox", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 60, + "height": 60, + "x": -255, + "y": 460, + "texture": "resources/w/ui/img/journal/quest_objective_blank.png" + }, + { + "type": "LinearLayout", + "orientation": "horizontal", + "name": "objective2nameLayout", + "spacing": 0, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "vertical_align": "bottom", + "width": 540.0, + "height": 80.0, + "x": 56, + "y": 450, + "children": [ + { + "type": "TextView", + "name": "objective2name", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "paddingY": 0, + "width": 540.0, + "height": 60.0, + "text": "", + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": false, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 0.9 + ] + } + ] + }, + { + "type": "StaticImage", + "name": "objective3checkbox", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 60, + "height": 60, + "x": -255, + "y": 540, + "texture": "resources/w/ui/img/journal/quest_objective_blank.png" + }, + { + "type": "LinearLayout", + "orientation": "horizontal", + "spacing": 0, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "vertical_align": "bottom", + "name": "objective3nameLayout", + "paddingY": 0, + "width": 540.0, + "height": 60.0, + "x": 56, + "y": 530, + "children": [ + { + "type": "TextView", + "name": "objective3name", + "horizontal_gravity": "center", + "vertical_gravity": "top", + "width": 540.0, + "height": 60.0, + "text": "", + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": false, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 0.9 + ] + } + ] + }, + { + "type": "TextView", + "name": "quest_description", + "x": 4.0, + "y": 480.0, + "width": 580.0, + "height": 400.0, + "horizontal_gravity": "center", + "vertical_gravity": "top", + "text": "", + "fontSize": 24, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": false, + "wrap": true, + "color": [ + 0.996, + 0.977, + 0.761, + 0.75 + ] + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone.json b/resources/w/ui_en/portrait_screen_phone.json new file mode 100644 index 0000000..6cef148 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone.json @@ -0,0 +1,132 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone2/Phone002.png", + "hover": "resources/w/ui_en/img/phone2/Phone002.png", + "pressed": "resources/w/ui_en/img/phone2/Phone002.png" + } + }, + { + "type": "StaticImage", + "name": "phoneTimeDay", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 637.5, + "height": 172, + "texture": "resources/w/ui_en/img/phone2/ClockDay001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeNight", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockNight001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeDawn", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockMorning001.png" + }, + { + "type": "Button", + "name": "phoneBank", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconBank001.png", + "hover": "resources/w/ui/img/phone2/IconBank001.png", + "pressed": "resources/w/ui/img/phone2/IconBank001.png" + } + }, + { + "type": "Button", + "name": "phoneTaxi", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconTaxi001.png", + "hover": "resources/w/ui/img/phone2/IconTaxi001.png", + "pressed": "resources/w/ui/img/phone2/IconTaxi001.png" + } + }, + { + "type": "Button", + "name": "phoneVideo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconVideo001.png", + "hover": "resources/w/ui/img/phone2/IconVideo001.png", + "pressed": "resources/w/ui/img/phone2/IconVideo001.png" + } + }, + { + "type": "Button", + "name": "phoneMessenger", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconMessenger001.png", + "hover": "resources/w/ui/img/phone2/IconMessenger001.png", + "pressed": "resources/w/ui/img/phone2/IconMessenger001.png" + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone_bank.json b/resources/w/ui_en/portrait_screen_phone_bank.json new file mode 100644 index 0000000..97fff17 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_bank.json @@ -0,0 +1,81 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phoneBank/PhoneBank002.png", + "hover": "resources/w/ui_en/img/phoneBank/PhoneBank002.png", + "pressed": "resources/w/ui_en/img/phoneBank/PhoneBank002.png" + } + }, + { + "type": "Button", + "name": "buttonBack", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 420, + "x": -240, + "width": 136, + "height": 136, + "textures": { + "normal": "resources/w/ui/img/phoneBank/PhoneBankBack002.png", + "hover": "resources/w/ui/img/phoneBank/PhoneBankBack002.png", + "pressed": "resources/w/ui/img/phoneBank/PhoneBankBack002.png" + } + }, + { + "type": "TextView", + "name": "balanceText", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -20, + "y": 200, + "width": 380, + "height": 80, + "text": "", + "fontSize": 60, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "paddingX": 0.0, + "paddingY": 0.0, + "color": [ + 1.0, + 1.0, + 1.0, + 1.0 + ] + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone_chat1.json b/resources/w/ui_en/portrait_screen_phone_chat1.json new file mode 100644 index 0000000..684c972 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_chat1.json @@ -0,0 +1,85 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "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": "FrameLayout", + "name": "chatMessagesContainer", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "width": "match_parent", + "height": 1000 + }, + { + "type": "StaticImage", + "name": "chatTopCover", + "width": 638, + "height": 101.25, + "x": 0, + "y": 536, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui/img/phone/chat_top_cover001.png" + }, + { + "type": "TextButton", + "name": "chatTitleButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 0.0, + "y": 424, + "width": 638, + "height": 112, + "text": "Aiperi", + "textPaddingY": 28.0, + "textPaddingX": 216.0, + "fontSize": 40, + "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" + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_chat2.json b/resources/w/ui_en/portrait_screen_phone_chat2.json new file mode 100644 index 0000000..e47578b --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_chat2.json @@ -0,0 +1,85 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "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": "FrameLayout", + "name": "chatMessagesContainer", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "width": "match_parent", + "height": 1000 + }, + { + "type": "StaticImage", + "name": "chatTopCover", + "width": 638, + "height": 101.25, + "x": 0, + "y": 536, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui/img/phone/chat_top_cover001.png" + }, + { + "type": "TextButton", + "name": "chatTitleButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 0.0, + "y": 424, + "width": 638, + "height": 112, + "text": "Dad", + "textPaddingY": 28.0, + "textPaddingX": 216.0, + "fontSize": 40, + "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/CharHeader002.png", + "hover": "resources/w/ui/img/phone/CharHeader002.png", + "pressed": "resources/w/ui/img/phone/CharHeader002.png" + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_chat3.json b/resources/w/ui_en/portrait_screen_phone_chat3.json new file mode 100644 index 0000000..7562a47 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_chat3.json @@ -0,0 +1,85 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "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": "FrameLayout", + "name": "chatMessagesContainer", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "width": "match_parent", + "height": 1000 + }, + { + "type": "StaticImage", + "name": "chatTopCover", + "width": 638, + "height": 101.25, + "x": 0, + "y": 536, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui/img/phone/chat_top_cover001.png" + }, + { + "type": "TextButton", + "name": "chatTitleButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 0.0, + "y": 424, + "width": 638, + "height": 112, + "text": "Bishkek.News", + "textPaddingY": 28.0, + "textPaddingX": 216.0, + "fontSize": 40, + "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/CharHeader003.png", + "hover": "resources/w/ui/img/phone/CharHeader003.png", + "pressed": "resources/w/ui/img/phone/CharHeader003.png" + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_chat_list.json b/resources/w/ui_en/portrait_screen_phone_chat_list.json new file mode 100644 index 0000000..0e967ff --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_chat_list.json @@ -0,0 +1,247 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone/PhoneChatList001.png", + "hover": "resources/w/ui_en/img/phone/PhoneChatList001.png", + "pressed": "resources/w/ui_en/img/phone/PhoneChatList001.png" + } + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "spacing": 0, + "x": 0, + "y": 0, + "width": 637.5, + "height": 800, + "children": [ + { + "type": "FrameLayout", + "name": "chat1frame", + "width": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat1button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Aiperi", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": "StaticImage", + "name": "chat1Unread", + "x": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat1msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 126, + "text": "Bekzat, remember we ...", + "fontSize": 32, + "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": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat2button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Dad", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": "StaticImage", + "name": "chat2Unread", + "x": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat2msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 126, + "text": "Bekzat, son, I and ...", + "fontSize": 32, + "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": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat3button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Bishkek.News", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat3msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 124, + "text": "Bishkek residents are ...", + "fontSize": 32, + "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/resources/w/ui_en/portrait_screen_phone_chat_list_hint001.json b/resources/w/ui_en/portrait_screen_phone_chat_list_hint001.json new file mode 100644 index 0000000..5701420 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_chat_list_hint001.json @@ -0,0 +1,266 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone/PhoneChatList001.png", + "hover": "resources/w/ui_en/img/phone/PhoneChatList001.png", + "pressed": "resources/w/ui_en/img/phone/PhoneChatList001.png" + } + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "spacing": 0, + "x": 0, + "y": 0, + "width": 637.5, + "height": 800, + "children": [ + { + "type": "FrameLayout", + "name": "chat1frame", + "width": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat1button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Aiperi", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": "StaticImage", + "name": "chat1Unread", + "x": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat1msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 126, + "text": "Bekzat, remember we ...", + "fontSize": 32, + "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": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat2button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Dad", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": "StaticImage", + "name": "chat2Unread", + "x": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat2msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 126, + "text": "Bekzat, son, I and ...", + "fontSize": 32, + "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": 637.5, + "height": 126, + "children": [ + { + "type": "TextButton", + "name": "chat3button", + "x": 0.0, + "y": 0.0, + "width": 637.5, + "height": 126, + "text": "Bishkek.News", + "textPaddingY": 16.0, + "textPaddingX": 128.0, + "fontSize": 40, + "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": 570, + "y": 50, + "width": 41, + "height": 41, + "texture": "resources/w/ui/img/phone/ChatListUnread1.png" + }, + { + "type": "TextView", + "name": "chat3msg", + "x": 128.0, + "y": 60.0, + "width": 637.5, + "height": 124, + "text": "Bishkek residents are ...", + "fontSize": 32, + "fontPath": "resources/fonts/DroidSans.ttf", + "textCentered": false, + "topAligned": true, + "wrap": true, + "color": [ + 0.8, + 0.8, + 0.8, + 1.0 + ] + } + ] + } + ] + }, + { + "type": "StaticImage", + "name": "hint_m002", + "width": 600, + "height": 234, + "x": 0, + "y": -160, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui_en/img/Hint_m001.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone_hint001.json b/resources/w/ui_en/portrait_screen_phone_hint001.json new file mode 100644 index 0000000..90429c9 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_hint001.json @@ -0,0 +1,170 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone2/Phone002.png", + "hover": "resources/w/ui_en/img/phone2/Phone002.png", + "pressed": "resources/w/ui_en/img/phone2/Phone002.png" + } + }, + { + "type": "StaticImage", + "name": "phoneTimeDay", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 637.5, + "height": 172, + "texture": "resources/w/ui_en/img/phone2/ClockDay001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeNight", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockNight001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeDawn", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockMorning001.png" + }, + { + "type": "Button", + "name": "phoneBank", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconBank001.png", + "hover": "resources/w/ui/img/phone2/IconBank001.png", + "pressed": "resources/w/ui/img/phone2/IconBank001.png" + } + }, + { + "type": "Button", + "name": "phoneTaxi", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconTaxi001.png", + "hover": "resources/w/ui/img/phone2/IconTaxi001.png", + "pressed": "resources/w/ui/img/phone2/IconTaxi001.png" + } + }, + { + "type": "Button", + "name": "phoneVideo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconVideo001.png", + "hover": "resources/w/ui/img/phone2/IconVideo001.png", + "pressed": "resources/w/ui/img/phone2/IconVideo001.png" + } + }, + { + "type": "Button", + "name": "phoneMessenger", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconMessenger001.png", + "hover": "resources/w/ui/img/phone2/IconMessenger001.png", + "pressed": "resources/w/ui/img/phone2/IconMessenger001.png" + } + }, + { + "type": "StaticImage", + "name": "hint_m001arrow", + "width": 48, + "height": 170, + "x": -110, + "y": -400, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui/img/hint_arrow_up.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + }, + { + "type": "StaticImage", + "name": "hint_m001", + "width": 621, + "height": 207, + "x": 0, + "y": -470, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui_en/img/Hint_m002.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone_hint001_002.json b/resources/w/ui_en/portrait_screen_phone_hint001_002.json new file mode 100644 index 0000000..e1832ee --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_hint001_002.json @@ -0,0 +1,208 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone2/Phone002.png", + "hover": "resources/w/ui_en/img/phone2/Phone002.png", + "pressed": "resources/w/ui_en/img/phone2/Phone002.png" + } + }, + { + "type": "StaticImage", + "name": "phoneTimeDay", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 637.5, + "height": 172, + "texture": "resources/w/ui_en/img/phone2/ClockDay001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeNight", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockNight001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeDawn", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockMorning001.png" + }, + { + "type": "Button", + "name": "phoneBank", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconBank001.png", + "hover": "resources/w/ui/img/phone2/IconBank001.png", + "pressed": "resources/w/ui/img/phone2/IconBank001.png" + } + }, + { + "type": "Button", + "name": "phoneTaxi", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconTaxi001.png", + "hover": "resources/w/ui/img/phone2/IconTaxi001.png", + "pressed": "resources/w/ui/img/phone2/IconTaxi001.png" + } + }, + { + "type": "Button", + "name": "phoneVideo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconVideo001.png", + "hover": "resources/w/ui/img/phone2/IconVideo001.png", + "pressed": "resources/w/ui/img/phone2/IconVideo001.png" + } + }, + { + "type": "Button", + "name": "phoneMessenger", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconMessenger001.png", + "hover": "resources/w/ui/img/phone2/IconMessenger001.png", + "pressed": "resources/w/ui/img/phone2/IconMessenger001.png" + } + }, + { + "type": "StaticImage", + "name": "hint_m001arrow", + "width": 48, + "height": 170, + "x": -110, + "y": -400, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui/img/hint_arrow_up.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + }, + { + "type": "StaticImage", + "name": "hint_m001", + "width": 621, + "height": 207, + "x": 0, + "y": -470, + "horizontal_gravity": "center", + "vertical_gravity": "center", + "texture": "resources/w/ui_en/img/Hint_m002.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + }, + { + "type": "StaticImage", + "name": "hint_m003arrow", + "width": 48, + "height": 170, + "x" : 110, + "y" : 130, + "horizontal_gravity": "center", + "vertical_gravity" : "center", + "texture": "resources/w/ui/img/hint_arrow_down_small.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + }, + { + "type": "StaticImage", + "name": "hint_m003", + "width": 636, + "height": 280, + "x" : 0, + "y" : 250, + "horizontal_gravity": "center", + "vertical_gravity" : "center", + "texture": "resources/w/ui_en/img/Hint_m003.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_hint002.json b/resources/w/ui_en/portrait_screen_phone_hint002.json new file mode 100644 index 0000000..2dc0630 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_hint002.json @@ -0,0 +1,170 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phone2/Phone002.png", + "hover": "resources/w/ui_en/img/phone2/Phone002.png", + "pressed": "resources/w/ui_en/img/phone2/Phone002.png" + } + }, + { + "type": "StaticImage", + "name": "phoneTimeDay", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 637.5, + "height": 172, + "texture": "resources/w/ui_en/img/phone2/ClockDay001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeNight", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockNight001.png" + }, + { + "type": "StaticImage", + "name": "phoneTimeDawn", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 200, + "width": 446.25, + "height": 120.4, + "texture": "resources/w/ui_en/img/phone2/ClockMorning001.png" + }, + { + "type": "Button", + "name": "phoneBank", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconBank001.png", + "hover": "resources/w/ui/img/phone2/IconBank001.png", + "pressed": "resources/w/ui/img/phone2/IconBank001.png" + } + }, + { + "type": "Button", + "name": "phoneTaxi", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -60, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconTaxi001.png", + "hover": "resources/w/ui/img/phone2/IconTaxi001.png", + "pressed": "resources/w/ui/img/phone2/IconTaxi001.png" + } + }, + { + "type": "Button", + "name": "phoneVideo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": 110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconVideo001.png", + "hover": "resources/w/ui/img/phone2/IconVideo001.png", + "pressed": "resources/w/ui/img/phone2/IconVideo001.png" + } + }, + { + "type": "Button", + "name": "phoneMessenger", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "x": -110, + "y": -240, + "width": 170, + "height": 170, + "textures": { + "normal": "resources/w/ui/img/phone2/IconMessenger001.png", + "hover": "resources/w/ui/img/phone2/IconMessenger001.png", + "pressed": "resources/w/ui/img/phone2/IconMessenger001.png" + } + }, + { + "type": "StaticImage", + "name": "hint_m003arrow", + "width": 48, + "height": 170, + "x" : 110, + "y" : 130, + "horizontal_gravity": "center", + "vertical_gravity" : "center", + "texture": "resources/w/ui/img/hint_arrow_down_small.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + }, + { + "type": "StaticImage", + "name": "hint_m003", + "width": 636, + "height": 280, + "x" : 0, + "y" : 250, + "horizontal_gravity": "center", + "vertical_gravity" : "center", + "texture": "resources/w/ui_en/img/Hint_m003.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 1000 + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_map_dorm.json b/resources/w/ui_en/portrait_screen_phone_map_dorm.json new file mode 100644 index 0000000..ae631dc --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_map_dorm.json @@ -0,0 +1,70 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapDorm001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapDorm001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapDorm001.png" + } + }, + { + "type": "Button", + "name": "buttonBack", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 470, + "width": 638, + "height": 108, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png" + } + }, + { + "type": "Button", + "name": "mapGo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -400, + "width": 568, + "height": 174, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png" + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/portrait_screen_phone_map_uni.json b/resources/w/ui_en/portrait_screen_phone_map_uni.json new file mode 100644 index 0000000..94715d4 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_map_uni.json @@ -0,0 +1,70 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapUni001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapUni001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapUni001.png" + } + }, + { + "type": "Button", + "name": "buttonBack", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 470, + "width": 638, + "height": 108, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapBack001.png" + } + }, + { + "type": "Button", + "name": "mapGo", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -400, + "width": 568, + "height": 174, + "textures": { + "normal": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png", + "hover": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png", + "pressed": "resources/w/ui_en/img/phoneMap/PhoneMapButton001.png" + } + } + ] + } +} diff --git a/resources/w/ui_en/portrait_screen_phone_video.json b/resources/w/ui_en/portrait_screen_phone_video.json new file mode 100644 index 0000000..5f6d480 --- /dev/null +++ b/resources/w/ui_en/portrait_screen_phone_video.json @@ -0,0 +1,70 @@ +{ + "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": 882, + "height": 1416, + "clickZoneWidth": 600, + "clickZoneHeight": 900, + "textures": { + "normal": "resources/w/ui_en/img/phoneVideo/PhoneVideo003.png", + "hover": "resources/w/ui_en/img/phoneVideo/PhoneVideo003.png", + "pressed": "resources/w/ui_en/img/phoneVideo/PhoneVideo003.png" + } + }, + { + "type": "Button", + "name": "buttonBack", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": 470, + "width": 564, + "height": 82, + "textures": { + "normal": "resources/w/ui_en/img/phoneVideo/PhoneVideoBackButton001.png", + "hover": "resources/w/ui_en/img/phoneVideo/PhoneVideoBackButton001.png", + "pressed": "resources/w/ui_en/img/phoneVideo/PhoneVideoBackButton001.png" + } + }, + { + "type": "Button", + "name": "videoSkip", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "y": -430, + "width": 582, + "height": 124, + "textures": { + "normal": "resources/w/ui_en/img/phoneVideo/PhoneVideoSkipButton001.png", + "hover": "resources/w/ui_en/img/phoneVideo/PhoneVideoSkipButton001.png", + "pressed": "resources/w/ui_en/img/phoneVideo/PhoneVideoSkipButton001.png" + } + } + ] + } +} \ No newline at end of file diff --git a/resources/w/ui_en/screen_load.json b/resources/w/ui_en/screen_load.json new file mode 100644 index 0000000..e2e8c58 --- /dev/null +++ b/resources/w/ui_en/screen_load.json @@ -0,0 +1,84 @@ +{ + "root": { + "type": "FrameLayout", + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "StaticImage", + "name": "loadBkg", + "width": "match_parent", + "height": "match_parent", + "texture": "resources/w/ui/img/main/bkg.png" + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_align": "center", + "vertical_align": "center", + "spacing": 24, + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "TextView", + "name": "loadTitle", + "width": 300, + "height": 70, + "text": "Select a saved game:", + "fontSize": 48, + "textCentered": true + }, + { + "type": "TextButton", + "name": "loadSlot1Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "loadSlot2Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "loadSlot3Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "loadSlot4Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + } + ] + }, + { + "type": "TextButton", + "name": "loadBackButton", + "horizontal_gravity": "center", + "vertical_gravity": "bottom", + "y": 40, + "width": 200, + "height": 60, + "text": "Back", + "fontSize": 40, + "textCentered": true + } + ] + } +} diff --git a/resources/w/ui_en/screen_save.json b/resources/w/ui_en/screen_save.json new file mode 100644 index 0000000..9f9f3f6 --- /dev/null +++ b/resources/w/ui_en/screen_save.json @@ -0,0 +1,84 @@ +{ + "root": { + "type": "FrameLayout", + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "StaticImage", + "name": "saveBkg", + "width": "match_parent", + "height": "match_parent", + "texture": "resources/w/ui/img/main/bkg.png" + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_align": "center", + "vertical_align": "center", + "spacing": 24, + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "TextView", + "name": "saveTitle", + "width": 300, + "height": 70, + "text": "Select a save slot:", + "fontSize": 48, + "textCentered": true + }, + { + "type": "TextButton", + "name": "saveSlot1Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "saveSlot2Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "saveSlot3Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + }, + { + "type": "TextButton", + "name": "saveSlot4Button", + "width": 600, + "height": 70, + "text": "(empty)", + "fontSize": 24, + "textCentered": true + } + ] + }, + { + "type": "TextButton", + "name": "saveBackButton", + "horizontal_gravity": "center", + "vertical_gravity": "bottom", + "y": 40, + "width": 200, + "height": 60, + "text": "Back", + "fontSize": 40, + "textCentered": true + } + ] + } +} diff --git a/resources/w/ui_en/screen_settings.json b/resources/w/ui_en/screen_settings.json new file mode 100644 index 0000000..b231208 --- /dev/null +++ b/resources/w/ui_en/screen_settings.json @@ -0,0 +1,130 @@ +{ + "root": { + "type": "FrameLayout", + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "StaticImage", + "name": "settingsBkg", + "width": "match_parent", + "height": "match_parent", + "texture": "resources/w/ui/img/main/bkg.png" + }, + { + "type": "LinearLayout", + "orientation": "vertical", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "horizontal_align": "left", + "width": 500, + "height": 600, + "spacing": 20, + "children": [ + { + "type": "TextView", + "name": "settingsTitleText", + "width": 500, + "height": 60, + "text": "Settings", + "fontSize": 40, + "textCentered": true, + "color": [1.0, 1.0, 1.0, 1.0] + }, + { + "type": "TextView", + "name": "musicVolumeText", + "width": 500, + "height": 40, + "text": "Music volume: 100", + "fontSize": 32, + "textCentered": false, + "topAligned": true, + "paddingX": 10, + "color": [1.0, 1.0, 1.0, 1.0] + }, + { + "type": "Slider", + "name": "musicVolumeSlider", + "width": 500, + "height": 40, + "orientation": "horizontal", + "value": 0.78125, + "interactive": true, + "textures": { + "track": "resources/w/red.png", + "knob": "resources/w/blue.png" + } + }, + { + "type": "TextView", + "name": "soundVolumeText", + "width": 500, + "height": 40, + "text": "Sound volume: 80", + "fontSize": 32, + "textCentered": false, + "topAligned": true, + "paddingX": 10, + "color": [1.0, 1.0, 1.0, 1.0] + }, + { + "type": "Slider", + "name": "soundVolumeSlider", + "width": 500, + "height": 40, + "orientation": "horizontal", + "value": 0.625, + "interactive": true, + "textures": { + "track": "resources/w/red.png", + "knob": "resources/w/blue.png" + } + }, + { + "type": "TextButton", + "name": "musicToggleButton", + "width": 500, + "height": 40, + "text": "Music: ON", + "fontSize": 32, + "textCentered": true, + "color": [0.2, 0.9, 0.2, 1.0] + }, + { + "type": "TextButton", + "name": "soundToggleButton", + "width": 500, + "height": 40, + "text": "Sound: ON", + "fontSize": 32, + "textCentered": true, + "color": [0.2, 0.9, 0.2, 1.0] + }, + { + "type": "TextButton", + "name": "fullScreenToggleButton", + "width": 500, + "height": 60, + "text": "Full screen: OFF", + "fontSize": 32, + "textCentered": true, + "color": [0.2, 0.9, 0.2, 1.0] + } + ] + }, + { + "type": "TextButton", + "name": "settingsBackButton", + "horizontal_gravity": "center", + "vertical_gravity": "bottom", + "y": 40, + "width": 200, + "height": 60, + "text": "Back", + "fontSize": 40, + "textCentered": true + } + ] + } +} diff --git a/src/MenuManager.cpp b/src/MenuManager.cpp index 5ba27ac..0750176 100644 --- a/src/MenuManager.cpp +++ b/src/MenuManager.cpp @@ -379,44 +379,67 @@ namespace ZL { const float soundFrac = audioPlayer_.getSoundVolume() / 128.0f; uiManager.setSliderValue("musicVolumeSlider", musicFrac); uiManager.setSliderValue("soundVolumeSlider", soundFrac); + + static std::string musicVolumePrefix = "Громкость музыки: "; + static std::string soundVolumePrefix = "Громкость звука: "; + + static std::string musicToggleOn = "Музыка: ВКЛ"; + static std::string musicToggleOff = "Музыка: ВЫКЛ"; + static std::string soundToggleOn = "Звук: ВКЛ"; + static std::string soundToggleOff = "Звук: ВЫКЛ"; + static std::string fullScreenToggleOn = "Полноэкранный режим: ВКЛ"; + static std::string fullScreenToggleOff = "Полноэкранный режим: ВЫКЛ"; + + if (g_currentLanguage == Language::English) + { + musicVolumePrefix = "Music volume: "; + soundVolumePrefix = "Sound volume: "; + musicToggleOn = "Music: ON"; + musicToggleOff = "Music: OFF"; + soundToggleOn = "Sound: ON"; + soundToggleOff = "Sound: OFF"; + fullScreenToggleOn = "Full Screen: ON"; + fullScreenToggleOff = "Full Screen: OFF"; + } + uiManager.setText("musicVolumeText", - "Music volume: " + std::to_string(audioPlayer_.getMusicVolume())); + musicVolumePrefix + std::to_string(audioPlayer_.getMusicVolume())); uiManager.setText("soundVolumeText", - "Sound volume: " + std::to_string(audioPlayer_.getSoundVolume())); + soundVolumePrefix + std::to_string(audioPlayer_.getSoundVolume())); uiManager.setSliderCallback("musicVolumeSlider", [this](const std::string&, float value) { const int vol = static_cast(value * 128.0f + 0.5f); audioPlayer_.setMusicVolume(vol); uiManager.setText("musicVolumeText", - "Music volume: " + std::to_string(vol)); + musicVolumePrefix + std::to_string(vol)); }); uiManager.setSliderCallback("soundVolumeSlider", [this](const std::string&, float value) { const int vol = static_cast(value * 128.0f + 0.5f); audioPlayer_.setSoundVolume(vol); uiManager.setText("soundVolumeText", - "Sound volume: " + std::to_string(vol)); + soundVolumePrefix + std::to_string(vol)); }); // Music on/off toggle — helper to sync button text and color from current state auto refreshMusicToggle = [this]() { const bool on = audioPlayer_.isMusicEnabled(); - uiManager.setTextButtonText("musicToggleButton", on ? "Music: ON" : "Music: OFF"); + uiManager.setTextButtonText("musicToggleButton", on ? musicToggleOn : musicToggleOff); uiManager.setTextButtonColor("musicToggleButton", on ? std::array{ 0.2f, 0.9f, 0.2f, 1.0f } : std::array{ 0.9f, 0.2f, 0.2f, 1.0f }); }; auto refreshSoundToggle = [this]() { const bool on = audioPlayer_.isSoundEnabled(); - uiManager.setTextButtonText("soundToggleButton", on ? "Sound: ON" : "Sound: OFF"); + uiManager.setTextButtonText("soundToggleButton", on ? soundToggleOn : soundToggleOff); uiManager.setTextButtonColor("soundToggleButton", on ? std::array{ 0.2f, 0.9f, 0.2f, 1.0f } : std::array{ 0.9f, 0.2f, 0.2f, 1.0f }); }; auto refreshFullscreenToggle = [this]() { const bool on = Environment::isFullscreen; - uiManager.setTextButtonText("fullScreenToggleButton", on ? "Full Screen: ON" : "Full Screen: OFF"); + uiManager.setTextButtonText("fullScreenToggleButton", on ? fullScreenToggleOn : fullScreenToggleOff); uiManager.setTextButtonColor("fullScreenToggleButton", on ? std::array{ 0.2f, 0.9f, 0.2f, 1.0f } : std::array{ 0.9f, 0.2f, 0.2f, 1.0f }); @@ -429,7 +452,7 @@ namespace ZL { uiManager.setTextButtonCallback("musicToggleButton", [this](const std::string&) { audioPlayer_.setMusicEnabled(!audioPlayer_.isMusicEnabled()); const bool on = audioPlayer_.isMusicEnabled(); - uiManager.setTextButtonText("musicToggleButton", on ? "Music: ON" : "Music: OFF"); + uiManager.setTextButtonText("musicToggleButton", on ? musicToggleOn : musicToggleOff); uiManager.setTextButtonColor("musicToggleButton", on ? std::array{ 0.2f, 0.9f, 0.2f, 1.0f } : std::array{ 0.9f, 0.2f, 0.2f, 1.0f }); @@ -437,7 +460,7 @@ namespace ZL { uiManager.setTextButtonCallback("soundToggleButton", [this](const std::string&) { audioPlayer_.setSoundEnabled(!audioPlayer_.isSoundEnabled()); const bool on = audioPlayer_.isSoundEnabled(); - uiManager.setTextButtonText("soundToggleButton", on ? "Sound: ON" : "Sound: OFF"); + uiManager.setTextButtonText("soundToggleButton", on ? soundToggleOn : soundToggleOff); uiManager.setTextButtonColor("soundToggleButton", on ? std::array{ 0.2f, 0.9f, 0.2f, 1.0f } : std::array{ 0.9f, 0.2f, 0.2f, 1.0f });