mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-08 03:19:49 +00:00
230 lines
8.3 KiB
Plaintext
230 lines
8.3 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://btjf3lj873q1t"]
|
|
|
|
[ext_resource type="Script" path="res://src/UI/Dialogs/CreateNewImage.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://kj867tldofxi" path="res://assets/graphics/misc/portrait.png" id="2"]
|
|
[ext_resource type="Texture2D" uid="uid://0vc1pn1sn2ud" path="res://assets/graphics/misc/landscape.png" id="3"]
|
|
[ext_resource type="Texture2D" uid="uid://cancw70yw0pv7" path="res://assets/graphics/misc/lock_aspect_2.png" id="4"]
|
|
[ext_resource type="Texture2D" uid="uid://beqermx8s5q8y" path="res://assets/graphics/misc/lock_aspect.png" id="5"]
|
|
[ext_resource type="Texture2D" uid="uid://kd10jfc1dxf5" path="res://assets/graphics/misc/lock_aspect_guides.png" id="6"]
|
|
|
|
[node name="CreateNewImage" type="ConfirmationDialog"]
|
|
title = "New..."
|
|
size = Vector2i(384, 330)
|
|
exclusive = false
|
|
popup_window = true
|
|
script = ExtResource("1")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = -8.0
|
|
offset_bottom = -49.0
|
|
size_flags_horizontal = 0
|
|
|
|
[node name="ProjectName" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="VBoxContainer/ProjectName"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Project Name:"
|
|
|
|
[node name="NameInput" type="LineEdit" parent="VBoxContainer/ProjectName"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Enter name... (Default \"untitled\")"
|
|
|
|
[node name="ImageSize" type="Label" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Image Size"
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Templates" type="VBoxContainer" parent="VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="TemplatesContainer" type="HBoxContainer" parent="VBoxContainer/VBoxContainer/Templates"]
|
|
layout_mode = 2
|
|
|
|
[node name="TemplatesLabel" type="Label" parent="VBoxContainer/VBoxContainer/Templates/TemplatesContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Templates:"
|
|
|
|
[node name="TemplatesOptions" type="OptionButton" parent="VBoxContainer/VBoxContainer/Templates/TemplatesContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = false
|
|
item_count = 1
|
|
selected = 0
|
|
popup/item_0/text = "Default"
|
|
popup/item_0/id = 0
|
|
|
|
[node name="SizeContainer" type="HBoxContainer" parent="VBoxContainer/VBoxContainer/Templates"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="WidthContainer" type="HBoxContainer" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="WidthLabel" type="Label" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/WidthContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Width:"
|
|
|
|
[node name="WidthValue" type="SpinBox" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/WidthContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
min_value = 1.0
|
|
max_value = 16384.0
|
|
value = 64.0
|
|
suffix = "px"
|
|
|
|
[node name="HeightContainer" type="HBoxContainer" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HeightLabel" type="Label" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/HeightContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Height:"
|
|
|
|
[node name="HeightValue" type="SpinBox" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/HeightContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
min_value = 1.0
|
|
max_value = 16384.0
|
|
value = 64.0
|
|
suffix = "px"
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer" groups=["UIButtons"]]
|
|
layout_mode = 2
|
|
texture = ExtResource("6")
|
|
|
|
[node name="AspectRatioButton" type="TextureButton" parent="VBoxContainer/VBoxContainer/Templates/SizeContainer/TextureRect" groups=["UIButtons"]]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -4.5
|
|
offset_top = -9.0
|
|
offset_right = 11.5
|
|
offset_bottom = 7.0
|
|
tooltip_text = "Lock aspect ratio"
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = true
|
|
texture_normal = ExtResource("4")
|
|
texture_pressed = ExtResource("5")
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/VBoxContainer"]
|
|
clip_contents = true
|
|
custom_minimum_size = Vector2(150, 0)
|
|
layout_mode = 2
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Recent:"
|
|
|
|
[node name="RecentTemplates" type="ItemList" parent="VBoxContainer/VBoxContainer/VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
allow_reselect = true
|
|
|
|
[node name="SizeButtonsContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="PortraitButton" type="Button" parent="VBoxContainer/SizeButtonsContainer" groups=["UIButtons"]]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(24, 24)
|
|
layout_mode = 2
|
|
tooltip_text = "Portrait"
|
|
focus_mode = 0
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = true
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/SizeButtonsContainer/PortraitButton"]
|
|
layout_mode = 0
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -8.0
|
|
offset_top = -8.0
|
|
offset_right = 8.0
|
|
offset_bottom = 8.0
|
|
texture = ExtResource("2")
|
|
|
|
[node name="LandscapeButton" type="Button" parent="VBoxContainer/SizeButtonsContainer" groups=["UIButtons"]]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(24, 24)
|
|
layout_mode = 2
|
|
tooltip_text = "Landscape"
|
|
focus_mode = 0
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = true
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/SizeButtonsContainer/LandscapeButton"]
|
|
layout_mode = 0
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -8.0
|
|
offset_top = -8.0
|
|
offset_right = 8.0
|
|
offset_bottom = 8.0
|
|
texture = ExtResource("3")
|
|
|
|
[node name="FillColorContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="FillColorLabel" type="Label" parent="VBoxContainer/FillColorContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Fill with color:"
|
|
|
|
[node name="FillColor" type="ColorPickerButton" parent="VBoxContainer/FillColorContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(64, 20)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_default_cursor_shape = 2
|
|
color = Color(0, 0, 0, 0)
|
|
|
|
[connection signal="about_to_popup" from="." to="." method="_on_CreateNewImage_about_to_show"]
|
|
[connection signal="confirmed" from="." to="." method="_on_CreateNewImage_confirmed"]
|
|
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
|
|
[connection signal="item_selected" from="VBoxContainer/VBoxContainer/Templates/TemplatesContainer/TemplatesOptions" to="." method="_on_TemplatesOptions_item_selected"]
|
|
[connection signal="value_changed" from="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/WidthContainer/WidthValue" to="." method="_on_SizeValue_value_changed"]
|
|
[connection signal="value_changed" from="VBoxContainer/VBoxContainer/Templates/SizeContainer/VBoxContainer/HeightContainer/HeightValue" to="." method="_on_SizeValue_value_changed"]
|
|
[connection signal="toggled" from="VBoxContainer/VBoxContainer/Templates/SizeContainer/TextureRect/AspectRatioButton" to="." method="_on_AspectRatioButton_toggled"]
|
|
[connection signal="item_selected" from="VBoxContainer/VBoxContainer/VBoxContainer/RecentTemplates" to="." method="_on_RecentTemplates_item_selected"]
|
|
[connection signal="toggled" from="VBoxContainer/SizeButtonsContainer/PortraitButton" to="." method="_on_PortraitButton_toggled"]
|
|
[connection signal="toggled" from="VBoxContainer/SizeButtonsContainer/LandscapeButton" to="." method="_on_LandscapeButton_toggled"]
|