Working on inventory

This commit is contained in:
Vladislav Khorev committed 2026-05-28 14:43:05 +03:00
1 parent 586ffc99b6
commit dda9f34277
25 files changed
+329 -10

No files matched your search

+1
View File
@@ -37,6 +37,7 @@
"name": "hint2",
"width": 24,
"height": 118,
"y" : 20,
"horizontal_gravity": "center",
"texture": "resources/w/ui/img/hint_arrow_down.png"
}
+45 -1
View File
@@ -30,6 +30,50 @@
"fadeIn": { "durationMs": 600 }
}
]
}]
},
{
"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": "location",
"width": 380,
"height": 64,
"y" : 30,
"horizontal_gravity": "center",
"vertical_align": "top",
"texture": "resources/w/ui/img/Location_dorm.png"
}]
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+201
View File
@@ -0,0 +1,201 @@
{
"root": {
"type": "FrameLayout",
"name": "hud_root",
"width": "match_parent",
"height": "match_parent",
"vertical_align": "center",
"horizontal_align": "center",
"children": [
{
"type": "StaticImage",
"name": "background",
"width": 1266,
"height": 585,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/Inventory001.png"
},
{
"type": "StaticImage",
"name": "allItems",
"width": 110,
"height": 67,
"x" : -570,
"y" : 200,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/inv/InventoryAllButton001.png"
},
{
"type": "Button",
"name": "inventoryExitButton",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"width": 90,
"height": 90,
"x" : 580,
"y" : 240,
"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": "center",
"width": 137,
"height": 137,
"x" : -580,
"y" : 90,
"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": "center",
"width": 137,
"height": 137,
"x" : -480,
"y" : 90,
"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": "center",
"width": 137,
"height": 137,
"x" : -380,
"y" : 90,
"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": "center",
"width": 137,
"height": 137,
"x" : -580,
"y" : -10,
"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": "center",
"width": 137,
"height": 137,
"x" : -480,
"y" : -10,
"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": "center",
"width": 137,
"height": 137,
"x" : -380,
"y" : -10,
"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": "center",
"width": 137,
"height": 137,
"x" : -580,
"y" : -110,
"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": "StaticImage",
"name": "selectedItemPic",
"width": 137,
"height": 137,
"x" : -260,
"y" : 90,
"horizontal_gravity": "center",
"vertical_gravity": "center",
"texture": "resources/w/ui/img/inv/ItemSelReportCard001.png"
},
{
"type": "TextView",
"name": "selectedText",
"horizontal_gravity": "center",
"vertical_gravity": "center",
"x" : 250,
"y" : 40,
"width": 900,
"height": 137,
"text": "Серебряный нож.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"centered": 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": "center",
"x" : 150,
"y" : -100,
"width": 900,
"height": 137,
"text": "А все бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут бегут а мы идем.",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"centered": false,
"topAligned": true,
"wrap": true,
"paddingX": 0.0,
"paddingY": 0.0,
"color": [1.0, 1.0, 1.0, 1.0]
}
]
}
}