[gd_scene load_steps=5 format=2] [ext_resource path="res://Scripts/FrameButton.gd" type="Script" id=1] [sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 0.337255, 0.32549, 0.388235, 1 ) corner_radius_top_left = 2 corner_radius_top_right = 2 corner_radius_bottom_right = 2 corner_radius_bottom_left = 2 [sub_resource type="StyleBoxFlat" id=2] bg_color = Color( 0.211765, 0.2, 0.247059, 1 ) corner_radius_top_left = 2 corner_radius_top_right = 2 corner_radius_bottom_right = 2 corner_radius_bottom_left = 2 [sub_resource type="StyleBoxFlat" id=3] bg_color = Color( 0.270588, 0.258824, 0.305882, 1 ) corner_radius_top_left = 2 corner_radius_top_right = 2 corner_radius_bottom_right = 2 corner_radius_bottom_left = 2 [node name="Frame" type="VBoxContainer"] margin_right = 32.0 margin_bottom = 50.0 [node name="FrameButton" type="Button" parent="."] margin_right = 36.0 margin_bottom = 36.0 rect_min_size = Vector2( 36, 36 ) mouse_default_cursor_shape = 2 size_flags_horizontal = 0 size_flags_vertical = 0 custom_styles/hover = SubResource( 1 ) custom_styles/pressed = SubResource( 2 ) custom_styles/normal = SubResource( 3 ) toggle_mode = true button_mask = 3 script = ExtResource( 1 ) [node name="FrameTexture" type="TextureRect" parent="FrameButton"] margin_left = 2.0 margin_top = 2.0 margin_right = 34.0 margin_bottom = 34.0 rect_min_size = Vector2( 32, 32 ) size_flags_horizontal = 0 size_flags_vertical = 0 expand = true stretch_mode = 6 [node name="PopupMenu" type="PopupMenu" parent="FrameButton"] margin_right = 20.0 margin_bottom = 20.0 mouse_default_cursor_shape = 2 items = [ "Remove Frame", null, 0, false, true, -1, 0, null, "", false, "Clone Frame", null, 0, false, false, -1, 0, null, "", false, "Move Left", null, 0, false, true, -1, 0, null, "", false, "Move Right", null, 0, false, true, -1, 0, null, "", false ] [node name="FrameID" type="Label" parent="."] margin_top = 40.0 margin_right = 36.0 margin_bottom = 54.0 text = "0" align = 1 [connection signal="pressed" from="FrameButton" to="FrameButton" method="_on_FrameButton_pressed"] [connection signal="id_pressed" from="FrameButton/PopupMenu" to="FrameButton" method="_on_PopupMenu_id_pressed"]