Working on journal portrait mode

This commit is contained in:
Vladislav Khorev committed 2026-06-27 11:50:09 +03:00
1 parent b41e312511
commit 1b172460e0
7 files changed
+617 -17

No files matched your search

Binary file not shown.
+293
View File
@@ -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/img/journal/PortraitQuestJournalBkg001.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": "Главное Задание 1",
"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": "Задание 2",
"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": "Задание 3",
"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"
}
}
]
}
]
}
}
@@ -0,0 +1,201 @@
{
"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/img/journal/PortraitQuestJournalItemBkg001.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": "Главное Задание 1",
"fontSize": 56,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": false,
"wrap": true,
"color": [
0.992,
0.78,
0.0,
1.0
]
},
{
"type": "LinearLayout",
"orientation": "horizontal",
"spacing": 10,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"x": 36,
"y": 370,
"width": 640,
"height": 80,
"children": [
{
"type": "StaticImage",
"name": "objective1checkbox",
"width": 60,
"height": 60,
"texture": "resources/w/ui/img/journal/quest_objective_completed.png"
},
{
"type": "TextView",
"name": "objective1name",
"paddingY": 20,
"width": 740.0,
"height": 80.0,
"textPaddingY": 20.0,
"text": "Цель 1 Цель 1 Цель 1 Цель 1",
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": false,
"wrap": true,
"color": [
0.02,
0.875,
0.447,
0.6
]
}
]
},
{
"type": "LinearLayout",
"orientation": "horizontal",
"spacing": 10,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"x": 36,
"y": 450,
"width": 640,
"height": 80,
"children": [
{
"type": "StaticImage",
"name": "objective2checkbox",
"width": 60,
"height": 60,
"texture": "resources/w/ui/img/journal/quest_objective_blank.png"
},
{
"type": "TextView",
"name": "objective2name",
"paddingY": 20,
"width": 740.0,
"height": 80.0,
"text": "Цель 2",
"textPaddingY": 20.0,
"fontSize": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": false,
"wrap": true,
"color": [
0.996,
0.977,
0.761,
0.9
]
}
]
},
{
"type": "LinearLayout",
"orientation": "horizontal",
"spacing": 10,
"horizontal_gravity": "center",
"vertical_gravity": "top",
"x": 36,
"y": 530,
"width": 640,
"height": 80,
"children": [
{
"type": "StaticImage",
"name": "objective3checkbox",
"width": 60,
"height": 60,
"texture": "resources/w/ui/img/journal/quest_objective_blank.png"
},
{
"type": "TextView",
"name": "objective3name",
"paddingY": 20,
"width": 740.0,
"height": 80.0,
"text": "Цель 3",
"textPaddingY": 20.0,
"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": 32,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": false,
"topAligned": false,
"wrap": true,
"color": [
0.996,
0.977,
0.761,
0.75
]
}
]
}
}
+9 -9
View File
@@ -49,7 +49,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 90,
"height": 0,
"text": "Главное Задание 1",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -76,7 +76,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "Задание 2",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -103,7 +103,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "Задание 3",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -130,7 +130,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -157,7 +157,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -184,7 +184,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -211,7 +211,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -238,7 +238,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,
@@ -265,7 +265,7 @@
"x": 0.0,
"y": 0.0,
"width": 270.0,
"height": 60.0,
"height": 0.0,
"text": "",
"textPaddingY": 4.0,
"textPaddingX": 16.0,