#help
1 messages · Page 1 of 1 (latest)
@grave tree Change the panel that contains all of the buttons from a stack_panel to a grid
"custom_buttons_panel": {
"type": "grid",
"size": [
"100% - 4px",
"100%c"
],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"grid_rescaling_type": "horizontal",
"grid_item_template": "server_form.custom_button",
"collection_name": "form_buttons",
"bindings": [
{
"binding_name": "#form_button_length",
"binding_name_override": "#maximum_grid_items"
}
]
}
you can increase the height and decrease the with aswell
@zealous bronze you help me please
U have to have a scroll panel for it
wait
that's the wrong one
one sec
"custom_scroll": {
"type": "stack_panel",
"size": [
"100% - 4px",
"100%c"
],
"orientation": "vertical",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"label_offset_panel": {
"type": "panel",
"size": [
"100%",
"100%c"
],
"controls": [
{
"main_label": {
"type": "label",
"offset": [
2,
2
],
"color": "$main_header_text_color",
"size": [
"100%",
"default"
],
"anchor_from": "top_left",
"anchor_to": "top_left",
"text": "#form_text"
}
}
]
}
},
{
"padding": {
"type": "panel",
"size": [
"100%",
4
]
}
},
{
"wrapping_panel": {
"type": "panel",
"size": [
"100%",
"100%c"
],
"controls": [
{
"custom_buttons_panel@server_form.custom_buttons_panel": {}
}
]
}
}
]
}
anywhere but just make sure u delete the one u had before. also make sure to relink it in the "$child_control" of ur panel
thanks