diff --git a/ShestakUI_Config/Locales/Chinese.lua b/ShestakUI_Config/Locales/Chinese.lua index 81666e0c95..724fb9adcb 100644 --- a/ShestakUI_Config/Locales/Chinese.lua +++ b/ShestakUI_Config/Locales/Chinese.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "确定要设定/取消 角色专用设定 模式?" L_GUI_RESET_CAT = "确定要重置当前分类到预设值?" L_GUI_RESET_CAT_DESC = "左键重置当前分类到预设值。\nCTRL+左键重置全部到预设值。" L_GUI_NEED_RELOAD = "请点击套用以重载当前改动。" +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "一般用戶界面设置,键入 /uihelp 获取更多可用命令。" diff --git a/ShestakUI_Config/Locales/English.lua b/ShestakUI_Config/Locales/English.lua index d06b0ae22f..2f081ba725 100644 --- a/ShestakUI_Config/Locales/English.lua +++ b/ShestakUI_Config/Locales/English.lua @@ -10,6 +10,7 @@ L_GUI_PER_CHAR = "Are you sure you want to change to or from 'Per Char Settings' L_GUI_RESET_CAT = "Are you sure you want to reset category's settings?" L_GUI_RESET_CAT_DESC = "Reset category's settings. \nCTRL-click to reset all" L_GUI_NEED_RELOAD = "You need to reload the UI to apply your changes." +L_GUI_LAYOUT = "Change layout" -- General options L_GUI_GENERAL_SUBTEXT = "These settings control the general user interface settings. Type in chat '/uihelp' for help." diff --git a/ShestakUI_Config/Locales/French.lua b/ShestakUI_Config/Locales/French.lua index 6fd12650c7..a6dc4c3d63 100644 --- a/ShestakUI_Config/Locales/French.lua +++ b/ShestakUI_Config/Locales/French.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "Modifier la configuration du personnage ?" L_GUI_RESET_CAT = "Are you sure you want to reset category's settings?" -- Need review L_GUI_RESET_CAT_DESC = "Reset category's settings. \nCTRL-click to reset all" -- Need review L_GUI_NEED_RELOAD = "Vous devez recharger l'Interface pour appliquer vos changements." +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "Ces paramètres controllent les rendus de l'interface utilisateur. Saisir '/uihelp' dans le chat pour plus d'information." diff --git a/ShestakUI_Config/Locales/German.lua b/ShestakUI_Config/Locales/German.lua index fe692a5b33..936cea8352 100644 --- a/ShestakUI_Config/Locales/German.lua +++ b/ShestakUI_Config/Locales/German.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "Bist du sicher, dass du 'Einzelne Einstellungen für jeden Cha L_GUI_RESET_CAT = "Are you sure you want to reset category's settings?" -- Need review L_GUI_RESET_CAT_DESC = "Reset category's settings. \nCTRL-click to reset all" -- Need review L_GUI_NEED_RELOAD = "Benutzeroberfläche erneut laden, um Ihre Änderungen zu übernehmen." +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "Diese Einstellungen steuern die allgemeinen Einstellungen der Benutzeroberfläche. Geben Sie im Chat '/uihelp ein, um Hilfe zu erhalten." diff --git a/ShestakUI_Config/Locales/Italian.lua b/ShestakUI_Config/Locales/Italian.lua index 5892437e54..ae6a1cc8df 100644 --- a/ShestakUI_Config/Locales/Italian.lua +++ b/ShestakUI_Config/Locales/Italian.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "Vuoi davvero modificare questa impostazione (attivazione/disat L_GUI_RESET_CAT = "Are you sure you want to reset category's settings?" -- Need review L_GUI_RESET_CAT_DESC = "Reset category's settings. \nCTRL-click to reset all" -- Need review L_GUI_NEED_RELOAD = "You need to reload the UI to apply your changes." -- Need review +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "These settings control the general user interface settings. Type in chat '/uihelp' for help." -- Need review diff --git a/ShestakUI_Config/Locales/Russian.lua b/ShestakUI_Config/Locales/Russian.lua index 195c7a6e0b..161e09c5b8 100644 --- a/ShestakUI_Config/Locales/Russian.lua +++ b/ShestakUI_Config/Locales/Russian.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "Вы уверены, что хотите сменить реж L_GUI_RESET_CAT = "Вы уверены, что хотите сбросить настройки этого раздела?" L_GUI_RESET_CAT_DESC = "Cбросывает настройки раздела. \nCTRL-клик, чтобы сбросить всё" L_GUI_NEED_RELOAD = "Для активации настроек нужна перезагрузка." +L_GUI_LAYOUT = "Смена раскладки" -- General options L_GUI_GENERAL_SUBTEXT = "Эти настройки контролируют общие параметры UI. Наберите в чат '/uihelp' для помощи." diff --git a/ShestakUI_Config/Locales/Spanish.lua b/ShestakUI_Config/Locales/Spanish.lua index 64ad5d59aa..f2441c1ce2 100644 --- a/ShestakUI_Config/Locales/Spanish.lua +++ b/ShestakUI_Config/Locales/Spanish.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "¿Estás segudo de que quieres cambiar a o desde 'Cambios sól L_GUI_RESET_CAT = "Are you sure you want to reset category's settings?" -- Need review L_GUI_RESET_CAT_DESC = "Reset category's settings. \nCTRL-click to reset all" -- Need review L_GUI_NEED_RELOAD = "You need to reload the UI to apply your changes." -- Need review +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "These settings control the general user interface settings. Type in chat '/uihelp' for help." -- Need review diff --git a/ShestakUI_Config/Locales/Taiwan.lua b/ShestakUI_Config/Locales/Taiwan.lua index 711a56d537..ada49a8cee 100644 --- a/ShestakUI_Config/Locales/Taiwan.lua +++ b/ShestakUI_Config/Locales/Taiwan.lua @@ -13,6 +13,7 @@ L_GUI_PER_CHAR = "確定要設定/取消 角色專用設定 模式?" L_GUI_RESET_CAT = "確定要重置當前分類到預設值?" L_GUI_RESET_CAT_DESC = "左鍵重置當前分類到預設值。\nCTRL+左鍵重置全部到預設值。" L_GUI_NEED_RELOAD = "請點擊套用以重載當前改動。" +L_GUI_LAYOUT = "Change layout" -- Need review -- General options L_GUI_GENERAL_SUBTEXT = "一般用戶界面設置,鍵入 /uihelp 獲取更多可用命令。" diff --git a/ShestakUI_Config/Options.lua b/ShestakUI_Config/Options.lua index 8b29a93d3b..e47ca731cf 100644 --- a/ShestakUI_Config/Options.lua +++ b/ShestakUI_Config/Options.lua @@ -872,6 +872,16 @@ do local dps_raid_power_height = ns.CreateNumberSlider(parent, "dps_raid_power_height", nil, nil, 0, 10, 1, true) dps_raid_power_height:SetPoint("LEFT", dps_party_power_height, "RIGHT", 120, 0) + + local LayoutButton = CreateFrame("Button", nil, parent, "UIPanelButtonTemplate") + LayoutButton:SetPoint("BOTTOMRIGHT", parent, "BOTTOMRIGHT", -20, 5) + LayoutButton:SetSize(100, 23) + LayoutButton:SetText(L_GUI_LAYOUT) + LayoutButton:SetWidth(LayoutButton.Text:GetWidth() + 15) + LayoutButton:SetScript("OnClick", function() + StaticPopup_Show("SWITCH_RAID") + end) + tinsert(ns.buttons, LayoutButton) end -- ActionBar