-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom_npc_screen_layout_reference_file.json
More file actions
74 lines (74 loc) · 2.56 KB
/
Copy pathcustom_npc_screen_layout_reference_file.json
File metadata and controls
74 lines (74 loc) · 2.56 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
63
64
65
66
67
68
69
70
71
72
73
74
{
"choose_student_panel": {
"type": "panel",
"controls": [
{
"student@common_dialogs.form_fitting_main_panel_no_buttons": {
"$panel_size": [
320,
"100%cm"
],
"size": "$panel_size",
"$child_control": "npc_interact.student_view_content",
"$title_panel": "common_dialogs.standard_title_label",
"$text_name": "#title_text",
"$title_text_binding_type": "global",
"$show_close_button": false,
"$custom_background": "common_dialogs.dialog_background_opaque_with_child",
"bindings": [
{
"binding_type": "global",
"binding_name": "#title_text"
},
{
"binding_type": "view",
"source_property_name": "((#title_text - 'MENU') = #title_text)",
"target_property_name": "#visible"
}
]
}
},
{
"example_layout@namespace.your_exmaple_layout": {
"bindings": [
{
"binding_type": "global",
"binding_name": "#title_text"
},
{
"binding_type": "view",
"source_property_name": "(not ((#title_text - 'MENU') = #title_text))",
"target_property_name": "#visible"
}
]
}
}
],
"bindings": [
{
"binding_name": "#student_view_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"npc_screen_contents": {
"modifications": [
{
"array_name": "controls",
"operation": "remove",
"control_name": "student"
},
{
"array_name": "controls",
"operation": "insert_front",
"value": [
{
"student_screen@npc_interact.choose_student_panel": {
}
}
]
}
]
}
}