mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-17 15:24:43 -05:00
Check the correct tile mode button in View > Tile Mode when changing between projects
Also changed the buttons to radiobuttons
This commit is contained in:
parent
cf35060e74
commit
46939bd74d
3 changed files with 13 additions and 6 deletions
|
|
@ -206,6 +206,13 @@ func change_project() -> void:
|
|||
else:
|
||||
Global.file_menu.get_popup().set_item_text(6, tr("Export") + " %s" % (file_name + Export.file_format_string(file_format)))
|
||||
|
||||
for j in range(len(Global.Tile_Mode)):
|
||||
if j != tile_mode:
|
||||
Global.tile_mode_submenu.set_item_checked(j, false)
|
||||
else:
|
||||
Global.tile_mode_submenu.set_item_checked(j, true)
|
||||
|
||||
|
||||
|
||||
func serialize() -> Dictionary:
|
||||
var layer_data := []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue