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:
Manolis Papadeas 2020-12-03 03:49:53 +02:00
parent cf35060e74
commit 46939bd74d
3 changed files with 13 additions and 6 deletions

View file

@ -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 := []