2022-06-20 09:07:20 +00:00
|
|
|
[gd_scene load_steps=5 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=1]
|
|
|
|
[ext_resource path="res://src/UI/Canvas/TileMode.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://src/UI/Dialogs/TileModeOffsetsDialog.gd" type="Script" id=3]
|
|
|
|
|
|
|
|
[sub_resource type="CanvasItemMaterial" id=1]
|
|
|
|
blend_mode = 4
|
|
|
|
|
|
|
|
[node name="TileModeOffsetsDialog" type="ConfirmationDialog"]
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_right = 301.0
|
|
|
|
margin_bottom = 422.0
|
|
|
|
rect_min_size = Vector2( 172, 422 )
|
2022-06-20 09:07:20 +00:00
|
|
|
window_title = "Tile Mode Offsets"
|
|
|
|
resizable = true
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
2022-08-02 15:57:06 +00:00
|
|
|
margin_right = 293.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 386.0
|
2022-06-20 09:07:20 +00:00
|
|
|
|
|
|
|
[node name="TileModeOffsets" type="Label" parent="VBoxContainer"]
|
2022-08-02 15:57:06 +00:00
|
|
|
margin_right = 285.0
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Tile Mode Offsets"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_top = 18.0
|
2022-08-02 15:57:06 +00:00
|
|
|
margin_right = 285.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 174.0
|
2022-08-02 15:57:06 +00:00
|
|
|
|
|
|
|
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
margin_right = 137.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 156.0
|
2022-06-20 09:07:20 +00:00
|
|
|
custom_constants/vseparation = 4
|
|
|
|
custom_constants/hseparation = 2
|
|
|
|
columns = 2
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="XBasisXLabel" type="Label" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "X-basis x:"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="XBasisX" type="SpinBox" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_left = 63.0
|
|
|
|
margin_right = 137.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = -16384.0
|
|
|
|
max_value = 16384.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="XBasisYLabel" type="Label" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_top = 33.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 47.0
|
|
|
|
text = "X-basis y:"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="XBasisY" type="SpinBox" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_left = 63.0
|
|
|
|
margin_top = 28.0
|
|
|
|
margin_right = 137.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = -16384.0
|
|
|
|
max_value = 16384.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="YBasisXLabel" type="Label" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_top = 61.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 75.0
|
|
|
|
text = "Y-basis x:"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="YBasisX" type="SpinBox" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_left = 63.0
|
|
|
|
margin_top = 56.0
|
|
|
|
margin_right = 137.0
|
|
|
|
margin_bottom = 80.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = -16384.0
|
|
|
|
max_value = 16384.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="YBasisYLabel" type="Label" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_top = 89.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 103.0
|
|
|
|
text = "Y-basis y:"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="YBasisY" type="SpinBox" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_left = 63.0
|
|
|
|
margin_top = 84.0
|
|
|
|
margin_right = 137.0
|
|
|
|
margin_bottom = 108.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = -16384.0
|
|
|
|
max_value = 16384.0
|
|
|
|
suffix = "px"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="Reset" type="Button" parent="VBoxContainer/HBoxContainer/OptionsContainer"]
|
2022-06-21 15:10:59 +00:00
|
|
|
margin_top = 112.0
|
|
|
|
margin_right = 61.0
|
|
|
|
margin_bottom = 132.0
|
|
|
|
text = "Reset"
|
|
|
|
|
2022-08-02 15:57:06 +00:00
|
|
|
[node name="VSeparator" type="VSeparator" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
margin_left = 141.0
|
|
|
|
margin_right = 145.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 156.0
|
2022-08-02 15:57:06 +00:00
|
|
|
|
|
|
|
[node name="Mask" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
margin_left = 149.0
|
|
|
|
margin_right = 285.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 156.0
|
2022-08-02 15:57:06 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
text = "Tile Mask"
|
|
|
|
align = 1
|
|
|
|
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
|
|
|
|
[node name="MaskHint" type="TextureRect" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_top = 26.0
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 100.0
|
|
|
|
rect_min_size = Vector2( 136, 74 )
|
2022-08-02 21:42:54 +00:00
|
|
|
hint_tooltip = "Mask will only allow the drawing to remain within it's bounds
|
|
|
|
(Used for custom tiles)"
|
2022-08-02 15:57:06 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
|
|
|
|
|
|
|
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_top = 104.0
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 108.0
|
|
|
|
|
|
|
|
[node name="LoadMask" type="Button" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_top = 112.0
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 132.0
|
|
|
|
rect_min_size = Vector2( 100, 0 )
|
2022-08-02 21:42:54 +00:00
|
|
|
hint_tooltip = "Create the Tile Mask from Current Frame"
|
|
|
|
text = "Current Frame?"
|
|
|
|
clip_text = true
|
|
|
|
|
|
|
|
[node name="ResetMask" type="Button" parent="VBoxContainer/HBoxContainer/Mask"]
|
|
|
|
margin_top = 136.0
|
|
|
|
margin_right = 136.0
|
|
|
|
margin_bottom = 156.0
|
|
|
|
rect_min_size = Vector2( 100, 0 )
|
|
|
|
hint_tooltip = "Create the Tile Mask from Current Frame"
|
|
|
|
disabled = true
|
|
|
|
text = "Reset Mask"
|
2022-08-02 15:57:06 +00:00
|
|
|
clip_text = true
|
|
|
|
|
2022-06-20 09:07:20 +00:00
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_top = 178.0
|
2022-08-02 15:57:06 +00:00
|
|
|
margin_right = 285.0
|
2022-08-02 21:42:54 +00:00
|
|
|
margin_bottom = 378.0
|
2022-06-20 09:07:20 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Preview" type="Control" parent="VBoxContainer/AspectRatioContainer"]
|
2022-08-02 15:57:06 +00:00
|
|
|
margin_left = 42.5
|
|
|
|
margin_right = 242.5
|
2022-06-20 09:07:20 +00:00
|
|
|
margin_bottom = 200.0
|
|
|
|
rect_min_size = Vector2( 200, 200 )
|
|
|
|
|
|
|
|
[node name="TileMode" type="Node2D" parent="VBoxContainer/AspectRatioContainer/Preview"]
|
|
|
|
material = SubResource( 1 )
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="TransparentChecker" parent="VBoxContainer/AspectRatioContainer/Preview" instance=ExtResource( 1 )]
|
|
|
|
show_behind_parent = true
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_right = 0.0
|
|
|
|
margin_bottom = 0.0
|
|
|
|
|
|
|
|
[connection signal="about_to_show" from="." to="." method="_on_TileModeOffsetsDialog_about_to_show"]
|
|
|
|
[connection signal="confirmed" from="." to="." method="_on_TileModeOffsetsDialog_confirmed"]
|
|
|
|
[connection signal="item_rect_changed" from="." to="." method="_on_TileModeOffsetsDialog_item_rect_changed"]
|
|
|
|
[connection signal="popup_hide" from="." to="." method="_on_TileModeOffsetsDialog_popup_hide"]
|
2022-08-02 15:57:06 +00:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/OptionsContainer/XBasisX" to="." method="_on_XBasisX_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/OptionsContainer/XBasisY" to="." method="_on_XBasisY_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/OptionsContainer/YBasisX" to="." method="_on_YBasisX_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/OptionsContainer/YBasisY" to="." method="_on_YBasisY_value_changed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/OptionsContainer/Reset" to="." method="_on_Reset_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Mask/LoadMask" to="." method="_on_LoadMask_pressed"]
|
2022-08-02 21:42:54 +00:00
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Mask/ResetMask" to="." method="_on_ResetMask_pressed"]
|