Working on inventory

This commit is contained in:
Vladislav Khorev committed 2026-05-28 17:16:10 +03:00
1 parent dda9f34277
commit 90c57932ec
16 files changed
+617 -399

No files matched your search

+14 -7
View File
@@ -4,43 +4,50 @@
"id": "phone",
"name": "Телефон",
"description": "Я не могу себе представить жизнь без своего телефона.",
"icon": "resources/w/ui/img/inv/ItemPhone001.png"
"icon": "resources/w/ui/img/inv/ItemPhone001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelPhone001.png"
},
{
"id": "journal",
"name": "Журнал",
"description": "Это мой журнал куда я вношу свои заметки.",
"icon": "resources/w/ui/img/inv/ItemJournal001.png"
"icon": "resources/w/ui/img/inv/ItemJournal001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelJournal001.png"
},
{
"id": "knife",
"name": "Серебряный нож",
"description": "Этот серебряный нож я одолжил у Айпери, и я должен его вернуть.",
"icon": "resources/w/ui/img/inv/ItemKnife001.png"
"icon": "resources/w/ui/img/inv/ItemKnife001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelKnife001.png"
},
{
"id": "book",
"name": "Книга",
"description": "Это книга о манасчи Жусупе Мамае.",
"icon": "resources/w/ui/img/inv/ItemBook001.png"
"icon": "resources/w/ui/img/inv/ItemBook001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelBook001.png"
},
{
"id": "note_spell",
"name": "Записка",
"description": "Тут написано \"Прочитай вслух когда настанет ночь, сквозь двери сможешь ты пройти.\" и текст заклинания.",
"icon": "resources/w/ui/img/inv/ItemNote001.png"
"icon": "resources/w/ui/img/inv/ItemNote001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelNote001.png"
},
{
"id": "report_card",
"name": "Зачетка Бегимай",
"description": "Это зачетная книжка Бегимай. Сюда нужно поставить оценку за курсовую работу.",
"icon": "resources/w/ui/img/inv/ItemSelReportCard001.png"
"icon": "resources/w/ui/img/inv/ItemReportCard001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelReportCard001.png"
},
{
"id": "coursework",
"name": "Курсовая Бегимай",
"description": "Это курсовая работа Бегимай, из-за которой она выбросилась из окна.",
"icon": "resources/w/ui/img/inv/ItemCoursework001.png"
"icon": "resources/w/ui/img/inv/ItemCoursework001.png",
"selectedIcon": "resources/w/ui/img/inv/ItemSelCoursework001.png"
}
]
}
-81
View File
@@ -1,81 +0,0 @@
{
"root": {
"type": "FrameLayout",
"name": "inventory_root",
"width": "match_parent",
"height": "match_parent",
"children": [
{
"type": "FrameLayout",
"name": "inventory_items_panel",
"x": 50.0,
"y": 150.0,
"width": 320.0,
"height": 420.0,
"children": [
{
"type": "StaticImage",
"name": "panel_background",
"x": 0.0,
"y": 0.0,
"width": 320.0,
"height": 420.0,
"texture": "resources/w/red.png"
},
{
"type": "TextView",
"name": "inventory_title_text",
"x": 20.0,
"y": 18.0,
"width": 230.0,
"height": 34.0,
"text": "Inventory",
"fontSize": 24,
"fontPath": "resources/fonts/DroidSans.ttf",
"centered": false,
"topAligned": true,
"paddingX": 0.0,
"paddingY": 0.0,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "TextView",
"name": "inventory_items_text",
"x": 20.0,
"y": 70.0,
"width": 280.0,
"height": 320.0,
"text": "Inventory (Empty)",
"fontSize": 18,
"fontPath": "resources/fonts/DroidSans.ttf",
"centered": false,
"topAligned": true,
"wrap": true,
"paddingX": 0.0,
"paddingY": 0.0,
"maxLines": 14,
"color": [1.0, 1.0, 1.0, 1.0]
},
{
"type": "TextButton",
"name": "close_inventory_button",
"x": 266.0,
"y": 16.0,
"width": 40.0,
"height": 40.0,
"text": "X",
"fontSize": 20,
"fontPath": "resources/fonts/DroidSans.ttf",
"textCentered": true,
"color": [1.0, 1.0, 1.0, 1.0],
"textures": {
"normal": "resources/w/blue.png",
"hover": "resources/w/blue.png",
"pressed": "resources/w/blue.png"
}
}
]
}
]
}
}