[gd_scene load_steps=3 format=2] [ext_resource path="res://Scenes/UI/Widgets/ResizablePanel.gd" type="Script" id=1] [sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 0.133333, 0.12549, 0.203922, 0.705882 ) border_width_left = 4 border_width_top = 4 border_width_right = 4 border_width_bottom = 4 border_color = Color( 0.0941176, 0.0823529, 0.180392, 1 ) border_blend = true corner_radius_top_left = 4 corner_radius_top_right = 4 corner_radius_bottom_right = 4 corner_radius_bottom_left = 4 [node name="ResizablePanel" type="Panel"] anchor_right = 1.0 anchor_bottom = 1.0 custom_styles/panel = SubResource( 1 ) script = ExtResource( 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="DragHandle" type="Panel" parent="."] anchor_right = 1.0 margin_left = 4.0 margin_top = 4.0 margin_right = -4.0 margin_bottom = 32.0 rect_min_size = Vector2( 0, 28 ) size_flags_horizontal = 3 __meta__ = { "_edit_use_anchors_": false } [node name="Label" type="Label" parent="DragHandle"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 2.0 margin_top = 2.0 margin_right = 2.0 margin_bottom = 2.0 text = "Unnamed panel" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="ResizeHandle" type="Panel" parent="."] anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_left = -15.0 margin_top = -15.0 rect_min_size = Vector2( 18, 18 ) size_flags_horizontal = 0 size_flags_vertical = 0 __meta__ = { "_edit_use_anchors_": false } [connection signal="gui_input" from="DragHandle" to="." method="_handle_drag"] [connection signal="gui_input" from="ResizeHandle" to="." method="_handle_resize"]