continue to work
This commit is contained in:
+13
-13
@@ -1,5 +1,5 @@
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
||||
local ButtonBar = Bartender4.ButtonBar.prototype
|
||||
local ActionBar = setmetatable({}, {__index = ButtonBar})
|
||||
Bartender4.ActionBar = ActionBar
|
||||
@@ -66,8 +66,8 @@ function module:GetOptionsObject()
|
||||
local cat_general = {
|
||||
enabled ={
|
||||
order = 4,
|
||||
name = "Enabled",
|
||||
desc = "Enable/Disable the bar.",
|
||||
name = L["Enabled"],
|
||||
desc = L["Enable/Disable the bar."],
|
||||
type = "toggle",
|
||||
set = optSetter,
|
||||
get = optGetter,
|
||||
@@ -75,15 +75,15 @@ function module:GetOptionsObject()
|
||||
grid = {
|
||||
order = 60,
|
||||
type = "toggle",
|
||||
name = "Button Grid",
|
||||
desc = "Toggle the button grid.",
|
||||
name = L["Button Grid"],
|
||||
desc = L["Toggle the button grid."],
|
||||
set = optSetter,
|
||||
get = optGetter,
|
||||
},
|
||||
buttons = {
|
||||
order = 50,
|
||||
name = "Buttons",
|
||||
desc = "Number of buttons.",
|
||||
name = L["Buttons"],
|
||||
desc = L["Number of buttons."],
|
||||
type = "range",
|
||||
min = 1, max = 12, step = 1,
|
||||
set = optSetter,
|
||||
@@ -91,22 +91,22 @@ function module:GetOptionsObject()
|
||||
},
|
||||
hidedesc = {
|
||||
order = 80,
|
||||
name = "Button Look",
|
||||
name = L["Button Look"],
|
||||
type = "header",
|
||||
},
|
||||
macrotext = {
|
||||
order = 81,
|
||||
type = "toggle",
|
||||
name = "Hide Macro Text",
|
||||
desc = "Hide the Macro Text on the buttons of this bar.",
|
||||
name = L["Hide Macro Text"],
|
||||
desc = L["Hide the Macro Text on the buttons of this bar."],
|
||||
set = optSetter,
|
||||
get = optGetter,
|
||||
},
|
||||
hotkey = {
|
||||
order = 82,
|
||||
type = "toggle",
|
||||
name = "Hide Hotkey",
|
||||
desc = "Hide the Hotkey on the buttons of this bar.",
|
||||
name = L["Hide Hotkey"],
|
||||
desc = L["Hide the Hotkey on the buttons of this bar."],
|
||||
set = optSetter,
|
||||
get = optGetter,
|
||||
},
|
||||
@@ -115,7 +115,7 @@ function module:GetOptionsObject()
|
||||
|
||||
local states = {
|
||||
type = "group",
|
||||
name = "State Configuration",
|
||||
name = L["State Configuration"],
|
||||
cmdInline = true,
|
||||
order = 2,
|
||||
args = self:GetStateOptionsTable(),
|
||||
|
||||
+19
-19
@@ -1,5 +1,5 @@
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
||||
local ActionBar = Bartender4.ActionBar
|
||||
|
||||
local module = Bartender4:GetModule("ActionBars")
|
||||
@@ -103,8 +103,8 @@ function module:GetStateOptionsTable()
|
||||
enabled = {
|
||||
order = 1,
|
||||
type = "toggle",
|
||||
name = "Enabled",
|
||||
desc = "Enable State-based Button Swaping",
|
||||
name = L["Enabled"],
|
||||
desc = L["Enable State-based Button Swaping"],
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
},
|
||||
@@ -116,16 +116,16 @@ function module:GetStateOptionsTable()
|
||||
actionbar = {
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = "ActionBar Switching",
|
||||
desc = "Enable Bar Switching based on the actionbar controls provided by the game.",
|
||||
name = L["ActionBar Switching"],
|
||||
desc = L["Enable Bar Switching based on the actionbar controls provided by the game."],
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
},
|
||||
possess = {
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = "Possess Bar",
|
||||
desc = "Switch this bar to the Possess Bar when possessing a npc (eg. Mind Control)",
|
||||
name = L["Possess Bar"],
|
||||
desc = L["Switch this bar to the Possess Bar when possessing a npc (eg. Mind Control)"],
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
width = "half",
|
||||
@@ -133,8 +133,8 @@ function module:GetStateOptionsTable()
|
||||
autoassist = {
|
||||
order = 6,
|
||||
type = "toggle",
|
||||
name = "Auto-Assist",
|
||||
desc = "Enable Auto-Assist for this bar.\n Auto-Assist will automatically try to cast on your target's target if your target is no valid target for the selected spell.",
|
||||
name = L["Auto-Assist"],
|
||||
desc = L["Enable Auto-Assist for this bar.\n Auto-Assist will automatically try to cast on your target's target if your target is no valid target for the selected spell."],
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
width = "half",
|
||||
@@ -142,12 +142,12 @@ function module:GetStateOptionsTable()
|
||||
def_desc = {
|
||||
order = 10,
|
||||
type = "description",
|
||||
name = "The default behaviour of this bar when no state-based paging option affects it.",
|
||||
name = L["The default behaviour of this bar when no state-based paging option affects it."],
|
||||
},
|
||||
def_state = {
|
||||
order = 11,
|
||||
type = "select",
|
||||
name = "Default Bar State",
|
||||
name = L["Default Bar State"],
|
||||
values = validStanceTable,
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
@@ -165,33 +165,33 @@ function module:GetStateOptionsTable()
|
||||
header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = "Modifier Based Switching",
|
||||
name = L["Modifier Based Switching"],
|
||||
},
|
||||
ctrl = {
|
||||
order = 10,
|
||||
type = "select",
|
||||
name = "CTRL",
|
||||
name = L["CTRL"],
|
||||
arg = "states",
|
||||
values = validStanceTable,
|
||||
desc = "Configure actionbar paging when the ctrl key is down.",
|
||||
desc = L["Configure actionbar paging when the ctrl key is down."],
|
||||
--width = "half",
|
||||
},
|
||||
alt = {
|
||||
order = 15,
|
||||
type = "select",
|
||||
name = "ALT",
|
||||
name = L["ALT"],
|
||||
arg = "states",
|
||||
values = validStanceTable,
|
||||
desc = "Configure actionbar paging when the alt key is down.",
|
||||
desc = L["Configure actionbar paging when the alt key is down."],
|
||||
--width = "half",
|
||||
},
|
||||
shift = {
|
||||
order = 20,
|
||||
type = "select",
|
||||
name = "SHIFT",
|
||||
name = L["SHIFT"],
|
||||
arg = "states",
|
||||
values = validStanceTable,
|
||||
desc = "Configure actionbar paging when the shift key is down.",
|
||||
desc = L["Configure actionbar paging when the shift key is down."],
|
||||
--width = "half",
|
||||
},
|
||||
},
|
||||
@@ -209,7 +209,7 @@ function module:GetStateOptionsTable()
|
||||
stance_header = {
|
||||
order = 1,
|
||||
type = "header",
|
||||
name = "Stance Configuration",
|
||||
name = L["Stance Configuration"],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
||||
local BT4ActionBars = Bartender4:NewModule("ActionBars", "AceEvent-3.0")
|
||||
|
||||
local ActionBar, ActionBar_MT
|
||||
@@ -102,14 +102,14 @@ function BT4ActionBars:SetupOptions()
|
||||
self.disabledoptions = {
|
||||
general = {
|
||||
type = "group",
|
||||
name = "General Settings",
|
||||
name = L["General Settings"],
|
||||
cmdInline = true,
|
||||
order = 1,
|
||||
args = {
|
||||
enabled = {
|
||||
type = "toggle",
|
||||
name = "Enabled",
|
||||
desc = "Enable/Disable the bar.",
|
||||
name = L["Enabled"],
|
||||
desc = L["Enable/Disable the bar."],
|
||||
set = function(info, v) if v then BT4ActionBars:EnableBar(info[2]) end end,
|
||||
get = function() return false end,
|
||||
}
|
||||
@@ -166,8 +166,8 @@ function BT4ActionBars:CreateBarOption(id, options)
|
||||
self.options[id] = {
|
||||
order = 10 + tonumber(id),
|
||||
type = "group",
|
||||
name = ("Bar %s"):format(id),
|
||||
desc = ("Configure Bar %s"):format(id),
|
||||
name = (L["Bar %s"]):format(id),
|
||||
desc = (L["Configure Bar %s"]):format(id),
|
||||
childGroups = "tab",
|
||||
}
|
||||
end
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
||||
-- register module
|
||||
local BagBarMod = Bartender4:NewModule("BagBar", "AceHook-3.0")
|
||||
|
||||
@@ -56,8 +56,8 @@ function BagBarMod:SetupOptions()
|
||||
local enabled = {
|
||||
type = "toggle",
|
||||
order = 1,
|
||||
name = "Enabled",
|
||||
desc = "Enable the Bag Bar",
|
||||
name = L["Enabled"],
|
||||
desc = L["Enable the Bag Bar"],
|
||||
get = function() return self.db.profile.enabled end,
|
||||
set = "ToggleModule",
|
||||
handler = self,
|
||||
@@ -67,8 +67,8 @@ function BagBarMod:SetupOptions()
|
||||
local onebag = {
|
||||
type = "toggle",
|
||||
order = 80,
|
||||
name = "One Bag",
|
||||
desc = "Only show one Bag Button in the BagBar.",
|
||||
name = L["One Bag"],
|
||||
desc = L["Only show one Bag Button in the BagBar."],
|
||||
get = function() return self.db.profile.onebag end,
|
||||
set = function(info, state) self.db.profile.onebag = state; self.bar:FeedButtons(); self.bar:UpdateButtonLayout() end,
|
||||
}
|
||||
@@ -77,8 +77,8 @@ function BagBarMod:SetupOptions()
|
||||
local keyring = {
|
||||
type = "toggle",
|
||||
order = 80,
|
||||
name = "Keyring",
|
||||
desc = "Show the keyring button.",
|
||||
name = L["Keyring"],
|
||||
desc = L["Show the keyring button."],
|
||||
get = function() return self.db.profile.keyring end,
|
||||
set = function(info, state) self.db.profile.keyring = state; self.bar:FeedButtons(); self.bar:UpdateButtonLayout() end,
|
||||
}
|
||||
@@ -87,7 +87,7 @@ function BagBarMod:SetupOptions()
|
||||
self.disabledoptions = {
|
||||
general = {
|
||||
type = "group",
|
||||
name = "General Settings",
|
||||
name = L["General Settings"],
|
||||
cmdInline = true,
|
||||
order = 1,
|
||||
args = {
|
||||
@@ -98,8 +98,8 @@ function BagBarMod:SetupOptions()
|
||||
self.options = {
|
||||
order = 30,
|
||||
type = "group",
|
||||
name = "Bag Bar",
|
||||
desc = "Configure the Bag Bar",
|
||||
name = L["Bag Bar"],
|
||||
desc = L["Configure the Bag Bar"],
|
||||
childGroups = "tab",
|
||||
}
|
||||
Bartender4:RegisterBarOptions("Bag", self.options)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
]]
|
||||
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
||||
local Bar = CreateFrame("Button")
|
||||
local Bar_MT = {__index = Bar}
|
||||
|
||||
@@ -186,7 +186,7 @@ function Bar:GetOptionObject()
|
||||
show = {
|
||||
order = 5,
|
||||
type = "select",
|
||||
name = "Show/Hide",
|
||||
name = L["Show/Hide"],
|
||||
desc = "Configure when to Show/Hide the bar.",
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
|
||||
@@ -21,6 +21,55 @@ L["Button Tooltip"] = true
|
||||
L["Configure the Button Tooltip."] = true
|
||||
L["FAQ"] = true
|
||||
L["Frequently Asked Questions"] = true
|
||||
--ActionBarPrototype.lua
|
||||
L["Enabled"] = true
|
||||
L["Enable/Disable the bar."] = true
|
||||
L["Button Grid"] = true
|
||||
L["Toggle the button grid."] = true
|
||||
L["Buttons"] = true
|
||||
L["Number of buttons."] = true
|
||||
L["Button Look"] = true
|
||||
L["Hide Macro Text"] = true
|
||||
L["Hide the Macro Text on the buttons of this bar."] = true
|
||||
L["Hide Hotkey"] = true
|
||||
L["Hide the Hotkey on the buttons of this bar."] = true
|
||||
L["State Configuration"] = true
|
||||
--ActionBars.lua
|
||||
L["General Settings"] = true
|
||||
L["Enabled"] = true
|
||||
L["Enable/Disable the bar."] = true
|
||||
L["Bar %s"] = true
|
||||
L["Configure Bar %s"] = true
|
||||
--ActionBarStates.lua
|
||||
L["Enabled"] = true
|
||||
L["Enable State-based Button Swaping"] = true
|
||||
L["ActionBar Switching"] = true
|
||||
L["Enable Bar Switching based on the actionbar controls provided by the game."] = true
|
||||
L["Possess Bar"] = true
|
||||
L["Switch this bar to the Possess Bar when possessing a npc (eg. Mind Control)"] = true
|
||||
L["Auto-Assist"] = true
|
||||
L["Enable Auto-Assist for this bar.\n Auto-Assist will automatically try to cast on your target's target if your target is no valid target for the selected spell."] = true
|
||||
L["The default behaviour of this bar when no state-based paging option affects it."] = true
|
||||
L["Default Bar State"] = true
|
||||
L["Modifier Based Switching"] = true
|
||||
L["CTRL"] = true
|
||||
L["Configure actionbar paging when the ctrl key is down."] = true
|
||||
L["ALT"] = true
|
||||
L["Configure actionbar paging when the alt key is down."] = true
|
||||
L["SHIFT"] = true
|
||||
L["Stance Configuration"] = true
|
||||
--BagBar.lua
|
||||
L["Enabled"] = true
|
||||
L["Enable the Bag Bar"] = true
|
||||
L["One Bag"] = true
|
||||
L["Only show one Bag Button in the BagBar."] = true
|
||||
L["Keyring"] = true
|
||||
L["Show the keyring button."] = true
|
||||
L["General Settings"] = true
|
||||
L["Bag Bar"] = true
|
||||
L["Configure the Bag Bar"] = true
|
||||
--Bar.lua
|
||||
L["Show/Hide"] = true
|
||||
|
||||
L["FAQ_TEXT"] = [[
|
||||
|cffffd200
|
||||
|
||||
@@ -21,3 +21,53 @@ L["Button Tooltip"] = "按钮鼠标提示"
|
||||
L["Configure the Button Tooltip"] = "设置按钮的鼠标提示。"
|
||||
L["FAQ"] = "帮助"
|
||||
L["Frequently Asked Questions"] = "帮助信息"
|
||||
--ActionBarPrototype.lua
|
||||
L["Enabled"] = "开启"
|
||||
L["Enable/Disable the bar."] = "开启/关闭 该动作条"
|
||||
L["Button Grid"] = "显示空按钮"
|
||||
L["Toggle the button grid."] = "勾选该选项将显示空的按钮。"
|
||||
L["Buttons"] = "按钮"
|
||||
L["Number of buttons."] = "设置按钮的数量。"
|
||||
L["Button Look"] = "锁定按键"
|
||||
L["Hide Macro Text"] = "隐藏宏名称"
|
||||
L["Hide the Macro Text on the buttons of this bar."] = "在该动作条上不显示宏的名称。"
|
||||
L["Hide Hotkey"] = "隐藏快捷键"
|
||||
L["Hide the Hotkey on the buttons of this bar."] = "在该动作条上不显示按钮的快捷键提示。"
|
||||
L["State Configuration"] = "状态配置"
|
||||
--ActionBars.lua
|
||||
L["General Settings"] = "一般设置"
|
||||
L["Enabled"] = "开启"
|
||||
L["Enable/Disable the bar."] = "开启/关闭 该动作条。"
|
||||
L["Bar %s"] = "动作条 %s"
|
||||
L["Configure Bar %s"] = "设置动作条 %s"
|
||||
--ActionBarStates.lua
|
||||
L["Enabled"] = "开启"
|
||||
L["Enable State-based Button Swaping"] = "开始基于状态配置的按钮切换功能。"
|
||||
L["ActionBar Switching"] = "切换动作条"
|
||||
L["Enable Bar Switching based on the actionbar controls provided by the game"] = "开启游戏本身的动作条切换功能。(诸如战士的不同姿态下主动作条1的切换)"
|
||||
L["Possess Bar"] = "控制栏"
|
||||
L["Switch this bar to the Possess Bar when possessing a npc (eg. Mind Control)"] = "当控制某个NPC时切换该动作条至控制技能栏。(例如心灵控制)"
|
||||
L["Auto-Assist"] = "自动协助"
|
||||
L["Enable Auto-Assist for this bar.\n Auto-Assist will automatically try to cast on your target's target if your target is no valid target for the selected spell."] = "为该动作条开启自动协助。\n 当你所尝试使用的技能不能对你当前目标生效时,自动协助会尝试对目标的目标使用该技能。"
|
||||
L["The default behaviour of this bar when no state-based paging option affects it."] = "当没有状态配置作用于该动作条时的动作条默认行为"
|
||||
L["Default Bar State"] = "默认动作条状态"
|
||||
L["Modifier Based Switching"] = "修改基本切换"
|
||||
L["CTRL"] = "按下CTRL"
|
||||
L["Configure actionbar paging when the ctrl key is down."] = "配置当按下CTRL键时动作条的页面"
|
||||
L["ALT"] = "按下ALT"
|
||||
L["Configure actionbar paging when the alt key is down."] = "配置当按下ALT键时动作条的页面"
|
||||
L["SHIFT"] = "按下SHIFT"
|
||||
L["Configure actionbar paging when the shift key is down."] = "配置当按下SHIFT键时动作条的页面"
|
||||
L["Stance Configuration"] = "姿态配置"
|
||||
--BagBar.lua
|
||||
L["Enabled"] = "开启"
|
||||
L["Enable the Bag Bar"] = "开启背包栏"
|
||||
L["One Bag"] = "单背包"
|
||||
L["Only show one Bag Button in the BagBar."] = "仅仅显示一个背包来代表背包栏。"
|
||||
L["Keyring"] = "钥匙链"
|
||||
L["Show the keyring button."] = "显示钥匙链"
|
||||
L["General Settings"] = "一般设置"
|
||||
L["Bag Bar"] = "背包栏"
|
||||
L["Configure the Bag Bar"] = "设置背包栏。"
|
||||
--Bar.lua
|
||||
L["Show/Hide"]
|
||||
Reference in New Issue
Block a user