{
"namespace": "server_form",
"$schema": "https://kalmemarq.github.io/Bugrock-JSON-UI-Schemas/ui.schema.json",
"long_form": {
"type": "panel",
"size": ["100%", "100%"],
"controls": [
{
"default_long_form@common_dialogs.main_panel_no_buttons": {
"$title_panel": "common_dialogs.standard_title_label",
"$title_size": ["100% - 14px", 10],
"size": [225, 200],
"$text_name": "#title_text",
"$title_text_binding_type": "none",
"$child_control": "server_form.long_form_panel",
"layer": 2,
"bindings": [
{
"binding_name": "#title_text"
},
{
"binding_type": "view",
"source_property_name": "((#title_text - 'Custom Form') = #title_text)",
"target_property_name": "#visible"
}
]
}
},
{
"cutsom_long_form@common_dialogs.main_panel_no_buttons": {
"$title_panel": "common_dialogs.standard_title_label",
"$title_size": ["100% - 14px", 10],
"size": [322.5, 185],
"$text_name": "#title_text",
"$title_text_binding_type": "none",
"$child_control": "server_form.my_super_custom_panel_main",
"layer": 2,
"bindings": [
{
"binding_name": "#title_text"
},
{
"binding_type": "view",
"source_property_name": "(#title_text = 'Custom Form')",
"target_property_name": "#visible"
}
]
}
}
]
},
"my_super_custom_panel_main": {
"type": "stack_panel",
"size": ["100%", "100%"],
"orientation": "horizontal",
"anchor_from": "center",
"anchor_to": "center",
"collection_name": "form_buttons",
"controls": [
{
"offset_button@server_form.custom_button": {
"$icon_size": [69, 69],
"$button_size": [133, 133],
"$padding": [153, 153],
"collection_index": 0
}
},
{
"right_side_stack": {
"type": "stack_panel",
"size": ["100%", "100%"],
"orientation": "vertical",
"anchor_from": "center",
"anchor_to": "center",
"collection_name": "form_buttons",
"controls": [
{
"offset_button@server_form.custom_button": {
"$button_size": [138, 55],
"$padding": [148, 76.5],
"collection_index": 1
}
},
{
"bottom_right_stack": {
"type": "stack_panel",
"size": ["100%", "100%"],
"orientation": "horizontal",
"anchor_from": "center",
"anchor_to": "center",
"collection_name": "form_buttons",
"controls": [
{
"offset_button@server_form.custom_button": {
"$button_size": [64, 64],
"$padding": [74, 69],
"collection_index": 2
}
},
{
"offset_button@server_form.custom_button": {
"$button_size": [64, 64],
"$padding": [74, 69],
"collection_index": 3
}
}
]
}
}
]
}
}
]
},
"custom_button": {
"$padding|default": [80, 80],
"$button_size|default": [64, 64],
"$icon_size|default": [32, 32],
"type": "panel",
"size": "$padding",
"controls": [
{
"main_ui": {
"type": "panel",
"size": "$button_size",
"controls": [
{
"panel_name": {
"type": "panel",
"size": "$button_size",
"bindings": [
{
"binding_type": "view",
"source_control_name": "image",
"resolve_sibling_scope": true,
"source_property_name": "(not (#texture = ''))",
"target_property_name": "#visible"
}
],
"controls": [
{
"image": {
"type": "image",
"layer": 200,
"size": "$icon_size",
"offset": [0, -5],
"bindings": [
{
"binding_name": "#form_button_texture",
"binding_name_override": "#texture",
"binding_type": "collection",
"binding_collection_name": "form_buttons"
},
{
"binding_name": "#form_button_texture_file_system",
"binding_name_override": "#texture_file_system",
"binding_type": "collection",
"binding_collection_name": "form_buttons"
},
{
"binding_type": "view",
"source_property_name": "(not ((#texture = '') or (#texture = 'loading')))",
"target_property_name": "#visible"
}
]
}
},
{
"text": {
"type": "label",
"text": "#form_button_text",
"layer": 32,
"color": [0, 0, 0],
"offset": [0, -8],
"anchor_from": "bottom_middle",
"bindings": [
{
"binding_name": "#form_button_text",
"binding_type": "collection",
"binding_collection_name": "form_buttons"
}
]
}
}
]
}
},
{
"form_button@common_buttons.light_text_button": {
"$pressed_button_name": "button.form_button_click",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": "$button_size",
"$button_text": "#null",
"$button_text_binding_type": "collection",
"$button_text_grid_collection_name": "form_buttons",
"$button_text_max_size": ["100%", 20],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "form_buttons"
}
]
}
}
]
}
}
]
}
}