This commit is contained in:
Vladislav Khorev committed 2026-04-16 13:24:04 +03:00
commit cc2eba1352
12 files changed
+79 -32

No files matched your search

+2
View File
@@ -15,6 +15,7 @@
"modelCorrectionRotX": 0.0,
"modelCorrectionRotY": 180.0,
"modelCorrectionRotZ": 0.0,
"interactionRadius": 2.0,
"gift": {
"id": "guard_token",
"name": "Guard's Token",
@@ -37,6 +38,7 @@
"modelCorrectionRotX": 0.0,
"modelCorrectionRotY": 0.0,
"modelCorrectionRotZ": 0.0,
"interactionRadius": 1.0,
"gift": {
"id": "ghost_essence",
"name": "Ghost's Essence",
+16 -9
View File
@@ -26,18 +26,25 @@
{
"type": "FrameLayout",
"name": "inventory_items_panel",
"x": 100.0,
"x": 50.0,
"y": 150.0,
"width": 500.0,
"height": 600.0,
"width": 250.0,
"height": 300.0,
"children": [
{
"type": "StaticImage",
"name": "panel_background",
"width": 200,
"height": 400,
"texture": "resources/sand2.png"
},
{
"type": "TextView",
"name": "inventory_items_text",
"x": 100.0,
"y": 30.0,
"width": 460.0,
"height": 450.0,
"x": -100.0,
"y": -100.0,
"width": 250.0,
"height": 300.0,
"text": "Inventory (Empty)",
"fontSize": 18,
"fontPath": "resources/fonts/DroidSans.ttf",
@@ -47,8 +54,8 @@
{
"type": "TextButton",
"name": "close_inventory_button",
"x": 200.0,
"y": 20.0,
"x": 165.0,
"y": 0.0,
"width": 40.0,
"height": 40.0,
"text": "X",
+2 -1
View File
@@ -176,7 +176,8 @@
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Some memories never fade.",
"durationMs": 2600
"durationMs": 2600,
"background": "resources/loading.png"
}
]
}
+6 -1
View File
@@ -32,7 +32,12 @@ end
function on_npc_interact(npc_index)
print("[Lua] NPC interaction! Index: " .. tostring(npc_index))
game_api.receive_npc_gift(npc_index)
if npc_index == 1 then
game_api.start_dialogue("test_line_dialogue")
else
game_api.receive_npc_gift(npc_index)
end
end
print("Lua script loaded successfully!")