This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
odyssey-old/Scenes/UI/Widgets/ResizablePanel.tscn

68 lines
1.6 KiB
Text
Raw Permalink Normal View History

2020-07-21 08:51:15 +00:00
[gd_scene load_steps=3 format=2]
2020-07-10 10:37:17 +00:00
[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"]
2020-07-20 09:15:39 +00:00
anchor_right = 1.0
anchor_bottom = 1.0
2020-07-10 10:37:17 +00:00
custom_styles/panel = SubResource( 1 )
script = ExtResource( 1 )
2020-07-10 13:37:13 +00:00
__meta__ = {
"_edit_use_anchors_": false
}
2020-07-10 10:37:17 +00:00
[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"]