1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Rename "Dockers" to "Panels" and update Translations.pot

This commit is contained in:
Manolis Papadeas 2022-02-07 01:18:19 +02:00
parent 8394f252f7
commit 4fe65fabf7
2 changed files with 28 additions and 19 deletions

View file

@ -172,6 +172,15 @@ msgstr ""
msgid "Panel Layout"
msgstr ""
msgid "Panels"
msgstr ""
msgid "Layouts"
msgstr ""
msgid "Manage Layouts"
msgstr ""
msgid "Auto"
msgstr ""

View file

@ -5,13 +5,13 @@ enum EditMenuId { UNDO, REDO, COPY, CUT, PASTE, DELETE, NEW_BRUSH, PREFERENCES }
enum ViewMenuId {
TILE_MODE,
WINDOW_OPACITY,
PANELS,
LAYOUTS,
MIRROR_VIEW,
SHOW_GRID,
SHOW_PIXEL_GRID,
SHOW_RULERS,
SHOW_GUIDES,
DOCKERS,
LAYOUTS,
EDIT_MODE,
ZEN_MODE,
FULLSCREEN_MODE
@ -60,7 +60,7 @@ onready var help_menu_button: MenuButton = find_node("HelpMenu")
onready var new_image_dialog: ConfirmationDialog = Global.control.find_node("CreateNewImage")
onready var window_opacity_dialog: AcceptDialog = Global.control.find_node("WindowOpacityDialog")
onready var tile_mode_submenu := PopupMenu.new()
onready var dockers_submenu := PopupMenu.new()
onready var panels_submenu := PopupMenu.new()
onready var layouts_submenu := PopupMenu.new()
onready var recent_projects_submenu := PopupMenu.new()
@ -145,14 +145,14 @@ func _setup_view_menu() -> void:
var view_menu_items := { # order as in ViewMenuId enum
"Tile Mode": 0,
"Window Opacity": 0,
"Panels": 0,
"Layouts": 0,
"Mirror View": InputMap.get_action_list("mirror_view")[0].get_scancode_with_modifiers(),
"Show Grid": InputMap.get_action_list("show_grid")[0].get_scancode_with_modifiers(),
"Show Pixel Grid":
InputMap.get_action_list("show_pixel_grid")[0].get_scancode_with_modifiers(),
"Show Rulers": InputMap.get_action_list("show_rulers")[0].get_scancode_with_modifiers(),
"Show Guides": InputMap.get_action_list("show_guides")[0].get_scancode_with_modifiers(),
"Dockers": 0,
"Layouts": 0,
"Edit Mode": InputMap.get_action_list("edit_mode")[0].get_scancode_with_modifiers(),
"Zen Mode": InputMap.get_action_list("zen_mode")[0].get_scancode_with_modifiers(),
"Fullscreen Mode":
@ -164,8 +164,8 @@ func _setup_view_menu() -> void:
for item in view_menu_items.keys():
if item == "Tile Mode":
_setup_tile_mode_submenu(item)
elif item == "Dockers":
_setup_dockers_submenu(item)
elif item == "Panels":
_setup_panels_submenu(item)
elif item == "Layouts":
_setup_layouts_submenu(item)
elif item == "Window Opacity":
@ -198,16 +198,16 @@ func _setup_tile_mode_submenu(item: String) -> void:
view_menu.add_submenu_item(item, tile_mode_submenu.get_name())
func _setup_dockers_submenu(item: String) -> void:
dockers_submenu.set_name("dockers_submenu")
dockers_submenu.hide_on_checkable_item_selection = false
func _setup_panels_submenu(item: String) -> void:
panels_submenu.set_name("panels_submenu")
panels_submenu.hide_on_checkable_item_selection = false
for element in ui_elements:
dockers_submenu.add_check_item(element.name)
dockers_submenu.set_item_checked(ui_elements.find(element), true)
panels_submenu.add_check_item(element.name)
panels_submenu.set_item_checked(ui_elements.find(element), true)
dockers_submenu.connect("id_pressed", self, "_dockers_submenu_id_pressed")
view_menu.add_child(dockers_submenu)
view_menu.add_submenu_item(item, dockers_submenu.get_name())
panels_submenu.connect("id_pressed", self, "_panels_submenu_id_pressed")
view_menu.add_child(panels_submenu)
view_menu.add_submenu_item(item, panels_submenu.get_name())
func _setup_layouts_submenu(item: String) -> void:
@ -444,12 +444,12 @@ func _tile_mode_submenu_id_pressed(id: int) -> void:
Global.canvas.grid.update()
func _dockers_submenu_id_pressed(id: int) -> void:
func _panels_submenu_id_pressed(id: int) -> void:
if zen_mode:
return
var element_visible = dockers_submenu.is_item_checked(id)
var element_visible = panels_submenu.is_item_checked(id)
Global.control.ui.set_control_hidden(ui_elements[id], element_visible)
dockers_submenu.set_item_checked(id, !element_visible)
panels_submenu.set_item_checked(id, !element_visible)
func _layouts_submenu_id_pressed(id: int) -> void:
@ -467,7 +467,7 @@ func set_layout(id: int) -> void:
layouts_submenu.set_item_checked(i, i == id)
for i in ui_elements.size():
dockers_submenu.set_item_checked(i, true)
panels_submenu.set_item_checked(i, true)
Global.control.find_node("TabsContainer").visible = true
zen_mode = false