diff modules/ReAction_State/ReAction_State.lua @ 25:bf997ea151ca

yet another attempt to add missing files
author Flick <flickerstreak@gmail.com>
date Fri, 07 Mar 2008 22:19:03 +0000
parents
children f1e838841ce1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/ReAction_State/ReAction_State.lua	Fri Mar 07 22:19:03 2008 +0000
@@ -0,0 +1,106 @@
+--[[
+  ReAction bar state machine
+
+--]]
+
+-- local imports
+local ReAction = ReAction
+local L = ReAction.L
+local _G = _G
+local InCombatLockdown = InCombatLockdown
+
+-- module declaration
+local moduleID = "State"
+local module = ReAction:NewModule( moduleID )
+
+-- module methods
+function module:OnInitialize()
+  self.db = ReAction:AcquireDBNamespace(moduleID)
+  ReAction:RegisterDefaults(moduleID,"profile", 
+    {
+
+    }
+  )
+end
+
+function module:OnEnable()
+
+end
+
+function module:OnDisable()
+
+end
+
+function module:OnProfileEnable()
+
+end
+
+function module:OnProfileDisable()
+
+end
+
+function module:GetGlobalOptions( configModule )
+
+end
+
+function module:GetGlobalBarOptions( configModule )
+
+end
+
+function module:GetModuleOptions( configModule )
+
+end
+
+function module:GetBarConfigOptions( bar, configModule )
+  if not bar.modConfigOpts[moduleID] then
+    local IsEnabled = function() 
+      return false
+    end
+
+    bar.modConfigOpts[moduleID] = {
+      state = {
+        type = "group",
+        name = L["Dynamic Behavior"],
+        desc = L["Dynamic Behavior"],
+        args = {
+          enable = {
+            type = "toggle",
+            name = L["Enable dynamic behavior"],
+            desc = L["Toggles dynamic behavior for this bar"],
+            get  = function() return false end,
+            set  = function(x) end,
+            disabled = InCombatLockdown,
+            order = 1
+          },
+
+          default = {
+            type = "text",
+            name = L["Default State"],
+            desc = L["State when no conditions apply"],
+            get  = function() return false end,
+            set  = function(x) end,
+            disabled = IsEnabled,
+            order = 2
+          },
+
+          stealth = {
+            type = "text",
+            name = L["Behavior when Stealthed"],
+            desc = L["Change bar state when stealthed"],
+            get  = function() return false end,
+            set  = function(x) end,
+            disabled = IsEnabled,
+            validate = { },
+          },
+
+        }
+      }
+    }
+  end
+  return bar.modConfigOpts[moduleID]
+end
+
+function module:GetBarMenuOptions( bar, configModule )
+
+end
+