Commit 9f9c053c authored by Merathilis's avatar Merathilis

Completely redesigned the Minimap Buttons. People with a lot Buttons will now...

Completely redesigned the Minimap Buttons. People with a lot Buttons will now hate me. Credits: siweia - NDui
parent 4357b579
......@@ -385,10 +385,6 @@ L["Blinking Minimap"] = "Blinkende Minikarte"
L["Enable the blinking animation for new mail or pending invites."] = "Aktiviert die blinkende Animation für Neue Post oder austehende Kalendereinladungen."
-- SMB
L["Bar Backdrop"] = "Leisten Hintergrund"
L["Move Tracker Icon"] = "Verschiebe Aufspührsymbol"
L["Move Queue Status Icon"] = "Verschiebe LFG Symbol"
L["Reverse Direction"] = "Umgekehrte Reihenfolge"
-- Raid Marks
L["Raid Markers"] = "Schlachtzugs-Markierungen"
......
......@@ -389,10 +389,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
-- Raid Marks
L["Raid Markers"] = true
......
......@@ -387,10 +387,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
-- Raid Marks
L["Raid Markers"] = true
......
......@@ -387,10 +387,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
-- Raid Marks
L["Raid Markers"] = true
......
......@@ -383,10 +383,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
--Raid Marks
L["Raid Markers"] = true
......
......@@ -385,10 +385,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
-- Raid Marks
L["Raid Markers"] = true
......
......@@ -385,10 +385,6 @@ L["Blinking Minimap"] = "小地图边框闪亮"
L["Enable the blinking animation for new mail or pending invites."] = "为新邮件或等待的邀请启用闪光动画."
-- SMB
L["Bar Backdrop"] = "条背景"
L["Move Tracker Icon"] = "移动追踪图标"
L["Move Queue Status Icon"] = "移动队列状态图标"
L["Reverse Direction"] = true
-- Raid Marks
L["Raid Markers"] = "团队标记"
......
......@@ -385,10 +385,6 @@ L["Blinking Minimap"] = true
L["Enable the blinking animation for new mail or pending invites."] = true
-- SMB
L["Bar Backdrop"] = true
L["Move Tracker Icon"] = true
L["Move Queue Status Icon"] = true
L["Reverse Direction"] = true
--Raid Marks
L["Raid Markers"] = true
......
......@@ -67,21 +67,21 @@ local function Minimap()
["RIGHT"] = L["Right"],
["CENTER"] = L["Center"],
},
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
},
xOffset = {
order = 6,
type = "range",
name = L["X-Offset"],
min = -50, max = 50, step = 1,
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
},
yOffset = {
order = 7,
type = "range",
name = L["Y-Offset"],
min = -50, max = 50, step = 1,
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
disabled = function() return not E.db.mui.maps.minimap.ping.enable end,
},
},
},
......@@ -109,7 +109,7 @@ local function Minimap()
["RIGHT"] = L["Right"],
["CENTER"] = L["Center"],
},
disabled = function() return not E.db.mui.maps.minimap.coords.enable end,
disabled = function() return not E.db.mui.maps.minimap.coords.enable end,
},
},
},
......@@ -119,7 +119,7 @@ local function Minimap()
name = MER:cOption(L["Minimap Buttons"]),
guiInline = true,
get = function(info) return E.db.mui.smb[ info[#info] ] end,
set = function(info, value) E.db.mui.smb[ info[#info] ] = value; SMB:Update(); end,
set = function(info, value) E.db.mui.smb[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL"); end,
disabled = function() return (COMP.PA and _G.ProjectAzilroka.db.SMB == true or COMP.SLE and E.private.sle.minimap.mapicons.enable) end,
args = {
credits = {
......@@ -132,7 +132,7 @@ local function Minimap()
order = 1,
type = "description",
fontSize = "medium",
name = format("|cFF16C3F2Project|r|cFFFFFFFFAzilroka|r"),
name = format("|cff0080ffNDui|r - siweia"),
},
},
},
......@@ -143,71 +143,38 @@ local function Minimap()
get = function(info) return E.db.mui.smb.enable end,
set = function(info, value) E.db.mui.smb.enable = value; E:StaticPopup_Show("PRIVATE_RL"); end,
},
barMouseOver = {
order = 3,
type = "toggle",
name = L["Mouseover"],
disabled = function() return not E.db.mui.smb.enable end,
},
backdrop = {
order = 4,
type = "toggle",
name = L["Bar Backdrop"],
disabled = function() return not E.db.mui.smb.enable end,
},
hideInCombat = {
order = 5,
type = "toggle",
name = L["Hide In Combat"],
position = {
order = 2,
type = "select",
name = L["Position"],
values = {
["BOTTOMLEFT"] = L["Bottom Left"],
["BOTTOMRIGHT"] = L["Bottom Right"],
["TOPLEFT"] = L["Top Left"],
["TOPRIGHT"] = L["Top Right"],
},
disabled = function() return not E.db.mui.smb.enable end,
set = function(info, value) E.db.mui.smb.hideInCombat = value; E:StaticPopup_Show("PRIVATE_RL"); end,
},
iconSize = {
order = 6,
size = {
order = 2,
type = "range",
name = L["Icon Size"],
min = 12, max = 48, step = 1,
min = 20, max = 36, step = 1,
disabled = function() return not E.db.mui.smb.enable end,
},
buttonSpacing = {
order = 7,
xOffset = {
order = 6,
type = "range",
name = L["Button Spacing"],
min = 0, max = 10, step = 1,
name = L["X-Offset"],
min = -20, max = 20, step = 1,
disabled = function() return not E.db.mui.smb.enable end,
},
buttonsPerRow = {
order = 8,
yOffset = {
order = 7,
type = "range",
name = L["Buttons Per Row"],
min = 1, max = 100, step = 1,
disabled = function() return not E.db.mui.smb.enable end,
},
reverseDirection = {
order = 9,
type = "toggle",
name = L["Reverse Direction"],
disabled = function() return not E.db.mui.smb.enable end,
},
blizzard = {
order = 10,
type = "group",
name = L["Blizzard"],
guiInline = true,
set = function(info, value) E.db.mui.smb[ info[#info] ] = value SMB:Update() SMB:HandleBlizzardButtons() end,
name = L["Y-Offset"],
min = -20, max = 20, step = 1,
disabled = function() return not E.db.mui.smb.enable end,
args = {
moveTracker = {
order = 1,
type = "toggle",
name = L["Move Tracker Icon"],
},
moveQueue = {
order = 2,
type = "toggle",
name = L["Move Queue Status Icon"],
},
},
},
},
},
......
......@@ -370,15 +370,10 @@ MP.media = {
MP.smb = {
enable = true,
barMouseOver = true,
backdrop = true,
hideInCombat = false,
iconSize = 22,
buttonsPerRow = 6,
buttonSpacing = 2,
moveTracker = false,
moveQueue = false,
reverseDirection = false,
position = "BOTTOMLEFT",
xOffset = -10,
yOffset = -10,
size = 34,
}
MP.locPanel = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment