#Element modifications

1 messages · Page 1 of 1 (latest)

idle radish
#

I'd like to remove the bindings of "student@common_dialogs.form_fitting_main_panel_no_buttons" element and change them for something else. How do I do that using modifications and not rewriting the whole file?

"npc_screen_contents": { "type": "panel", "controls": [ { // Teacher window containing basic and advanced editing screens "teacher@npc_interact.root_panel": { "$child_control": "npc_interact.main_content", "bindings": [ { "binding_name": "#teacher_view_visible", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { // Student view is form fitting because there could be any amount of student buttons and we don't want dead space "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", // Don't show default close button, we want our own "$show_close_button": false, "$custom_background": "common_dialogs.dialog_background_opaque_with_child", "bindings": [ { "binding_name": "#student_view_visible", "binding_name_override": "#visible", "binding_type": "global" } ] } }, { "npc_screen_close@npc_interact.close_text": { "anchor_to": "bottom_left", "anchor_from": "bottom_left", "offset": [ 20, 0 ] } } ] }

nocturne surge
#

look at json ui documentation, it explains really well on modifications