Added a Vertical MicroMenu option

The MicroMenu can once again be vertical again, however it does not have a full-blown Rows configuration like the actionbars do, due to some issues with the non-square micromenu buttons.
As a result of that, padding between the buttons is currently not available either.
Its planned to make the MicroMenu use the default ButtonBar template too in the future.
This commit is contained in:
Hendrik Leppkes
2008-10-09 00:40:03 +02:00
parent 6d91f0f80f
commit f99404c5a6
11 changed files with 36 additions and 1 deletions
+10
View File
@@ -19,6 +19,16 @@ function MicroMenuMod:SetupOptions()
}
self.optionobject:AddElement("general", "enabled", enabled)
local vertical = {
type = "toggle",
order = 150,
name = L["Vertical MicroMenu"],
desc = L["Show the MicroMenu vertically."],
get = function() return self.db.profile.vertical end,
set = function(info, state) self.db.profile.vertical = state; self.bar:PerformLayout() end,
}
self.optionobject:AddElement("general", "vertical", vertical)
self.disabledoptions = {
general = {
type = "group",