Fixing hints for portrait mode

This commit is contained in:
Vladislav Khorev 2026-06-27 15:14:03 +03:00
parent 763ba9eeac
commit 40e7e0ee44
15 changed files with 162 additions and 163 deletions

View File

@ -18,8 +18,8 @@
{
"type": "StaticImage",
"name": "hint4",
"width": 940,
"height": 312,
"width": 705,
"height": 234,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint4.png",
"pulse": {

View File

@ -18,8 +18,8 @@
{
"type": "StaticImage",
"name": "hint5",
"width": 808,
"height": 268,
"width": 606,
"height": 201,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/Hint5.png",
"pulse": {

View File

@ -58,21 +58,22 @@
},
{
"type": "StaticImage",
"name": "location",
"width": 380,
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_align": "top",
"texture": "resources/w/ui/img/Location_dorm.png"
"name": "hint6aarrow",
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"width": 118,
"height": 118,
"x": 80,
"y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6a",
"width": 606,
"height": 234,
"x" : 270,
"y" : -20,
"x" : 110,
"y" : 80,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/Hint6a.png",

View File

@ -85,47 +85,22 @@
},
{
"type": "StaticImage",
"name": "hint6b",
"name": "hint6aarrow",
"horizontal_gravity": "right",
"width": 738.75,
"height": 292.5,
"x": 0,
"y": 200,
"texture": "resources/w/ui/img/Hint6b.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint6barrow",
"horizontal_gravity": "right",
"width": 24,
"vertical_gravity" : "bottom",
"width": 118,
"height": 118,
"x": 280,
"y": 120,
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
"x": 80,
"y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png"
},
{
"type": "StaticImage",
"name": "hint6a",
"width": 606,
"height": 234,
"x" : 270,
"y" : -20,
"x" : 110,
"y" : 80,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/Hint6a.png",
@ -140,14 +115,43 @@
},
{
"type": "StaticImage",
"name": "hint6aarrow",
"width": 170,
"height": 48,
"x" : 140,
"y" : 50,
"name": "hint6b",
"horizontal_gravity": "right",
"width": 738.75,
"height": 292.5,
"x": 0,
"y": 360,
"texture": "resources/w/ui/img/Hint6b.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint6barrow",
"horizontal_gravity": "right",
"width": 118,
"height": 118,
"x": 80,
"y": 300,
"texture": "resources/w/ui/img/hint_arrow_right_top.png"
},
{
"type": "StaticImage",
"name": "hint7arrow",
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"width": 118,
"height": 118,
"x": 80,
"y": 60,
"texture": "resources/w/ui/img/hint_arrow_right_bottom.png",
"visible":false,
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
@ -162,8 +166,8 @@
"name": "hint7",
"width": 606,
"height": 201,
"x" : 270,
"y" : -20,
"x" : 110,
"y" : 80,
"visible":false,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
@ -176,26 +180,6 @@
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "StaticImage",
"name": "hint7arrow",
"width": 170,
"height": 48,
"x" : 140,
"y" : 50,
"visible":false,
"horizontal_gravity": "right",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}

View File

@ -63,8 +63,8 @@
"height": 64,
"y": 30,
"horizontal_gravity": "center",
"vertical_align": "top",
"texture": "resources/w/ui/img/Location_uni_ext.png"
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/Location_dorm.png"
},
{
"type": "StaticImage",
@ -73,7 +73,7 @@
"width": 738.75,
"height": 292.5,
"x": 0,
"y": 200,
"y": 360,
"texture": "resources/w/ui/img/Hint6b.png",
"pulse": {
"minScale": 0.92,
@ -88,11 +88,11 @@
"type": "StaticImage",
"name": "hint6barrow",
"horizontal_gravity": "right",
"width": 24,
"width": 118,
"height": 118,
"x": 280,
"y": 120,
"texture": "resources/w/ui/img/hint_arrow_up.png"
"x": 80,
"y": 300,
"texture": "resources/w/ui/img/hint_arrow_right_top.png"
}
]
}

View File

@ -10,9 +10,10 @@
"name": "hint2",
"width": 72,
"height": 354,
"y": 200,
"x": 500,
"horizontal_gravity": "right",
"y": -100,
"x": 0,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_down.png",
"pulse": {
"minScale": 0.92,
@ -26,11 +27,12 @@
{
"type": "StaticImage",
"name": "hint1",
"width": 880,
"height": 268,
"x": 100,
"y" : -40,
"horizontal_gravity": "right",
"width": 660,
"height": 201,
"x": 0,
"y" : 160,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint1.png",
"pulse": {
"minScale": 0.92,

BIN
resources/w/ui/img/hint_arrow_down_small.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/hint_arrow_right_bottom.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/w/ui/img/hint_arrow_right_top.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -7,25 +7,6 @@
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "StaticImage",
"name": "hint_m002",
"width": 400,
"height": 156,
"x": 420,
"y": 0,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
},
{
"type": "Button",
"name": "phoneExitButton",
@ -260,6 +241,25 @@
]
}
]
},
{
"type": "StaticImage",
"name": "hint_m002",
"width": 600,
"height": 234,
"x": 0,
"y": 10,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"texture": "resources/w/ui/img/Hint_m001.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
"periodMs": 1500
},
"fadeIn": {
"durationMs": 1000
}
}
]
}

View File

@ -130,13 +130,13 @@
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x" : -220,
"y" : 150,
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
@ -149,12 +149,12 @@
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 156,
"x" : -420,
"y" : 100,
"width": 621,
"height": 234,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,

View File

@ -130,13 +130,13 @@
{
"type": "StaticImage",
"name": "hint_m001arrow",
"width": 170,
"height": 48,
"x": -220,
"y": 150,
"width": 48,
"height": 170,
"x": -110,
"y": -400,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_left.png",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_up.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
@ -149,12 +149,12 @@
{
"type": "StaticImage",
"name": "hint_m001",
"width": 414,
"height": 156,
"x": -420,
"y": 100,
"width": 621,
"height": 234,
"x": 0,
"y": -470,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Hint_m002.png",
"pulse": {
"minScale": 0.92,
@ -168,13 +168,13 @@
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x": 220,
"y": 270,
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
@ -187,12 +187,12 @@
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 178,
"x": 420,
"y": 220,
"width": 636,
"height": 356,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity": "bottom",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,

View File

@ -130,13 +130,13 @@
{
"type": "StaticImage",
"name": "hint_m003arrow",
"width": 170,
"height": 48,
"x" : 220,
"y" : 270,
"width": 48,
"height": 170,
"x" : 110,
"y" : 130,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"texture": "resources/w/ui/img/hint_arrow_right.png",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/hint_arrow_down_small.png",
"pulse": {
"minScale": 0.92,
"maxScale": 1.08,
@ -149,12 +149,12 @@
{
"type": "StaticImage",
"name": "hint_m003",
"width": 318,
"height": 178,
"x" : 420,
"y" : 220,
"width": 636,
"height": 356,
"x" : 0,
"y" : 250,
"horizontal_gravity": "center",
"vertical_gravity" : "bottom",
"vertical_gravity" : "center",
"texture": "resources/w/ui/img/Hint_m003.png",
"pulse": {
"minScale": 0.92,

View File

@ -941,6 +941,7 @@ namespace ZL
Environment::computeProjectionDimensions();
const bool isPortrait = Environment::width < Environment::height;
menuManager.uiManager.updateAllLayouts();
menuManager.topUiManager.updateAllLayouts();
if (wasPortrait != isPortrait) {
menuManager.onOrientationChanged();
}

View File

@ -606,6 +606,8 @@ namespace ZL {
uiManager.pushMenuFromSavedRoot(phoneMainRoot);
}
uiManager.setButtonCallback("phoneExitButton", [this](const std::string&) {
closePhoneEntirely();
});