Bartender4:
- added settings to toggle possess bar and actionbar-based switching (like pressing SHIFT-2 or SHIFT-MouseWheel to change bars) - added TODO.txt
This commit is contained in:
+25
-2
@@ -26,6 +26,8 @@ do
|
||||
enabled = "StateOption",
|
||||
def_state = "DefaultState",
|
||||
states = "StateOption",
|
||||
actionbar = "StateOption",
|
||||
possess = "StateOption",
|
||||
}
|
||||
-- retrieves a valid bar object from the modules actionbars table
|
||||
function getBar(id)
|
||||
@@ -105,6 +107,27 @@ function module:GetStateOptionsTable()
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
},
|
||||
sep1 = {
|
||||
order = 2,
|
||||
type = "description",
|
||||
name = "",
|
||||
},
|
||||
actionbar = {
|
||||
order = 5,
|
||||
type = "toggle",
|
||||
name = "ActionBar Switching",
|
||||
desc = "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)",
|
||||
get = optGetter,
|
||||
set = optSetter,
|
||||
},
|
||||
def_desc = {
|
||||
order = 10,
|
||||
type = "description",
|
||||
@@ -243,7 +266,7 @@ function ActionBar:UpdateStates()
|
||||
end
|
||||
|
||||
local statedriver = {}
|
||||
if self.id == "1" then
|
||||
if self:GetStateOption("possess") then
|
||||
self:AddButtonStates(11)
|
||||
table_insert(statedriver, "[bonusbar:5]11")
|
||||
end
|
||||
@@ -261,7 +284,7 @@ function ActionBar:UpdateStates()
|
||||
end
|
||||
|
||||
-- second priority the manual changes using the actionbar options
|
||||
if self.id == "1" then
|
||||
if self:GetStateOption("actionbar") then
|
||||
for i=2,6 do
|
||||
table_insert(statedriver, fmt("[actionbar:%s]%s", i, i))
|
||||
end
|
||||
|
||||
@@ -12,6 +12,8 @@ local abdefaults = {
|
||||
showgrid = false,
|
||||
states = {
|
||||
enabled = false,
|
||||
possess = false,
|
||||
actionbar = false,
|
||||
default = 0,
|
||||
ctrl = 0,
|
||||
alt = 0,
|
||||
@@ -26,6 +28,8 @@ local abdefaults = {
|
||||
[1] = {
|
||||
states = {
|
||||
enabled = true,
|
||||
possess = true,
|
||||
actionbar = true,
|
||||
stance = {
|
||||
DRUID = { bear = 9, cat = 7, prowl = 8 },
|
||||
WARRIOR = { battle = 7, def = 8, berserker = 9 },
|
||||
|
||||
@@ -204,7 +204,13 @@ function Bar:GetOptionObject()
|
||||
cmdInline = true,
|
||||
name = "Alignment",
|
||||
order = 10,
|
||||
args = {},
|
||||
args = {
|
||||
info = {
|
||||
order = 1,
|
||||
type = "description",
|
||||
name = "The Alignment menu is still on the TODO.\n\nAs a quick preview of whats planned:\n\n\t- Absolute and relative Bar Positioning\n\t- Bars \"snapping\" together and building clusters",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
return Bartender4:NewOptionObject(otbl)
|
||||
|
||||
Reference in New Issue
Block a user