FlexPanel is currently too cumbersome and difficult to operate
Describe the solution you'd like
new function
flex_debug_draw(node)//A simple overlay drawing
flex_set_style(node,{})//Modifying attributes is very troublesome
Additionally, we require automatic completion of attribute structures
Describe alternatives you've considered
function flex_draw(root,color_depth=0){
static color_list=[c_red,c_orange,c_yellow,c_green,c_blue,c_purple]
static color_list_num=6
var pos = flexpanel_node_layout_get_position(root,false)
draw_set_color( color_list[ color_depth mod color_list_num ] )
var tmp_alpha=draw_get_alpha()
draw_set_alpha(0.2)
draw_rectangle(
pos.left,
pos.top,
pos.left+pos.width,
pos.top+pos.height,
false
)
draw_set_alpha(tmp_alpha)
var num = flexpanel_node_get_num_children(root);
for (var i = 0; i < num; i++)
{
var child = flexpanel_node_get_child(root, i);
flex_draw(child,color_depth+1);
}
}
Is your feature request related to a problem?
FlexPanel is currently too cumbersome and difficult to operate
Describe the solution you'd like
new function
Additionally, we require automatic completion of attribute structures
Describe alternatives you've considered
Additional context
No response