149 lines
4 KiB
Text
149 lines
4 KiB
Text
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://demo/saveload.gd" type="Script" id=1]
|
|
[ext_resource path="res://demo/examples.gd" type="Script" id=2]
|
|
|
|
[node name="TabContainer" type="TabContainer"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 4.0
|
|
margin_top = 4.0
|
|
margin_right = -4.0
|
|
margin_bottom = -4.0
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="Load Edit Save" type="Control" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 4.0
|
|
margin_top = 32.0
|
|
margin_right = -4.0
|
|
margin_bottom = -4.0
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="read" type="Button" parent="Load Edit Save"]
|
|
margin_left = 23.0
|
|
margin_top = 15.0
|
|
margin_right = 222.0
|
|
margin_bottom = 57.0
|
|
text = "Load"
|
|
|
|
[node name="TextEdit" type="TextEdit" parent="Load Edit Save"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_top = 103.0
|
|
highlight_current_line = true
|
|
show_line_numbers = true
|
|
wrap_enabled = true
|
|
minimap_draw = true
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="save" type="Button" parent="Load Edit Save"]
|
|
margin_left = 236.0
|
|
margin_top = 17.0
|
|
margin_right = 397.0
|
|
margin_bottom = 56.0
|
|
text = "Save"
|
|
|
|
[node name="FileDialog" type="FileDialog" parent="Load Edit Save"]
|
|
margin_left = 134.0
|
|
margin_top = 127.0
|
|
margin_right = 706.0
|
|
margin_bottom = 560.0
|
|
window_title = "Open a File"
|
|
resizable = true
|
|
mode = 0
|
|
access = 2
|
|
filters = PoolStringArray( "*.nbt ; NBT file", "*.schem ; Sponge Schematic", "*.schematic ; MCEdit Schematic" )
|
|
|
|
[node name="FileDialogsave" type="FileDialog" parent="Load Edit Save"]
|
|
margin_left = 268.0
|
|
margin_top = 254.0
|
|
margin_right = 840.0
|
|
margin_bottom = 687.0
|
|
resizable = true
|
|
access = 2
|
|
filters = PoolStringArray( "*.nbt ; NBT file", "*.schem ; Sponge Schematic", "*.schematic ; MCEdit Schematic" )
|
|
|
|
[node name="c" type="CheckBox" parent="Load Edit Save"]
|
|
margin_left = 91.0
|
|
margin_top = 65.0
|
|
margin_right = 212.0
|
|
margin_bottom = 99.0
|
|
pressed = true
|
|
text = "Compressed"
|
|
|
|
[node name="Code Examples" type="VBoxContainer" parent="."]
|
|
visible = false
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 4.0
|
|
margin_top = 32.0
|
|
margin_right = -4.0
|
|
margin_bottom = -4.0
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Code Examples"]
|
|
margin_right = 1008.0
|
|
margin_bottom = 14.0
|
|
text = "Examples made from scratch with and without the helpers:"
|
|
autowrap = true
|
|
|
|
[node name="save_scratch_example" type="Button" parent="Code Examples"]
|
|
margin_top = 18.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 38.0
|
|
text = "Save examples"
|
|
|
|
[node name="Label2" type="Label" parent="Code Examples"]
|
|
margin_top = 42.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 56.0
|
|
text = "Basic schematic example:"
|
|
autowrap = true
|
|
|
|
[node name="BID" type="LineEdit" parent="Code Examples"]
|
|
margin_top = 60.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 84.0
|
|
placeholder_text = "Block ID"
|
|
|
|
[node name="Label3" type="Label" parent="Code Examples"]
|
|
margin_top = 88.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 170.0
|
|
text = "Block ID examples:
|
|
grass_block
|
|
minecraft:cobblestone
|
|
minecraft:gold_ore
|
|
mod_name:mod_block"
|
|
autowrap = true
|
|
|
|
[node name="schem" type="Button" parent="Code Examples"]
|
|
margin_top = 174.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 194.0
|
|
text = "Save schematic"
|
|
|
|
[node name="Output" type="Label" parent="Code Examples"]
|
|
margin_top = 198.0
|
|
margin_right = 1008.0
|
|
margin_bottom = 212.0
|
|
autowrap = true
|
|
|
|
[connection signal="pressed" from="Load Edit Save/read" to="Load Edit Save" method="_on_read_example_pressed"]
|
|
[connection signal="pressed" from="Load Edit Save/save" to="Load Edit Save" method="_on_write_pressed"]
|
|
[connection signal="file_selected" from="Load Edit Save/FileDialog" to="Load Edit Save" method="_on_FileDialog_file_selected"]
|
|
[connection signal="file_selected" from="Load Edit Save/FileDialogsave" to="Load Edit Save" method="_on_FileDialogsave_file_selected"]
|
|
[connection signal="pressed" from="Code Examples/save_scratch_example" to="Code Examples" method="example"]
|
|
[connection signal="pressed" from="Code Examples/schem" to="Code Examples" method="_on_schem_pressed"]
|