2021-01-25 20:07:02 +00:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2019-12-29 22:24:37 +00:00
|
|
|
|
2020-05-01 22:19:01 +00:00
|
|
|
[ext_resource path="res://src/UI/Dialogs/CreateNewImage.gd" type="Script" id=1]
|
2021-06-03 19:42:08 +00:00
|
|
|
[ext_resource path="res://assets/graphics/misc/portrait.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://assets/graphics/misc/landscape.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://assets/graphics/misc/lock_aspect_2.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://assets/graphics/misc/lock_aspect.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://assets/graphics/misc/lock_aspect_guides.png" type="Texture" id=6]
|
2020-05-01 22:19:01 +00:00
|
|
|
|
2019-12-29 22:24:37 +00:00
|
|
|
[node name="CreateNewImage" type="ConfirmationDialog"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_right = 375.0
|
|
|
|
margin_bottom = 222.0
|
|
|
|
rect_min_size = Vector2( 375, 222 )
|
2021-01-26 22:45:12 +00:00
|
|
|
window_title = "New..."
|
|
|
|
resizable = true
|
2019-12-29 22:24:37 +00:00
|
|
|
script = ExtResource( 1 )
|
2020-04-03 00:12:42 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2019-12-29 22:24:37 +00:00
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
2020-04-18 23:27:23 +00:00
|
|
|
margin_right = 367.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 186.0
|
2020-04-18 23:27:23 +00:00
|
|
|
size_flags_horizontal = 0
|
2020-04-03 00:12:42 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2019-12-29 22:24:37 +00:00
|
|
|
|
2021-05-24 14:03:56 +00:00
|
|
|
[node name="ProjectName" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_right = 359.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
[node name="NameLabel" type="Label" parent="VBoxContainer/ProjectName"]
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 100.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
rect_min_size = Vector2( 100, 0 )
|
|
|
|
text = "Project Name:"
|
|
|
|
|
|
|
|
[node name="NameInput" type="LineEdit" parent="VBoxContainer/ProjectName"]
|
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 359.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
placeholder_text = "Enter name... (Default \"untitled\")"
|
|
|
|
|
2019-12-29 22:24:37 +00:00
|
|
|
[node name="ImageSize" type="Label" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 28.0
|
2020-04-18 23:27:23 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 42.0
|
2019-12-29 22:24:37 +00:00
|
|
|
text = "Image Size"
|
|
|
|
|
2020-04-03 00:12:42 +00:00
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 46.0
|
2020-04-18 23:27:23 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 50.0
|
2020-04-03 00:12:42 +00:00
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="TemplatesContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 54.0
|
2020-04-18 23:27:23 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 74.0
|
2019-12-29 22:24:37 +00:00
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="TemplatesLabel" type="Label" parent="VBoxContainer/TemplatesContainer"]
|
2020-04-03 00:12:42 +00:00
|
|
|
margin_top = 3.0
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 100.0
|
2020-04-03 00:12:42 +00:00
|
|
|
margin_bottom = 17.0
|
2021-01-26 22:45:12 +00:00
|
|
|
rect_min_size = Vector2( 100, 0 )
|
2020-04-03 00:12:42 +00:00
|
|
|
text = "Templates:"
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="TemplatesOptions" type="OptionButton" parent="VBoxContainer/TemplatesContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 359.0
|
2020-04-03 00:12:42 +00:00
|
|
|
margin_bottom = 20.0
|
2020-04-13 02:31:44 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-01-26 22:45:12 +00:00
|
|
|
size_flags_horizontal = 3
|
2020-04-03 00:12:42 +00:00
|
|
|
toggle_mode = false
|
2020-04-10 18:19:44 +00:00
|
|
|
text = "Default"
|
|
|
|
items = [ "Default", null, false, 0, null ]
|
2020-04-03 00:12:42 +00:00
|
|
|
selected = 0
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="SizeContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 78.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 130.0
|
2021-01-25 20:07:02 +00:00
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/SizeContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 346.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 52.0
|
2021-01-26 22:45:12 +00:00
|
|
|
size_flags_horizontal = 3
|
2020-04-03 00:12:42 +00:00
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="WidthContainer" type="HBoxContainer" parent="VBoxContainer/SizeContainer/VBoxContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 346.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
[node name="WidthLabel" type="Label" parent="VBoxContainer/SizeContainer/VBoxContainer/WidthContainer"]
|
|
|
|
margin_top = 5.0
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 100.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 19.0
|
2021-01-26 22:45:12 +00:00
|
|
|
rect_min_size = Vector2( 100, 0 )
|
2019-12-29 22:24:37 +00:00
|
|
|
text = "Width:"
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="WidthValue" type="SpinBox" parent="VBoxContainer/SizeContainer/VBoxContainer/WidthContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 346.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 24.0
|
2019-12-29 22:24:37 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-01-26 22:45:12 +00:00
|
|
|
size_flags_horizontal = 3
|
2019-12-29 22:24:37 +00:00
|
|
|
min_value = 1.0
|
|
|
|
max_value = 16384.0
|
|
|
|
value = 64.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="HeightContainer" type="HBoxContainer" parent="VBoxContainer/SizeContainer/VBoxContainer"]
|
|
|
|
margin_top = 28.0
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 346.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 52.0
|
|
|
|
|
2021-01-26 22:45:12 +00:00
|
|
|
[node name="HeightLabel" type="Label" parent="VBoxContainer/SizeContainer/VBoxContainer/HeightContainer"]
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_top = 5.0
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 100.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 19.0
|
2021-01-26 22:45:12 +00:00
|
|
|
rect_min_size = Vector2( 100, 0 )
|
2019-12-29 22:24:37 +00:00
|
|
|
text = "Height:"
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="HeightValue" type="SpinBox" parent="VBoxContainer/SizeContainer/VBoxContainer/HeightContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 346.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 24.0
|
2019-12-29 22:24:37 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-01-26 22:45:12 +00:00
|
|
|
size_flags_horizontal = 3
|
2019-12-29 22:24:37 +00:00
|
|
|
min_value = 1.0
|
|
|
|
max_value = 16384.0
|
|
|
|
value = 64.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2022-03-21 21:33:45 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/SizeContainer" groups=["UIButtons"]]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_left = 350.0
|
|
|
|
margin_right = 359.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 52.0
|
|
|
|
texture = ExtResource( 6 )
|
|
|
|
|
2022-03-21 21:33:45 +00:00
|
|
|
[node name="AspectRatioButton" type="TextureButton" parent="VBoxContainer/SizeContainer/TextureRect" groups=["UIButtons"]]
|
2021-01-26 22:45:12 +00:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -4.5
|
|
|
|
margin_top = -9.0
|
|
|
|
margin_right = 11.5
|
|
|
|
margin_bottom = 7.0
|
2021-01-25 20:07:02 +00:00
|
|
|
hint_tooltip = "Lock aspect ratio"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
texture_normal = ExtResource( 4 )
|
|
|
|
texture_pressed = ExtResource( 5 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="SizeButtonsContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 134.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 154.0
|
2021-01-25 20:07:02 +00:00
|
|
|
|
2022-03-21 21:33:45 +00:00
|
|
|
[node name="PortraitButton" type="Button" parent="VBoxContainer/SizeButtonsContainer" groups=["UIButtons"]]
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_right = 20.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 20, 0 )
|
|
|
|
hint_tooltip = "Portrait"
|
|
|
|
focus_mode = 0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/SizeButtonsContainer/PortraitButton"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -8.0
|
|
|
|
margin_top = -8.0
|
|
|
|
margin_right = 8.0
|
|
|
|
margin_bottom = 8.0
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2022-03-21 21:33:45 +00:00
|
|
|
[node name="LandscapeButton" type="Button" parent="VBoxContainer/SizeButtonsContainer" groups=["UIButtons"]]
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_left = 24.0
|
|
|
|
margin_right = 44.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 20, 0 )
|
|
|
|
hint_tooltip = "Landscape"
|
|
|
|
focus_mode = 0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/SizeButtonsContainer/LandscapeButton"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -8.0
|
|
|
|
margin_top = -8.0
|
|
|
|
margin_right = 8.0
|
|
|
|
margin_bottom = 8.0
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="FillColorContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_top = 158.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_right = 359.0
|
2021-05-24 14:03:56 +00:00
|
|
|
margin_bottom = 178.0
|
2021-01-25 20:07:02 +00:00
|
|
|
|
|
|
|
[node name="FillColorLabel" type="Label" parent="VBoxContainer/FillColorContainer"]
|
|
|
|
margin_top = 3.0
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_right = 100.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 17.0
|
2021-01-26 22:45:12 +00:00
|
|
|
rect_min_size = Vector2( 100, 0 )
|
2019-12-29 22:24:37 +00:00
|
|
|
text = "Fill with color:"
|
|
|
|
|
2021-01-25 20:07:02 +00:00
|
|
|
[node name="FillColor" type="ColorPickerButton" parent="VBoxContainer/FillColorContainer"]
|
2021-01-26 22:45:12 +00:00
|
|
|
margin_left = 104.0
|
|
|
|
margin_right = 359.0
|
2021-01-25 20:07:02 +00:00
|
|
|
margin_bottom = 20.0
|
2019-12-29 22:24:37 +00:00
|
|
|
rect_min_size = Vector2( 64, 20 )
|
2020-05-06 17:24:22 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-01-26 22:45:12 +00:00
|
|
|
size_flags_horizontal = 3
|
2019-12-29 22:24:37 +00:00
|
|
|
color = Color( 0, 0, 0, 0 )
|
2021-04-21 23:11:35 +00:00
|
|
|
|
2019-12-29 22:24:37 +00:00
|
|
|
[connection signal="confirmed" from="." to="." method="_on_CreateNewImage_confirmed"]
|
2021-01-25 20:07:02 +00:00
|
|
|
[connection signal="item_selected" from="VBoxContainer/TemplatesContainer/TemplatesOptions" to="." method="_on_TemplatesOptions_item_selected"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/SizeContainer/VBoxContainer/WidthContainer/WidthValue" to="." method="_on_SizeValue_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/SizeContainer/VBoxContainer/HeightContainer/HeightValue" to="." method="_on_SizeValue_value_changed"]
|
|
|
|
[connection signal="toggled" from="VBoxContainer/SizeContainer/TextureRect/AspectRatioButton" to="." method="_on_AspectRatioButton_toggled"]
|
|
|
|
[connection signal="toggled" from="VBoxContainer/SizeButtonsContainer/PortraitButton" to="." method="_on_PortraitButton_toggled"]
|
|
|
|
[connection signal="toggled" from="VBoxContainer/SizeButtonsContainer/LandscapeButton" to="." method="_on_LandscapeButton_toggled"]
|