Portrait mode for inventory screen

This commit is contained in:
Vladislav Khorev committed 2026-06-27 13:07:16 +03:00
1 parent 1b172460e0
commit bdad5fa107
6 files changed
+375 -36

No files matched your search

Binary file not shown.
Binary file not shown.
@@ -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/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/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"
}
}
]
}
}
@@ -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/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": 60,
"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
]
}
]
}
}