123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- [gd_scene load_steps=7 format=3 uid="uid://dbk0b4jkfq81v"]
- [ext_resource type="Script" path="res://test.gd" id="1"]
- [sub_resource type="StyleBoxFlat" id="1"]
- bg_color = Color(0.16, 0.678, 1, 0.12549)
- [sub_resource type="StyleBoxFlat" id="2"]
- bg_color = Color(0.266667, 0.266667, 0.266667, 1)
- border_width_left = 3
- border_width_top = 3
- border_width_right = 3
- border_width_bottom = 3
- border_color = Color(0.4, 0.4, 0.4, 1)
- border_blend = true
- [sub_resource type="StyleBoxFlat" id="3"]
- bg_color = Color(0.2, 0.2, 0.2, 1)
- border_width_left = 3
- border_width_top = 3
- border_width_right = 3
- border_width_bottom = 3
- border_color = Color(0.333333, 0.333333, 0.333333, 1)
- border_blend = true
- [sub_resource type="StyleBoxFlat" id="4"]
- bg_color = Color(0.133333, 0.133333, 0.133333, 1)
- border_width_left = 3
- border_width_top = 3
- border_width_right = 3
- border_width_bottom = 3
- border_color = Color(0.266667, 0.266667, 0.266667, 1)
- border_blend = true
- [sub_resource type="Theme" id="5"]
- Button/colors/font_color = Color(0.88, 0.88, 0.88, 1)
- Button/colors/font_color_disabled = Color(0.9, 0.9, 0.9, 0.2)
- Button/colors/font_color_hover = Color(0.94, 0.94, 0.94, 1)
- Button/colors/font_color_pressed = Color(1, 1, 1, 1)
- Button/constants/h_separation = 2
- Button/fonts/font = null
- Button/styles/disabled = null
- Button/styles/focus = SubResource("1")
- Button/styles/hover = SubResource("2")
- Button/styles/normal = SubResource("3")
- Button/styles/pressed = SubResource("4")
- [node name="Control" type="Control"]
- layout_mode = 3
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme = SubResource("5")
- script = ExtResource("1")
- [node name="Panel" type="PanelContainer" parent="."]
- layout_mode = 1
- anchors_preset = 8
- anchor_left = 0.5
- anchor_top = 0.5
- anchor_right = 0.5
- anchor_bottom = 0.5
- offset_left = -110.0
- offset_top = -127.0
- offset_right = 110.0
- offset_bottom = 127.0
- grow_horizontal = 2
- grow_vertical = 2
- [node name="MarginContainer" type="MarginContainer" parent="Panel"]
- layout_mode = 2
- theme_override_constants/margin_left = 20
- theme_override_constants/margin_top = 20
- theme_override_constants/margin_right = 20
- theme_override_constants/margin_bottom = 20
- [node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
- layout_mode = 2
- theme_override_constants/separation = 10
- [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
- layout_mode = 2
- text = "GUI Theming Overrides"
- horizontal_alignment = 1
- [node name="HSeparator" type="HSeparator" parent="Panel/MarginContainer/VBoxContainer"]
- layout_mode = 2
- [node name="Button" type="Button" parent="Panel/MarginContainer/VBoxContainer"]
- custom_minimum_size = Vector2(0, 48)
- layout_mode = 2
- text = "Click Me"
- [node name="Button2" type="Button" parent="Panel/MarginContainer/VBoxContainer"]
- custom_minimum_size = Vector2(0, 48)
- layout_mode = 2
- text = "Click Me"
- [node name="ResetAllButton" type="Button" parent="Panel/MarginContainer/VBoxContainer"]
- custom_minimum_size = Vector2(0, 48)
- layout_mode = 2
- text = "Reset All"
- [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/Button" to="." method="_on_button_pressed"]
- [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/Button2" to="." method="_on_button2_pressed"]
- [connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/ResetAllButton" to="." method="_on_reset_all_button_pressed"]
|