mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:44:42 -04:00
parent
a517f9178a
commit
637a60d9ee
9 changed files with 75 additions and 11 deletions
|
@ -346,8 +346,8 @@ window_title = "Open a Directory"
|
|||
resizable = true
|
||||
mode = 2
|
||||
access = 2
|
||||
current_dir = "C:/Users"
|
||||
current_path = "C:/Users/"
|
||||
current_dir = "/Users"
|
||||
current_path = "/Users/"
|
||||
|
||||
[node name="PathValidationAlert" type="AcceptDialog" parent="Popups"]
|
||||
margin_left = 8.0
|
||||
|
|
|
@ -8,5 +8,5 @@ resizable = true
|
|||
mode = 0
|
||||
access = 2
|
||||
filters = PoolStringArray( "*.pxo ; Pixelorama Project", "*.png ; PNG Image", "*.bmp ; BMP Image", "*.hdr ; Radiance HDR Image", "*.jpg,*.jpeg ; JPEG Image", "*.svg ; SVG Image", "*.tga ; TGA Image", "*.webp ; WebP Image" )
|
||||
current_dir = "C:/Users"
|
||||
current_path = "C:/Users/"
|
||||
current_dir = "/Users"
|
||||
current_path = "/Users/"
|
||||
|
|
|
@ -12,5 +12,5 @@ margin_bottom = 48.0
|
|||
resizable = true
|
||||
access = 2
|
||||
filters = PoolStringArray( "*.pxo ; Pixelorama Project" )
|
||||
current_dir = "C:/Users"
|
||||
current_path = "C:/Users/"
|
||||
current_dir = "/Users"
|
||||
current_path = "/Users/"
|
||||
|
|
33
src/UI/Dialogs/SaveSpriteHTML5.tscn
Normal file
33
src/UI/Dialogs/SaveSpriteHTML5.tscn
Normal file
|
@ -0,0 +1,33 @@
|
|||
[gd_scene format=2]
|
||||
|
||||
[node name="SaveSpriteHTML5" type="ConfirmationDialog"]
|
||||
visible = true
|
||||
margin_right = 200.0
|
||||
margin_bottom = 70.0
|
||||
|
||||
[node name="FileNameContainer" type="HBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
margin_bottom = 41.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="FileNameLabel" type="Label" parent="FileNameContainer"]
|
||||
margin_top = 13.0
|
||||
margin_right = 67.0
|
||||
margin_bottom = 27.0
|
||||
text = "File name:"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="FileNameLineEdit" type="LineEdit" parent="FileNameContainer"]
|
||||
margin_left = 71.0
|
||||
margin_top = 8.0
|
||||
margin_right = 200.0
|
||||
margin_bottom = 32.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
|
@ -162,16 +162,23 @@ func on_open_last_project_file_menu_option_pressed() -> void:
|
|||
|
||||
func save_project_file() -> void:
|
||||
Global.control.is_quitting_on_save = false
|
||||
if OpenSave.current_save_paths[Global.current_project_index] == "":
|
||||
Global.save_sprites_dialog.popup_centered()
|
||||
var path = OpenSave.current_save_paths[Global.current_project_index]
|
||||
if path == "":
|
||||
if OS.get_name() == "HTML5":
|
||||
Global.save_sprites_html5_dialog.popup_centered()
|
||||
else:
|
||||
Global.save_sprites_dialog.popup_centered()
|
||||
Global.dialog_open(true)
|
||||
else:
|
||||
Global.control._on_SaveSprite_file_selected(OpenSave.current_save_paths[Global.current_project_index])
|
||||
Global.control._on_SaveSprite_file_selected(path)
|
||||
|
||||
|
||||
func save_project_file_as() -> void:
|
||||
Global.control.is_quitting_on_save = false
|
||||
Global.save_sprites_dialog.popup_centered()
|
||||
if OS.get_name() == "HTML5":
|
||||
Global.save_sprites_html5_dialog.popup_centered()
|
||||
else:
|
||||
Global.save_sprites_dialog.popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue