From 39f941fdc88fd940cb3c8ae96a3068da6af68f8a Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 3 May 2008 11:33:27 +0000 Subject: [PATCH] Bartender4: - added settings to toggle possess bar and actionbar-based switching (like pressing SHIFT-2 or SHIFT-MouseWheel to change bars) - added TODO.txt --- ActionBarStates.lua | 27 +++++++++++++++++++++++++-- ActionBars.lua | 4 ++++ Bar.lua | 8 +++++++- TODO.txt | 8 ++++++++ 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 TODO.txt diff --git a/ActionBarStates.lua b/ActionBarStates.lua index aefda03..69bb5a5 100644 --- a/ActionBarStates.lua +++ b/ActionBarStates.lua @@ -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 diff --git a/ActionBars.lua b/ActionBars.lua index 62df82e..b5dcc11 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -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 }, diff --git a/Bar.lua b/Bar.lua index 340856b..579206d 100644 --- a/Bar.lua +++ b/Bar.lua @@ -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) diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..5811bf0 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,8 @@ +Bartender4 TODO List + +- Config Settings for self-cast behaviour +- Right-click self-cast +- Bag Bar +- XP/Reputation Bar +- Alignment Menu +- Localization \ No newline at end of file