Skip to content

Commit 351ede3

Browse files
fix event template size (#244)
1 parent 0a49d8f commit 351ede3

File tree

4 files changed

+28
-14
lines changed

4 files changed

+28
-14
lines changed

addons/dialogic/Editor/Events/Templates/EventTemplate.tscn

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
[ext_resource path="res://addons/dialogic/Images/Plugin/plugin-editor-icon-dark-theme.svg" type="Texture" id=6]
77

88
[sub_resource type="StyleBoxFlat" id=1]
9+
content_margin_left = 0.0
10+
content_margin_right = 0.0
11+
content_margin_top = 0.0
12+
content_margin_bottom = 0.0
913
bg_color = Color( 0.262745, 0.262745, 0.262745, 1 )
1014
border_width_left = 2
1115
border_width_top = 2
@@ -18,8 +22,8 @@ corner_radius_bottom_left = 6
1822

1923
[node name="EventTemplate" type="HBoxContainer"]
2024
anchor_right = 1.0
21-
margin_bottom = 44.0
22-
rect_min_size = Vector2( 0, 44 )
25+
margin_bottom = 42.0
26+
rect_min_size = Vector2( 0, 42 )
2327
size_flags_horizontal = 3
2428
size_flags_vertical = 9
2529
__meta__ = {
@@ -32,18 +36,16 @@ margin_bottom = 64.0
3236

3337
[node name="PanelContainer" type="PanelContainer" parent="."]
3438
margin_right = 1024.0
35-
margin_bottom = 46.0
39+
margin_bottom = 42.0
3640
mouse_filter = 1
3741
mouse_default_cursor_shape = 6
3842
size_flags_horizontal = 3
3943
size_flags_vertical = 3
4044
custom_styles/panel = SubResource( 1 )
4145

4246
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
43-
margin_left = 2.0
44-
margin_top = 2.0
45-
margin_right = 1022.0
46-
margin_bottom = 44.0
47+
margin_right = 1024.0
48+
margin_bottom = 42.0
4749
mouse_filter = 1
4850
custom_constants/margin_right = 6
4951
custom_constants/margin_top = 6
@@ -53,13 +55,13 @@ custom_constants/margin_bottom = 6
5355
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
5456
margin_left = 6.0
5557
margin_top = 6.0
56-
margin_right = 1014.0
58+
margin_right = 1018.0
5759
margin_bottom = 36.0
5860
rect_min_size = Vector2( 0, 30 )
5961
size_flags_horizontal = 3
6062

6163
[node name="Header" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
62-
margin_right = 1008.0
64+
margin_right = 1012.0
6365
margin_bottom = 30.0
6466
rect_min_size = Vector2( 0, 30 )
6567
size_flags_horizontal = 3
@@ -126,18 +128,18 @@ margin_right = 230.0
126128

127129
[node name="Spacer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
128130
margin_left = 178.0
129-
margin_right = 962.0
131+
margin_right = 966.0
130132
margin_bottom = 30.0
131133

132134
[node name="VSeparator3" type="VSeparator" parent="PanelContainer/MarginContainer/VBoxContainer/Header"]
133-
margin_left = 966.0
134-
margin_right = 970.0
135+
margin_left = 970.0
136+
margin_right = 974.0
135137
margin_bottom = 30.0
136138
mouse_filter = 1
137139

138140
[node name="OptionsControl" parent="PanelContainer/MarginContainer/VBoxContainer/Header" instance=ExtResource( 5 )]
139-
margin_left = 974.0
140-
margin_right = 1008.0
141+
margin_left = 978.0
142+
margin_right = 1012.0
141143
margin_bottom = 30.0
142144
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", false, "Remove", null, 0, false, false, 3, 0, null, "", false ]
143145

addons/dialogic/Editor/Events/styles/ChangeBackground.tres

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[gd_resource type="StyleBoxFlat" format=2]
22

33
[resource]
4+
content_margin_left = 0.0
5+
content_margin_right = 0.0
6+
content_margin_top = 0.0
7+
content_margin_bottom = 0.0
48
bg_color = Color( 0.219608, 0.34902, 0.701961, 0.443137 )
59
border_width_left = 2
610
border_width_top = 2

addons/dialogic/Editor/Events/styles/WaitSeconds.tres

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[gd_resource type="StyleBoxFlat" format=2]
22

33
[resource]
4+
content_margin_left = 0.0
5+
content_margin_right = 0.0
6+
content_margin_top = 0.0
7+
content_margin_bottom = 0.0
48
bg_color = Color( 0.435294, 0.301961, 0.603922, 0.192157 )
59
border_width_left = 2
610
border_width_top = 2

addons/dialogic/Editor/Events/styles/selected_styleboxflat_template.tres

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[gd_resource type="StyleBoxFlat" format=2]
22

33
[resource]
4+
content_margin_left = 0.0
5+
content_margin_right = 0.0
6+
content_margin_top = 0.0
7+
content_margin_bottom = 0.0
48
bg_color = Color( 0.0980392, 0.329412, 0.509804, 1 )
59
border_width_left = 2
610
border_width_top = 2

0 commit comments

Comments
 (0)