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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user