434 lines
16 KiB
Plaintext
434 lines
16 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/escoria-wizard/RoomCreator.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/escoria-wizard/graphics/background_preview.png" type="Texture" id=2]
|
|
|
|
[node name="CenterContainer" type="CenterContainer"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
rect_clip_content = true
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
margin_left = 135.0
|
|
margin_top = 73.0
|
|
margin_right = 1145.0
|
|
margin_bottom = 827.0
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="MarginContainer"]
|
|
margin_right = 1010.0
|
|
margin_bottom = 754.0
|
|
color = Color( 0.235294, 0.341176, 0.290196, 1 )
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer"]
|
|
margin_right = 1010.0
|
|
margin_bottom = 754.0
|
|
custom_constants/margin_right = 5
|
|
custom_constants/margin_top = 5
|
|
custom_constants/margin_left = 5
|
|
custom_constants/margin_bottom = 5
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/MarginContainer"]
|
|
margin_left = 5.0
|
|
margin_top = 5.0
|
|
margin_right = 1005.0
|
|
margin_bottom = 749.0
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/MarginContainer/VBoxContainer"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 40.0
|
|
rect_min_size = Vector2( 0, 40 )
|
|
|
|
[node name="Label" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/CenterContainer"]
|
|
margin_left = 448.0
|
|
margin_top = 13.0
|
|
margin_right = 552.0
|
|
margin_bottom = 27.0
|
|
custom_colors/font_color = Color( 0.921569, 1, 0, 1 )
|
|
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
|
|
text = "Room Creator"
|
|
uppercase = true
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/MarginContainer/VBoxContainer"]
|
|
margin_top = 44.0
|
|
margin_right = 1000.0
|
|
margin_bottom = 256.0
|
|
rect_min_size = Vector2( 460, 200 )
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 212.0
|
|
rect_min_size = Vector2( 300, 200 )
|
|
custom_constants/hseparation = 10
|
|
columns = 4
|
|
|
|
[node name="RoomNameLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 5.0
|
|
margin_right = 127.0
|
|
margin_bottom = 19.0
|
|
text = "Room name:"
|
|
|
|
[node name="RoomName" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_right = 537.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 400, 0 )
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="Spacer3" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_right = 782.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="Spacer6" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_right = 992.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 200, 0 )
|
|
|
|
[node name="GlobalIDLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 33.0
|
|
margin_right = 127.0
|
|
margin_bottom = 47.0
|
|
text = "Global ID:"
|
|
|
|
[node name="GlobalID" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_top = 28.0
|
|
margin_right = 537.0
|
|
margin_bottom = 52.0
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="Spacer4" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_top = 28.0
|
|
margin_right = 782.0
|
|
margin_bottom = 52.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="Spacer7" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_top = 28.0
|
|
margin_right = 992.0
|
|
margin_bottom = 52.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="PlayerSceneLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 69.0
|
|
margin_right = 127.0
|
|
margin_bottom = 83.0
|
|
text = "Player scene:"
|
|
|
|
[node name="PlayerScene" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_top = 56.0
|
|
margin_right = 537.0
|
|
margin_bottom = 96.0
|
|
text = "Scene will be left blank."
|
|
editable = false
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="UseEmptyPlayerButton" type="CheckButton" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_top = 56.0
|
|
margin_right = 782.0
|
|
margin_bottom = 96.0
|
|
pressed = true
|
|
text = "Use empty player scene"
|
|
|
|
[node name="SelectPlayerScene" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
visible = false
|
|
margin_left = 578.0
|
|
margin_top = 56.0
|
|
margin_right = 808.0
|
|
margin_bottom = 96.0
|
|
text = "Select Player Scene"
|
|
|
|
[node name="SelectPlayerSceneSpacer" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_top = 56.0
|
|
margin_right = 992.0
|
|
margin_bottom = 96.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="ESCScriptLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 113.0
|
|
margin_right = 127.0
|
|
margin_bottom = 127.0
|
|
text = "Room ESC script:"
|
|
|
|
[node name="ESCScript" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_top = 100.0
|
|
margin_right = 537.0
|
|
margin_bottom = 140.0
|
|
hint_tooltip = "In the room's scripts folder
|
|
an empty file will be created
|
|
with this name."
|
|
text = "Room will not have a script configured."
|
|
editable = false
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="UseEmptyRoomScript" type="CheckButton" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_top = 100.0
|
|
margin_right = 782.0
|
|
margin_bottom = 140.0
|
|
pressed = true
|
|
text = "No script"
|
|
|
|
[node name="UseEmptyRoomSpacer" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_top = 100.0
|
|
margin_right = 992.0
|
|
margin_bottom = 140.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="BackgroundImageLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 157.0
|
|
margin_right = 127.0
|
|
margin_bottom = 171.0
|
|
text = "Background image:"
|
|
|
|
[node name="BackgroundImage" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_top = 144.0
|
|
margin_right = 537.0
|
|
margin_bottom = 184.0
|
|
text = "Image will be left blank."
|
|
editable = false
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="UseEmptyBackground" type="CheckButton" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_top = 144.0
|
|
margin_right = 782.0
|
|
margin_bottom = 184.0
|
|
pressed = true
|
|
text = "Use empty background"
|
|
|
|
[node name="SelectBackground" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
visible = false
|
|
margin_left = 564.0
|
|
margin_top = 144.0
|
|
margin_right = 693.0
|
|
margin_bottom = 184.0
|
|
text = "Select Background"
|
|
|
|
[node name="SelectBackgroundSpacer" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_top = 144.0
|
|
margin_right = 992.0
|
|
margin_bottom = 184.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="RoomFolderLabel" type="Label" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_top = 193.0
|
|
margin_right = 127.0
|
|
margin_bottom = 207.0
|
|
text = "Room folder parent:"
|
|
|
|
[node name="RoomFolder" type="LineEdit" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 137.0
|
|
margin_top = 188.0
|
|
margin_right = 537.0
|
|
margin_bottom = 212.0
|
|
hint_tooltip = "A folder (<Global ID>) for your room will be created inside this parent folder."
|
|
text = "res://game/rooms"
|
|
editable = false
|
|
caret_blink = true
|
|
caret_blink_speed = 0.5
|
|
|
|
[node name="ChangeRoomFolderButton" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 547.0
|
|
margin_top = 188.0
|
|
margin_right = 782.0
|
|
margin_bottom = 212.0
|
|
text = "Change Room Folder"
|
|
|
|
[node name="Spacer8" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer"]
|
|
margin_left = 792.0
|
|
margin_top = 188.0
|
|
margin_right = 992.0
|
|
margin_bottom = 212.0
|
|
rect_min_size = Vector2( 40, 0 )
|
|
|
|
[node name="PreviewSection" type="MarginContainer" parent="MarginContainer/MarginContainer/VBoxContainer"]
|
|
margin_top = 260.0
|
|
margin_right = 1000.0
|
|
margin_bottom = 660.0
|
|
rect_min_size = Vector2( 1000, 400 )
|
|
|
|
[node name="PreviewFrame" type="ColorRect" parent="MarginContainer/MarginContainer/VBoxContainer/PreviewSection"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 400.0
|
|
rect_min_size = Vector2( 1000, 400 )
|
|
color = Color( 0, 0, 0, 1 )
|
|
|
|
[node name="CenterContainer" type="MarginContainer" parent="MarginContainer/MarginContainer/VBoxContainer/PreviewSection"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 400.0
|
|
|
|
[node name="RoomBackground" type="TextureRect" parent="MarginContainer/MarginContainer/VBoxContainer/PreviewSection/CenterContainer"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 400.0
|
|
rect_min_size = Vector2( 990, 390 )
|
|
texture = ExtResource( 2 )
|
|
expand = true
|
|
stretch_mode = 7
|
|
|
|
[node name="Control" type="Control" parent="MarginContainer/MarginContainer/VBoxContainer/PreviewSection"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 400.0
|
|
|
|
[node name="BackgroundPreview" type="TextureRect" parent="MarginContainer/MarginContainer/VBoxContainer/PreviewSection/Control"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 400.0
|
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/MarginContainer/VBoxContainer"]
|
|
margin_top = 664.0
|
|
margin_right = 1000.0
|
|
margin_bottom = 744.0
|
|
rect_min_size = Vector2( 0, 80 )
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2"]
|
|
margin_right = 1000.0
|
|
margin_bottom = 80.0
|
|
rect_min_size = Vector2( 800, 80 )
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer"]
|
|
margin_left = 349.0
|
|
margin_top = 20.0
|
|
margin_right = 650.0
|
|
margin_bottom = 60.0
|
|
rect_min_size = Vector2( 300, 40 )
|
|
custom_constants/hseparation = 40
|
|
columns = 3
|
|
|
|
[node name="CreateButton" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer"]
|
|
margin_right = 94.0
|
|
margin_bottom = 20.0
|
|
text = "Create Room"
|
|
|
|
[node name="ClearButton" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer"]
|
|
margin_left = 134.0
|
|
margin_right = 178.0
|
|
margin_bottom = 20.0
|
|
text = "Clear"
|
|
|
|
[node name="MainMenuButton" type="Button" parent="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer"]
|
|
margin_left = 218.0
|
|
margin_right = 301.0
|
|
margin_bottom = 20.0
|
|
text = "Main Menu"
|
|
|
|
[node name="InformationWindows" type="Control" parent="."]
|
|
margin_left = 640.0
|
|
margin_top = 450.0
|
|
margin_right = 640.0
|
|
margin_bottom = 450.0
|
|
|
|
[node name="PlayerSceneFileDialog" type="FileDialog" parent="InformationWindows"]
|
|
margin_left = 1400.0
|
|
margin_top = 1400.0
|
|
margin_right = 2000.0
|
|
margin_bottom = 2000.0
|
|
rect_min_size = Vector2( 600, 600 )
|
|
popup_exclusive = true
|
|
window_title = "Open a File"
|
|
mode = 0
|
|
filters = PoolStringArray( "*.tscn, *.scn ; Scene Files" )
|
|
__meta__ = {
|
|
"_editor_description_": ""
|
|
}
|
|
|
|
[node name="ESCScriptFileDialog" type="FileDialog" parent="InformationWindows"]
|
|
margin_left = 172.0
|
|
margin_top = -206.0
|
|
margin_right = 772.0
|
|
margin_bottom = 394.0
|
|
rect_min_size = Vector2( 600, 600 )
|
|
popup_exclusive = true
|
|
window_title = "Open a File"
|
|
mode = 0
|
|
filters = PoolStringArray( "*.esc; Escoria script files" )
|
|
__meta__ = {
|
|
"_editor_description_": ""
|
|
}
|
|
|
|
[node name="BackgroundImageFileDialog" type="FileDialog" parent="InformationWindows"]
|
|
margin_left = 1400.0
|
|
margin_top = 1400.0
|
|
margin_right = 2000.0
|
|
margin_bottom = 2000.0
|
|
rect_min_size = Vector2( 600, 600 )
|
|
popup_exclusive = true
|
|
window_title = "Open a File"
|
|
mode = 0
|
|
filters = PoolStringArray( "*.png, *.jpg, *.jpeg ; Supported Images" )
|
|
|
|
[node name="ClearConfirmationDialog" type="ConfirmationDialog" parent="InformationWindows"]
|
|
margin_right = 353.0
|
|
margin_bottom = 92.0
|
|
popup_exclusive = true
|
|
dialog_text = "WARNING!
|
|
|
|
If you continue you will lose the current room setup."
|
|
|
|
[node name="MainMenuConfirmationDialog" type="ConfirmationDialog" parent="InformationWindows"]
|
|
margin_right = 353.0
|
|
margin_bottom = 92.0
|
|
popup_exclusive = true
|
|
dialog_text = "WARNING!
|
|
|
|
If you continue you will lose the current room setup."
|
|
|
|
[node name="GenericErrorDialog" type="AcceptDialog" parent="InformationWindows"]
|
|
margin_right = 83.0
|
|
margin_bottom = 58.0
|
|
popup_exclusive = true
|
|
dialog_text = "ERROR!
|
|
|
|
Please supply a name for the room."
|
|
|
|
[node name="CreateCompleteDialog" type="AcceptDialog" parent="InformationWindows"]
|
|
margin_right = 83.0
|
|
margin_bottom = 58.0
|
|
popup_exclusive = true
|
|
window_title = "Export Complete"
|
|
dialog_text = "The room has been created."
|
|
|
|
[node name="RoomFolderDialog" type="FileDialog" parent="InformationWindows"]
|
|
margin_left = -279.0
|
|
margin_top = -343.0
|
|
margin_right = 321.0
|
|
margin_bottom = 257.0
|
|
rect_min_size = Vector2( 600, 600 )
|
|
popup_exclusive = true
|
|
window_title = "Open a Directory"
|
|
mode = 2
|
|
|
|
[connection signal="text_changed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/RoomName" to="." method="_on_RoomName_text_changed"]
|
|
[connection signal="text_changed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/GlobalID" to="." method="_on_GlobalID_text_changed"]
|
|
[connection signal="toggled" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/UseEmptyPlayerButton" to="." method="_on_UseEmptyPlayerButton_toggled"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/SelectPlayerScene" to="." method="_on_SelectPlayerScene_pressed"]
|
|
[connection signal="toggled" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/UseEmptyRoomScript" to="." method="_on_UseEmptyRoomScript_toggled"]
|
|
[connection signal="toggled" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/UseEmptyBackground" to="." method="_on_UseEmptyBackground_toggled"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/SelectBackground" to="." method="_on_SelectBackground_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer/GridContainer/ChangeRoomFolderButton" to="." method="_on_ChangeRoomFolderButton_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer/CreateButton" to="." method="_on_CreateButton_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer/ClearButton" to="." method="_on_ClearButton_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/MarginContainer/VBoxContainer/MarginContainer2/CenterContainer/GridContainer/MainMenuButton" to="." method="_on_MainMenuButton_pressed"]
|
|
[connection signal="file_selected" from="InformationWindows/PlayerSceneFileDialog" to="." method="_on_PlayerSceneFileDialog_file_selected"]
|
|
[connection signal="file_selected" from="InformationWindows/ESCScriptFileDialog" to="." method="_on_ESCScriptFileDialog_file_selected"]
|
|
[connection signal="file_selected" from="InformationWindows/BackgroundImageFileDialog" to="." method="_on_BackgroundImageFileDialog_file_selected"]
|
|
[connection signal="confirmed" from="InformationWindows/ClearConfirmationDialog" to="." method="_on_ClearConfirmationDialog_confirmed"]
|
|
[connection signal="confirmed" from="InformationWindows/MainMenuConfirmationDialog" to="." method="_on_MainMenuConfirmationDialog_confirmed"]
|
|
[connection signal="dir_selected" from="InformationWindows/RoomFolderDialog" to="." method="_on_RoomFolderDialog_dir_selected"]
|