Skip to content

Commit

Permalink
Added button to change raid layout in options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed May 17, 2020
1 parent d80a3e3 commit 9328163
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/Chinese.lua
Expand Up @@ -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 获取更多可用命令。"
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/English.lua
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/French.lua
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/German.lua
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/Italian.lua
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/Russian.lua
Expand Up @@ -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' для помощи."
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/Spanish.lua
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ShestakUI_Config/Locales/Taiwan.lua
Expand Up @@ -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 獲取更多可用命令。"
Expand Down
10 changes: 10 additions & 0 deletions ShestakUI_Config/Options.lua
Expand Up @@ -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
Expand Down

0 comments on commit 9328163

Please sign in to comment.