mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 19:09:50 +00:00
130 lines
4.1 KiB
Plaintext
130 lines
4.1 KiB
Plaintext
|
[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"]
|
||
|
margin_right = 216.0
|
||
|
margin_bottom = 374.0
|
||
|
rect_min_size = Vector2( 172, 60.2 )
|
||
|
window_title = "Tile Mode Offsets"
|
||
|
resizable = true
|
||
|
script = ExtResource( 3 )
|
||
|
|
||
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||
|
margin_left = 8.0
|
||
|
margin_top = 8.0
|
||
|
margin_right = 208.0
|
||
|
margin_bottom = 338.0
|
||
|
|
||
|
[node name="TileModeOffsets" type="Label" parent="VBoxContainer"]
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 14.0
|
||
|
text = "Tile Mode Offsets"
|
||
|
|
||
|
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
|
||
|
margin_top = 18.0
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 126.0
|
||
|
custom_constants/vseparation = 4
|
||
|
custom_constants/hseparation = 2
|
||
|
columns = 2
|
||
|
|
||
|
[node name="XBasisXLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
||
|
margin_top = 5.0
|
||
|
margin_right = 61.0
|
||
|
margin_bottom = 19.0
|
||
|
text = "X-basis x:"
|
||
|
|
||
|
[node name="XBasisX" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
||
|
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"
|
||
|
|
||
|
[node name="XBasisYLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
||
|
margin_top = 33.0
|
||
|
margin_right = 61.0
|
||
|
margin_bottom = 47.0
|
||
|
text = "X-basis y:"
|
||
|
|
||
|
[node name="XBasisY" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
||
|
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"
|
||
|
|
||
|
[node name="YBasisXLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
||
|
margin_top = 61.0
|
||
|
margin_right = 61.0
|
||
|
margin_bottom = 75.0
|
||
|
text = "Y-basis x:"
|
||
|
|
||
|
[node name="YBasisX" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
||
|
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"
|
||
|
|
||
|
[node name="YBasisYLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
||
|
margin_top = 89.0
|
||
|
margin_right = 61.0
|
||
|
margin_bottom = 103.0
|
||
|
text = "Y-basis y:"
|
||
|
|
||
|
[node name="YBasisY" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
||
|
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"
|
||
|
|
||
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
||
|
margin_top = 130.0
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 330.0
|
||
|
size_flags_vertical = 3
|
||
|
|
||
|
[node name="Preview" type="Control" parent="VBoxContainer/AspectRatioContainer"]
|
||
|
margin_right = 200.0
|
||
|
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"]
|
||
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/XBasisX" to="." method="_on_XBasisX_value_changed"]
|
||
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/XBasisY" to="." method="_on_XBasisY_value_changed"]
|
||
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/YBasisX" to="." method="_on_YBasisX_value_changed"]
|
||
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/YBasisY" to="." method="_on_YBasisY_value_changed"]
|