-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom_slider.json
More file actions
62 lines (62 loc) · 2.43 KB
/
custom_slider.json
File metadata and controls
62 lines (62 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"start_screen_content": {
"modifications": [
{
"array_name": "controls",
"operation": "insert_front",
"value": [
{
"my_slider@common.slider": {
"size": [
40,
20
],
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [
10,
10
],
"$slider_name": "my_slider",
"$slider_steps": 10,
"property_bag": {
"#slider_steps": 10,
"#slider_value": 0
}
}
},
{
"conditional_image": {
"type": "image",
"texture": "textures/items/apple",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [
200,
200
],
"bindings": [
{
"binding_type": "view",
"source_control_name": "my_slider",
"source_property_name": "#slider_value",
"target_property_name": "#val"
},
{
"binding_type": "view",
"source_property_name": "(#val * 1)",
"target_property_name": "#float_val"
},
{
"binding_type": "view",
"source_property_name": "(#float_val / 10)",
"target_property_name": "#alpha"
}
]
}
}
]
}
]
}
}