init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"Items": [{
|
||||
"id": "kitchen_lamp",
|
||||
"texture": "lamp",
|
||||
"layer": "foreground",
|
||||
"zIndex": 10,
|
||||
"hitArea": {
|
||||
"type": "rect",
|
||||
"x": 0.68,
|
||||
"y": 0.40,
|
||||
"width": 0.08,
|
||||
"height": 0.08
|
||||
},
|
||||
"highlight": {
|
||||
"color": "#FFFF0033",
|
||||
"scale": 1.1,
|
||||
"duration": 0.12
|
||||
},
|
||||
"cursor": "PointingHand",
|
||||
"actions": {
|
||||
"onClick": {
|
||||
"scenario": "scenarios/kitchen_clicked.scenario"
|
||||
},
|
||||
"onHoverEnter": "set cursor_hint=Кликни_лампу",
|
||||
"onHoverLeave": "set cursor_hint="
|
||||
}
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
test_interactive/click = You clicked the lamp! The interactive object works.
|
||||
mod_test_interactives_name = Test Interactives
|
||||
mod_test_interactives_desc = Test mod demonstrating the interactive object system — clickable elements on scene with highlight
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "test_interactives",
|
||||
"name": "Test Interactives",
|
||||
"version": "1.0.0",
|
||||
"author": "ct",
|
||||
"description": "Test mod demonstrating the interactive object system — clickable elements on scene with highlight",
|
||||
"depends": [
|
||||
"core>=1",
|
||||
"interface>=1"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
scene: start_scene
|
||||
priority: 10
|
||||
is_one_run: true
|
||||
---
|
||||
|
||||
text "test"
|
||||
interactive_add kitchen_lamp
|
||||
|
||||
text "wait"
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
text "Вы кликнули по лампе! Интерактивный объект работает." key=test_interactive/click
|
||||
end
|
||||
Reference in New Issue
Block a user