From 586ffc99b61ffd7d51dca5d84868cacc220b0911 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Wed, 27 May 2026 22:35:05 +0300 Subject: [PATCH] Working on ui --- resources/w/ui/hud_step0.json | 122 ++++++++++++------ resources/w/ui/hud_step2.json | 4 +- resources/w/ui/hud_step4.json | 4 +- resources/w/ui/hud_step5aa.json | 31 ----- resources/w/ui/hud_step5ab.json | 82 ------------ resources/w/ui/hud_step5bb.json | 31 ----- .../ui/img/Inventory001_State=Default001.png | 3 + .../ui/img/Inventory001_State=Selected001.png | 3 + .../w/ui/img/Inventory001_State=Tap001.png | 3 + resources/w/ui/img/Location_dorm.png | 3 + resources/w/ui/img/Location_uni_ext.png | 3 + resources/w/ui/img/Location_uni_int.png | 3 + resources/w/ui/img/Menu_modal_box001.png | 3 + .../w/ui/img/RedClose001_State=Default001.png | 3 + .../ui/img/RedClose001_State=Selected001.png | 3 + .../w/ui/img/RedClose001_State=Tap001.png | 3 + .../w/ui/img/Settings001_State=Default001.png | 3 + .../ui/img/Settings001_State=Selected001.png | 3 + .../w/ui/img/Settings001_State=Tap001.png | 3 + resources/w/ui/screen_menu.json | 25 ++++ 20 files changed, 153 insertions(+), 185 deletions(-) delete mode 100644 resources/w/ui/hud_step5aa.json delete mode 100644 resources/w/ui/hud_step5ab.json delete mode 100644 resources/w/ui/hud_step5bb.json create mode 100644 resources/w/ui/img/Inventory001_State=Default001.png create mode 100644 resources/w/ui/img/Inventory001_State=Selected001.png create mode 100644 resources/w/ui/img/Inventory001_State=Tap001.png create mode 100644 resources/w/ui/img/Location_dorm.png create mode 100644 resources/w/ui/img/Location_uni_ext.png create mode 100644 resources/w/ui/img/Location_uni_int.png create mode 100644 resources/w/ui/img/Menu_modal_box001.png create mode 100644 resources/w/ui/img/RedClose001_State=Default001.png create mode 100644 resources/w/ui/img/RedClose001_State=Selected001.png create mode 100644 resources/w/ui/img/RedClose001_State=Tap001.png create mode 100644 resources/w/ui/img/Settings001_State=Default001.png create mode 100644 resources/w/ui/img/Settings001_State=Selected001.png create mode 100644 resources/w/ui/img/Settings001_State=Tap001.png create mode 100644 resources/w/ui/screen_menu.json diff --git a/resources/w/ui/hud_step0.json b/resources/w/ui/hud_step0.json index d51150d..b4cff76 100644 --- a/resources/w/ui/hud_step0.json +++ b/resources/w/ui/hud_step0.json @@ -1,43 +1,91 @@ { - "root": { - "type": "FrameLayout", - "name": "hud_root", - "width": "match_parent", - "height": "match_parent", - "children": [ - { - "type": "LinearLayout", - "orientation": "vertical", - "vertical_align": "center", - "horizontal_align": "center", - "spacing": 0, - "width": "match_parent", - "height": 600, - "x" : 300, - "children": [ - { - "type": "StaticImage", - "name": "hint1", - "width": 440, - "height": 134, - "horizontal_gravity": "center", - "texture": "resources/w/ui/img/Hint1.png", - "pulse": { - "minScale": 0.92, - "maxScale": 1.08, - "periodMs": 1500 - }, - "fadeIn": { "durationMs": 600 } + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "children": [ + { + "type": "LinearLayout", + "orientation": "vertical", + "vertical_align": "center", + "horizontal_align": "center", + "spacing": 0, + "width": "match_parent", + "height": 600, + "x": 210, + "y": 75, + "children": [ + { + "type": "StaticImage", + "name": "hint1", + "width": 880, + "height": 268, + "horizontal_gravity": "center", + "texture": "resources/w/ui/img/Hint1.png", + "pulse": { + "minScale": 0.92, + "maxScale": 1.08, + "periodMs": 1500 + }, + "fadeIn": { + "durationMs": 600 + } + }, + { + "type": "StaticImage", + "name": "hint2", + "width": 24, + "height": 118, + "horizontal_gravity": "center", + "texture": "resources/w/ui/img/hint_arrow_down.png" + } + ] + }, + { + "type": "Button", + "name": "settingsButton", + "horizontal_gravity": "right", + "vertical_gravity": "top", + "x": -60, + "y": -60, + "width": 352, + "height": 352, + "clickZoneWidth": 176, + "clickZoneHeight": 176, + "textures": { + "normal": "resources/w/ui/img/Settings001_State=Default001.png", + "hover": "resources/w/ui/img/Settings001_State=Selected001.png", + "pressed": "resources/w/ui/img/Settings001_State=Tap001.png" + } + }, + { + "type": "Button", + "name": "inventoryButton", + "horizontal_gravity": "right", + "vertical_gravity": "top", + "x": 160, + "y": -48, + "width": 326, + "height": 326, + "clickZoneWidth": 151, + "clickZoneHeight": 151, + "textures": { + "normal": "resources/w/ui/img/Inventory001_State=Default001.png", + "hover": "resources/w/ui/img/Inventory001_State=Selected001.png", + "pressed": "resources/w/ui/img/Inventory001_State=Tap001.png" + } }, { "type": "StaticImage", - "name": "hint2", - "width": 24, - "height": 118, + "name": "location", + "width": 380, + "height": 64, + "y" : 30, "horizontal_gravity": "center", - "texture": "resources/w/ui/img/hint_arrow_down.png" + "vertical_align": "top", + "texture": "resources/w/ui/img/Location_dorm.png" } - ] - }] - } -} + ] + } +} \ No newline at end of file diff --git a/resources/w/ui/hud_step2.json b/resources/w/ui/hud_step2.json index 4ead63d..493ce51 100644 --- a/resources/w/ui/hud_step2.json +++ b/resources/w/ui/hud_step2.json @@ -18,8 +18,8 @@ { "type": "StaticImage", "name": "hint3", - "width": 440, - "height": 134, + "width": 692, + "height": 312, "horizontal_gravity": "center", "texture": "resources/w/ui/img/Hint3.png", "pulse": { diff --git a/resources/w/ui/hud_step4.json b/resources/w/ui/hud_step4.json index 2746500..1f11b20 100644 --- a/resources/w/ui/hud_step4.json +++ b/resources/w/ui/hud_step4.json @@ -18,8 +18,8 @@ { "type": "StaticImage", "name": "hint5", - "width": 440, - "height": 134, + "width": 692, + "height": 312, "horizontal_gravity": "center", "texture": "resources/w/ui/img/Hint5.png", "pulse": { diff --git a/resources/w/ui/hud_step5aa.json b/resources/w/ui/hud_step5aa.json deleted file mode 100644 index beca2c5..0000000 --- a/resources/w/ui/hud_step5aa.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "root": { - "type": "FrameLayout", - "name": "hud_root", - "width": "match_parent", - "height": "match_parent", - "children": [ - { - "type": "LinearLayout", - "orientation": "vertical", - "vertical_align": "center", - "horizontal_align": "center", - "spacing": 0, - "width": "match_parent", - "height": 600, - "children": [ - { - "type": "Button", - "name": "phoneButton", - "width": 229, - "height": 229, - "textures": { - "normal": "resources/w/ui/img/Phone001_State=Default.png", - "hover": "resources/w/ui/img/Phone001_State=Selected.png", - "pressed": "resources/w/ui/img/Phone001_State=Tap.png" - } - } - ] - }] - } -} diff --git a/resources/w/ui/hud_step5ab.json b/resources/w/ui/hud_step5ab.json deleted file mode 100644 index 3999447..0000000 --- a/resources/w/ui/hud_step5ab.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "root": { - "type": "FrameLayout", - "name": "hud_root", - "width": "match_parent", - "height": "match_parent", - "children": [ - { - "type": "LinearLayout", - "orientation": "horizontal", - "vertical_align": "center", - "horizontal_align": "right", - "spacing": 16, - "width": "match_parent", - "height": 600, - "y" : -200, - "children": [ - { - "type": "StaticImage", - "name": "hint6a", - "width": 440, - "height": 134, - "horizontal_gravity": "center", - "texture": "resources/w/ui/img/Hint6a.png", - "pulse": { - "minScale": 0.92, - "maxScale": 1.08, - "periodMs": 1500 - }, - "fadeIn": { "durationMs": 600 } - }, - { - "type": "StaticImage", - "name": "hint6b", - "width": 440, - "height": 134, - "horizontal_gravity": "center", - "texture": "resources/w/ui/img/Hint6b.png", - "pulse": { - "minScale": 0.92, - "maxScale": 1.08, - "periodMs": 1500 - }, - "fadeIn": { "durationMs": 600 } - } - ] - },{ - "type": "Button", - "name": "phoneButton", - "width": 229, - "height": 229, - "x": 74, - "y" :-46, - "clickZoneWidth": 104, - "clickZoneHeight": 104, - "horizontal_gravity": "right", - "vertical_gravity": "top", - "textures": { - "normal": "resources/w/ui/img/Phone001_State=Default.png", - "hover": "resources/w/ui/img/Phone001_State=Selected.png", - "pressed": "resources/w/ui/img/Phone001_State=Tap.png" - } - }, - { - "type": "Button", - "name": "journalButton", - "width": 163, - "height": 163, - "x": -13, - "y" :-13, - "clickZoneWidth": 89, - "clickZoneHeight": 89, - "horizontal_gravity": "right", - "vertical_gravity": "top", - "textures": { - "normal": "resources/w/ui/img/Journal001_State=Default.png", - "hover": "resources/w/ui/img/Journal001_State=Selected.png", - "pressed": "resources/w/ui/img/Journal001_State=Tap.png" - } - }] - } -} diff --git a/resources/w/ui/hud_step5bb.json b/resources/w/ui/hud_step5bb.json deleted file mode 100644 index 043e731..0000000 --- a/resources/w/ui/hud_step5bb.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "root": { - "type": "FrameLayout", - "name": "hud_root", - "width": "match_parent", - "height": "match_parent", - "children": [ - { - "type": "LinearLayout", - "orientation": "vertical", - "vertical_align": "center", - "horizontal_align": "center", - "spacing": 0, - "width": "match_parent", - "height": 600, - "children": [ - { - "type": "Button", - "name": "journalButton", - "width": 229, - "height": 229, - "textures": { - "normal": "resources/w/ui/img/Phone001_State=Default.png", - "hover": "resources/w/ui/img/Phone001_State=Selected.png", - "pressed": "resources/w/ui/img/Phone001_State=Tap.png" - } - } - ] - }] - } -} diff --git a/resources/w/ui/img/Inventory001_State=Default001.png b/resources/w/ui/img/Inventory001_State=Default001.png new file mode 100644 index 0000000..2909857 --- /dev/null +++ b/resources/w/ui/img/Inventory001_State=Default001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9f76e09b325246dfe39809c2aa1fc52d921cdfcdd6048cedacdf41f899c006e +size 562786 diff --git a/resources/w/ui/img/Inventory001_State=Selected001.png b/resources/w/ui/img/Inventory001_State=Selected001.png new file mode 100644 index 0000000..e9feaa1 --- /dev/null +++ b/resources/w/ui/img/Inventory001_State=Selected001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20189f34e34fa74c90b150056fe091e6cb8c581a17255d149ffbcba68205165d +size 613527 diff --git a/resources/w/ui/img/Inventory001_State=Tap001.png b/resources/w/ui/img/Inventory001_State=Tap001.png new file mode 100644 index 0000000..64f23ca --- /dev/null +++ b/resources/w/ui/img/Inventory001_State=Tap001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93f0609232976174d9d3bf453a02439a12016e5eb0c9a968a9b359289854b950 +size 469286 diff --git a/resources/w/ui/img/Location_dorm.png b/resources/w/ui/img/Location_dorm.png new file mode 100644 index 0000000..59893fa --- /dev/null +++ b/resources/w/ui/img/Location_dorm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85eccf4af29786e12776382a4eb4a4fd578827127474d4ca8bda0ee1518650cd +size 24779 diff --git a/resources/w/ui/img/Location_uni_ext.png b/resources/w/ui/img/Location_uni_ext.png new file mode 100644 index 0000000..242bf5e --- /dev/null +++ b/resources/w/ui/img/Location_uni_ext.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31aa37e6d6347485a1a736a1c97e4f88951e8138a34369071c9717b97c514806 +size 23452 diff --git a/resources/w/ui/img/Location_uni_int.png b/resources/w/ui/img/Location_uni_int.png new file mode 100644 index 0000000..d3d795f --- /dev/null +++ b/resources/w/ui/img/Location_uni_int.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbeb6a2d4598c91eefff4826b125198bd6ae8c19768483258ca17dcac3d67b09 +size 24434 diff --git a/resources/w/ui/img/Menu_modal_box001.png b/resources/w/ui/img/Menu_modal_box001.png new file mode 100644 index 0000000..7840ea1 --- /dev/null +++ b/resources/w/ui/img/Menu_modal_box001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e89109c1a51eb5867e9f142879ac989a28082b7b7ea77eb08b25c46411c5a80 +size 6269672 diff --git a/resources/w/ui/img/RedClose001_State=Default001.png b/resources/w/ui/img/RedClose001_State=Default001.png new file mode 100644 index 0000000..d1c1e73 --- /dev/null +++ b/resources/w/ui/img/RedClose001_State=Default001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74e8fd0fd38eea40520c9835845efde6ca96130f5417f645c6c42e84c2ca66e2 +size 126126 diff --git a/resources/w/ui/img/RedClose001_State=Selected001.png b/resources/w/ui/img/RedClose001_State=Selected001.png new file mode 100644 index 0000000..dd4c971 --- /dev/null +++ b/resources/w/ui/img/RedClose001_State=Selected001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddaf05bd713374b3a79a0da79e324496d1fb5ce8fc21398fb32f9718d8121408 +size 208205 diff --git a/resources/w/ui/img/RedClose001_State=Tap001.png b/resources/w/ui/img/RedClose001_State=Tap001.png new file mode 100644 index 0000000..8cc8839 --- /dev/null +++ b/resources/w/ui/img/RedClose001_State=Tap001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:089d5aef0a289c45dab893472c779cf5f8ea6ccbcfe352372ac1339770e93763 +size 101426 diff --git a/resources/w/ui/img/Settings001_State=Default001.png b/resources/w/ui/img/Settings001_State=Default001.png new file mode 100644 index 0000000..b651564 --- /dev/null +++ b/resources/w/ui/img/Settings001_State=Default001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bda2e908f847ce964ddd8b41e0d8d6b8f737b4c72fa1c433a5fb3996723ed340 +size 576215 diff --git a/resources/w/ui/img/Settings001_State=Selected001.png b/resources/w/ui/img/Settings001_State=Selected001.png new file mode 100644 index 0000000..07cfd61 --- /dev/null +++ b/resources/w/ui/img/Settings001_State=Selected001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10cc3c6bae234c966b634b59998f842a491e7ec32d5912325d057f83decdaf8e +size 667536 diff --git a/resources/w/ui/img/Settings001_State=Tap001.png b/resources/w/ui/img/Settings001_State=Tap001.png new file mode 100644 index 0000000..20ab1a6 --- /dev/null +++ b/resources/w/ui/img/Settings001_State=Tap001.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a20765a217dcccc44127884b823214f07e89fbb634f2e1041920ea6012748e4 +size 486674 diff --git a/resources/w/ui/screen_menu.json b/resources/w/ui/screen_menu.json new file mode 100644 index 0000000..1a2fb5f --- /dev/null +++ b/resources/w/ui/screen_menu.json @@ -0,0 +1,25 @@ +{ + "root": { + "type": "FrameLayout", + "name": "hud_root", + "width": "match_parent", + "height": "match_parent", + "vertical_align": "center", + "horizontal_align": "center", + "children": [ + { + "type": "Button", + "name": "menuExitButton", + "horizontal_gravity": "center", + "vertical_gravity": "center", + "width": 832, + "height": 608, + "textures": { + "normal": "resources/w/ui/img/Menu_modal_box001.png", + "hover": "resources/w/ui/img/Menu_modal_box001.png", + "pressed": "resources/w/ui/img/Menu_modal_box001.png" + } + } + ] + } +} \ No newline at end of file