Mercurial > wow > reaction
comparison modules/HideBlizzard.lua @ 182:55c2fc0c8d55
Collect options in one file
clean up ReAction.lua a bit
remove AceConsole-3.0
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Thu, 21 Oct 2010 22:07:11 +0000 |
| parents | df68b5a40490 |
| children |
comparison
equal
deleted
inserted
replaced
| 181:c8777ae7d460 | 182:55c2fc0c8d55 |
|---|---|
| 34 | 34 |
| 35 -- It's fairly normal to use the Blizzard vehicle bar, and to have | 35 -- It's fairly normal to use the Blizzard vehicle bar, and to have |
| 36 -- your regular buttons in the same location. If you do this, and don't | 36 -- your regular buttons in the same location. If you do this, and don't |
| 37 -- bother to hide your buttons, they'll obscure some parts of the vehicle bar. | 37 -- bother to hide your buttons, they'll obscure some parts of the vehicle bar. |
| 38 VehicleMenuBar:SetFrameLevel(VehicleMenuBar:GetFrameLevel()+3) | 38 VehicleMenuBar:SetFrameLevel(VehicleMenuBar:GetFrameLevel()+3) |
| 39 | |
| 40 ReAction:RegisterOptions(self, { | |
| 41 hide = { | |
| 42 name = L["Hide Blizzard Action Bars"], | |
| 43 desc = L["Hide the default main bar and extra action bars"], | |
| 44 type = "toggle", | |
| 45 order = 10, | |
| 46 width = "double", | |
| 47 handler = self, | |
| 48 get = "IsHidden", | |
| 49 set = "SetHidden", | |
| 50 disabled = "OptionDisabled", | |
| 51 }, | |
| 52 hideVehicle = { | |
| 53 name = L["Hide Blizzard Vehicle Bar"], | |
| 54 desc = L["Hide the default vechicle action bar"], | |
| 55 type = "toggle", | |
| 56 order = 11, | |
| 57 width = "double", | |
| 58 handler = self, | |
| 59 get = "IsHidden", | |
| 60 set = "SetHidden", | |
| 61 disabled = "OptionDisabled", | |
| 62 }, | |
| 63 }, true) -- global | |
| 64 | 39 |
| 65 end | 40 end |
| 66 | 41 |
| 67 function module:OnEnable() | 42 function module:OnEnable() |
| 68 self:UpdateFrames() | 43 self:UpdateFrames() |
| 133 | 108 |
| 134 -- reroute blizzard action bar config to ReAction config window | 109 -- reroute blizzard action bar config to ReAction config window |
| 135 InterfaceOptionsActionBarsPanel:HookScript("OnShow", | 110 InterfaceOptionsActionBarsPanel:HookScript("OnShow", |
| 136 function() | 111 function() |
| 137 if module:IsEnabled() and module:IsHidden() then | 112 if module:IsEnabled() and module:IsHidden() then |
| 138 ReAction:ShowConfig() | 113 ReAction:ShowOptions() |
| 139 end | 114 end |
| 140 end ) | 115 end ) |
