# HG changeset patch # User Flick # Date 1207241956 0 # Node ID 821b2b7edff111df84c9b8448cb863525938f38b # Parent 27dde2743f43b83b06b89caffc08405b488f9d73 Removed FuBar_ReActionFu diff -r 27dde2743f43 -r 821b2b7edff1 modules/FuBar_ReActionFu/FuBar_ReActionFu.lua --- a/modules/FuBar_ReActionFu/FuBar_ReActionFu.lua Wed Apr 02 23:44:06 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ ---[[ - FuBar plugin module for ReAction - ---]] - --- local imports -local ReAction = ReAction - --- module declaration -local moduleID = "ReActionFu" -local module = ReAction:NewModule( moduleID, - "FuBarPlugin-3.0" -) - -local fubarOptions = { - iconPath = "Interface\\Icons\\INV_Qiraj_JewelEncased", - hasNoColor = true, - tooltipType = "Tablet-2.0", - configType = "Dewdrop-2.0", - hasNoText = true, - defaultPosition = "LEFT", - defaultMinimapPosition = 240, -- degrees - clickableTooltip = false, - independentProfile = true - cannotDetachTooltip = true - hideMenuTitle = true -} - -function module:OnInitialize() - self.db = ReAction.db:RegisterNamespace(moduleID, - { - profile = { - requireFuBar = false - } - } - ) - self.db.RegisterCallback(self,"OnProfileChanged") - - if self.db.profile.requireFuBar == true then - self:Hide() - end - - self.OnMenuRequest = { - type = "group", - handler = ReAction, - args = { - -- include profile management by default - profile = LibStub("AceDBOptions-3.0"):GetOptionsTable(ReAction.db) - } - } - - -- insert each module's registered global opts into the table top level - local opts = self.OnMenuRequest - for m, tbl in pairs(ReAction:GetOptions("global")) do - if tbl.args then - for k, v in pairs(tbl.args) do - opts.args[k] = v - end - end - end - - -- listen for new module adds - ReAction.RegisterCallback(self, "OnOptionsRegistered") - - -- configure FuBarPlugin - for k, v in pairs(fubarOptions) do - self:SetFuBarOption(k,v) - end -end - -function module:OnProfileChanged() - if self.db.profile.requireFuBar == true then - module:Hide() - else - self:Show() - end -end - -function module:OnOptionsRegistered( evtName, context, module, opts ) - if context == "global" then - if opts.args then - for k, v in pairs(tbl.args) do - opts.args[k] = v - end - end - end -end - -function module:OnFuBarClick(button) - -- TODO: - -- alt, shift, ctrl clicks -end - -function module:OnUpdateFuBarTooltip() - -- TODO: - -- display status of config mode, keybind mode, etc -end - diff -r 27dde2743f43 -r 821b2b7edff1 modules/FuBar_ReActionFu/FuBar_ReActionFu.toc --- a/modules/FuBar_ReActionFu/FuBar_ReActionFu.toc Wed Apr 02 23:44:06 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -## Interface: 20300 -## Title: FuBar - |cffffffffReAction|r|cff00ff00Fu|r -## Notes: FuBar plugin for ReAction -## DefaultState: enabled -## LoadOnDemand: 1 -## Author: Flick -## Version: 1.0 -## X-Category: Action Bars -## X-Embeds: FuBarPlugin-2.0, Tablet-2.0 -## Dependencies: ReAction - -FuBar_ReActionFu.xml diff -r 27dde2743f43 -r 821b2b7edff1 modules/FuBar_ReActionFu/FuBar_ReActionFu.xml --- a/modules/FuBar_ReActionFu/FuBar_ReActionFu.xml Wed Apr 02 23:44:06 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - -