add title to 'add overlay' menu

This commit is contained in:
Crispy 2021-06-06 19:22:57 +02:00
parent 6f79709af5
commit 92feff4892
2 changed files with 28 additions and 12 deletions

View file

@ -1,23 +1,25 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://ui/add_menu.gd" type="Script" id=1] [ext_resource path="res://ui/add_menu.gd" type="Script" id=1]
[ext_resource path="res://styles/menu.theme" type="Theme" id=2]
[node name="AddMenu" type="PanelContainer"] [node name="AddMenu" type="PanelContainer"]
anchor_top = 1.0 anchor_top = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
margin_top = -78.0 margin_top = -271.0
margin_right = 78.0 margin_right = 854.0
grow_vertical = 0 grow_vertical = 0
theme = ExtResource( 2 )
script = ExtResource( 1 ) script = ExtResource( 1 )
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="MarginContainer" type="MarginContainer" parent="."] [node name="MarginContainer" type="MarginContainer" parent="."]
margin_left = 7.0 margin_left = 8.0
margin_top = 7.0 margin_top = 8.0
margin_right = 71.0 margin_right = 846.0
margin_bottom = 71.0 margin_bottom = 263.0
custom_constants/margin_right = 32 custom_constants/margin_right = 32
custom_constants/margin_top = 32 custom_constants/margin_top = 32
custom_constants/margin_left = 32 custom_constants/margin_left = 32
@ -26,6 +28,18 @@ custom_constants/margin_bottom = 32
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
margin_left = 32.0 margin_left = 32.0
margin_top = 32.0 margin_top = 32.0
margin_right = 32.0 margin_right = 806.0
margin_bottom = 32.0 margin_bottom = 223.0
alignment = 2 alignment = 2
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"]
margin_right = 774.0
margin_bottom = 191.0
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/PanelContainer"]
margin_left = 8.0
margin_top = 8.0
margin_right = 766.0
margin_bottom = 183.0
text = "Add overlay"
align = 1

View file

@ -1,6 +1,8 @@
[gd_scene format=2] [gd_scene format=2]
[node name="Button" type="Button"] [node name="Button" type="Button"]
margin_top = 1950.0 margin_right = 12.0
margin_right = 1970.0 margin_bottom = 20.0
margin_bottom = 1970.0 __meta__ = {
"_edit_use_anchors_": false
}