mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:14:42 -04:00
ExportDialog visual changes
Tabs are now included as Class items in all themes, the OK button in ExportDialog appears on the left on Windows machines, and on the right in all other operating systems. Also added border outlines to all window dialogs.
This commit is contained in:
parent
730c62ce38
commit
9bf1660d18
7 changed files with 126 additions and 12 deletions
|
@ -51,8 +51,12 @@ func _ready() -> void:
|
|||
$VBoxContainer/Tabs.add_tab("Frame")
|
||||
$VBoxContainer/Tabs.add_tab("Spritesheet")
|
||||
$VBoxContainer/Tabs.add_tab("Animation")
|
||||
add_button("Cancel", false, "cancel")
|
||||
$Popups/FileExistsAlert.add_button("Cancel Export", false, "cancel")
|
||||
if OS.get_name() == "Windows":
|
||||
add_button("Cancel", true, "cancel")
|
||||
$Popups/FileExistsAlert.add_button("Cancel Export", true, "cancel")
|
||||
else:
|
||||
add_button("Cancel", false, "cancel")
|
||||
$Popups/FileExistsAlert.add_button("Cancel Export", false, "cancel")
|
||||
|
||||
func show_tab() -> void:
|
||||
$VBoxContainer/FrameOptions.hide()
|
||||
|
@ -322,6 +326,7 @@ func _on_ExportDialog_about_to_show() -> void:
|
|||
child.theme = Global.control.theme
|
||||
|
||||
file_exists_alert = tr("File %s already exists. Overwrite?") # Update translation
|
||||
#$VBoxContainer/Tabs.set_tab_title(0, "Frame")
|
||||
|
||||
func _on_Tabs_tab_clicked(tab : int) -> void:
|
||||
current_tab = tab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue