Shuffle around the config a little for fun
This commit is contained in:
@@ -313,7 +313,7 @@ StaticGridFrame = {
|
|||||||
|
|
||||||
local configFrame = StaticGridFrame.new("HeimdallConfig",
|
local configFrame = StaticGridFrame.new("HeimdallConfig",
|
||||||
UIParent,
|
UIParent,
|
||||||
40, 12,
|
80, 12,
|
||||||
{ w = 1024 + 512, h = 1024 })
|
{ w = 1024 + 512, h = 1024 })
|
||||||
configFrame:MakeMovable()
|
configFrame:MakeMovable()
|
||||||
configFrame.frame:SetScript("OnKeyUp", function(self, key)
|
configFrame.frame:SetScript("OnKeyUp", function(self, key)
|
||||||
@@ -516,7 +516,7 @@ function shared.Config.Init()
|
|||||||
|
|
||||||
local title = configFrame.frame:CreateFontString(nil, "ARTWORK", "GameFontNormal")
|
local title = configFrame.frame:CreateFontString(nil, "ARTWORK", "GameFontNormal")
|
||||||
title:SetText("Heimdall Config")
|
title:SetText("Heimdall Config")
|
||||||
configFrame:Add(title, 1, 12)
|
configFrame:Add(title, 2, 12)
|
||||||
|
|
||||||
-- Spotter
|
-- Spotter
|
||||||
do
|
do
|
||||||
@@ -524,7 +524,7 @@ function shared.Config.Init()
|
|||||||
local spotterConfigFrame = GridFrame.new("HeimdallSpotterConfig",
|
local spotterConfigFrame = GridFrame.new("HeimdallSpotterConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
spotterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
spotterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(spotterConfigFrame, 5, 3)
|
configFrame:Add(spotterConfigFrame, 9, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallSpotterConfigTitle", spotterConfigFrame.frame, "Spotter", { r, g, b, a })
|
local title = CreateFancyText("HeimdallSpotterConfigTitle", spotterConfigFrame.frame, "Spotter", { r, g, b, a })
|
||||||
spotterConfigFrame:Add(title, 1, 8)
|
spotterConfigFrame:Add(title, 1, 8)
|
||||||
@@ -627,7 +627,7 @@ function shared.Config.Init()
|
|||||||
local whoerConfigFrame = GridFrame.new("HeimdallWhoerConfig",
|
local whoerConfigFrame = GridFrame.new("HeimdallWhoerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
whoerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
whoerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(whoerConfigFrame, 9, 3)
|
configFrame:Add(whoerConfigFrame, 16, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallWhoerConfigTitle", whoerConfigFrame.frame, "Whoer", { r, g, b, a })
|
local title = CreateFancyText("HeimdallWhoerConfigTitle", whoerConfigFrame.frame, "Whoer", { r, g, b, a })
|
||||||
whoerConfigFrame:Add(title, 1, 8)
|
whoerConfigFrame:Add(title, 1, 8)
|
||||||
@@ -710,7 +710,7 @@ function shared.Config.Init()
|
|||||||
local messengerConfigFrame = GridFrame.new("HeimdallMessengerConfig",
|
local messengerConfigFrame = GridFrame.new("HeimdallMessengerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
messengerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
messengerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(messengerConfigFrame, 3, 3)
|
configFrame:Add(messengerConfigFrame, 6, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallMessengerConfigTitle", messengerConfigFrame.frame, "Messenger",
|
local title = CreateFancyText("HeimdallMessengerConfigTitle", messengerConfigFrame.frame, "Messenger",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -753,7 +753,7 @@ function shared.Config.Init()
|
|||||||
local deathReporterConfigFrame = GridFrame.new("HeimdallDeathReporterConfig",
|
local deathReporterConfigFrame = GridFrame.new("HeimdallDeathReporterConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
deathReporterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
deathReporterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(deathReporterConfigFrame, 6, 3)
|
configFrame:Add(deathReporterConfigFrame, 10, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallDeathReporterConfigTitle", deathReporterConfigFrame.frame,
|
local title = CreateFancyText("HeimdallDeathReporterConfigTitle", deathReporterConfigFrame.frame,
|
||||||
"Death Reporter",
|
"Death Reporter",
|
||||||
@@ -850,7 +850,7 @@ function shared.Config.Init()
|
|||||||
local inviterConfigFrame = GridFrame.new("HeimdallInviterConfig",
|
local inviterConfigFrame = GridFrame.new("HeimdallInviterConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
inviterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
inviterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(inviterConfigFrame, 7, 3)
|
configFrame:Add(inviterConfigFrame, 13, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallInviterConfigTitle", inviterConfigFrame.frame, "Inviter", { r, g, b, a })
|
local title = CreateFancyText("HeimdallInviterConfigTitle", inviterConfigFrame.frame, "Inviter", { r, g, b, a })
|
||||||
inviterConfigFrame:Add(title, 1, 8)
|
inviterConfigFrame:Add(title, 1, 8)
|
||||||
@@ -973,7 +973,7 @@ function shared.Config.Init()
|
|||||||
local duelerConfigFrame = GridFrame.new("HeimdallDuelerConfig",
|
local duelerConfigFrame = GridFrame.new("HeimdallDuelerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
duelerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
duelerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(duelerConfigFrame, 2, 3)
|
configFrame:Add(duelerConfigFrame, 4, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallDuelerConfigTitle", duelerConfigFrame.frame, "Dueler", { r, g, b, a })
|
local title = CreateFancyText("HeimdallDuelerConfigTitle", duelerConfigFrame.frame, "Dueler", { r, g, b, a })
|
||||||
duelerConfigFrame:Add(title, 1, 8)
|
duelerConfigFrame:Add(title, 1, 8)
|
||||||
@@ -1008,7 +1008,7 @@ function shared.Config.Init()
|
|||||||
local agentTrackerConfigFrame = GridFrame.new("HeimdallAgentTrackerConfig",
|
local agentTrackerConfigFrame = GridFrame.new("HeimdallAgentTrackerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
agentTrackerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
agentTrackerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(agentTrackerConfigFrame, 3, 3)
|
configFrame:Add(agentTrackerConfigFrame, 5, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallAgentTrackerConfigTitle", agentTrackerConfigFrame.frame, "Agent Tracker",
|
local title = CreateFancyText("HeimdallAgentTrackerConfigTitle", agentTrackerConfigFrame.frame, "Agent Tracker",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -1052,7 +1052,7 @@ function shared.Config.Init()
|
|||||||
local stinkyTrackerConfigFrame = GridFrame.new("HeimdallStinkyTrackerConfig",
|
local stinkyTrackerConfigFrame = GridFrame.new("HeimdallStinkyTrackerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
stinkyTrackerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
stinkyTrackerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(stinkyTrackerConfigFrame, 3, 3)
|
configFrame:Add(stinkyTrackerConfigFrame, 5, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallStinkyTrackerConfigTitle", stinkyTrackerConfigFrame.frame,
|
local title = CreateFancyText("HeimdallStinkyTrackerConfigTitle", stinkyTrackerConfigFrame.frame,
|
||||||
"Stinky Tracker",
|
"Stinky Tracker",
|
||||||
@@ -1096,7 +1096,7 @@ function shared.Config.Init()
|
|||||||
local emoterConfigFrame = GridFrame.new("HeimdallEmoterConfig",
|
local emoterConfigFrame = GridFrame.new("HeimdallEmoterConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
emoterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
emoterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(emoterConfigFrame, 4, 3)
|
configFrame:Add(emoterConfigFrame, 7, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallEmoterConfigTitle", emoterConfigFrame.frame, "Emoter",
|
local title = CreateFancyText("HeimdallEmoterConfigTitle", emoterConfigFrame.frame, "Emoter",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -1154,7 +1154,7 @@ function shared.Config.Init()
|
|||||||
local echoerConfigFrame = GridFrame.new("HeimdallEchoerConfig",
|
local echoerConfigFrame = GridFrame.new("HeimdallEchoerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
echoerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
echoerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(echoerConfigFrame, 4, 3)
|
configFrame:Add(echoerConfigFrame, 7, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallEchoerConfigTitle", echoerConfigFrame.frame, "Echoer",
|
local title = CreateFancyText("HeimdallEchoerConfigTitle", echoerConfigFrame.frame, "Echoer",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -1212,7 +1212,7 @@ function shared.Config.Init()
|
|||||||
local commanderConfigFrame = GridFrame.new("HeimdallCommanderConfig",
|
local commanderConfigFrame = GridFrame.new("HeimdallCommanderConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
commanderConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
commanderConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(commanderConfigFrame, 6, 3)
|
configFrame:Add(commanderConfigFrame, 10, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallCommanderConfigTitle", commanderConfigFrame.frame, "Commander",
|
local title = CreateFancyText("HeimdallCommanderConfigTitle", commanderConfigFrame.frame, "Commander",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -1279,7 +1279,7 @@ function shared.Config.Init()
|
|||||||
local macroerConfigFrame = GridFrame.new("HeimdallMacroerConfig",
|
local macroerConfigFrame = GridFrame.new("HeimdallMacroerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
macroerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
macroerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(macroerConfigFrame, 4, 3)
|
configFrame:Add(macroerConfigFrame, 6, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallMacroerConfigTitle", macroerConfigFrame.frame, "Macroer",
|
local title = CreateFancyText("HeimdallMacroerConfigTitle", macroerConfigFrame.frame, "Macroer",
|
||||||
{ r, g, b, a })
|
{ r, g, b, a })
|
||||||
@@ -1316,7 +1316,7 @@ function shared.Config.Init()
|
|||||||
local combatAlerterConfigFrame = GridFrame.new("HeimdallCombatAlerterConfig",
|
local combatAlerterConfigFrame = GridFrame.new("HeimdallCombatAlerterConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
combatAlerterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
combatAlerterConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(combatAlerterConfigFrame, 3, 3)
|
configFrame:Add(combatAlerterConfigFrame, 5, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallCombatAlerterConfigTitle", combatAlerterConfigFrame.frame,
|
local title = CreateFancyText("HeimdallCombatAlerterConfigTitle", combatAlerterConfigFrame.frame,
|
||||||
"Combat Alerter",
|
"Combat Alerter",
|
||||||
@@ -1360,7 +1360,7 @@ function shared.Config.Init()
|
|||||||
local minimapTaggerConfigFrame = GridFrame.new("HeimdallMinimapTaggerConfig",
|
local minimapTaggerConfigFrame = GridFrame.new("HeimdallMinimapTaggerConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
minimapTaggerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
minimapTaggerConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(minimapTaggerConfigFrame, 9, 5)
|
configFrame:Add(minimapTaggerConfigFrame, 18, 6)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallMinimapTaggerConfigTitle", minimapTaggerConfigFrame.frame,
|
local title = CreateFancyText("HeimdallMinimapTaggerConfigTitle", minimapTaggerConfigFrame.frame,
|
||||||
"Minimap Tagger",
|
"Minimap Tagger",
|
||||||
@@ -1589,7 +1589,7 @@ function shared.Config.Init()
|
|||||||
local whisperNotifyConfigFrame = GridFrame.new("HeimdallWhisperNotifyConfig",
|
local whisperNotifyConfigFrame = GridFrame.new("HeimdallWhisperNotifyConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
whisperNotifyConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
whisperNotifyConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(whisperNotifyConfigFrame, 9, 3)
|
configFrame:Add(whisperNotifyConfigFrame, 14, 3)
|
||||||
|
|
||||||
local title = CreateFancyText("HeimdallWhisperNotifyConfigTitle", whisperNotifyConfigFrame.frame,
|
local title = CreateFancyText("HeimdallWhisperNotifyConfigTitle", whisperNotifyConfigFrame.frame,
|
||||||
"Whisper Notify",
|
"Whisper Notify",
|
||||||
@@ -1612,7 +1612,7 @@ function shared.Config.Init()
|
|||||||
local stinkiesConfigFrame = GridFrame.new("HeimdallStinkiesConfig",
|
local stinkiesConfigFrame = GridFrame.new("HeimdallStinkiesConfig",
|
||||||
UIParent, 12, 20)
|
UIParent, 12, 20)
|
||||||
stinkiesConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
stinkiesConfigFrame.frame:SetBackdropColor(r, g, b, 0.3)
|
||||||
configFrame:Add(stinkiesConfigFrame, 14, 6)
|
configFrame:Add(stinkiesConfigFrame, 28, 6)
|
||||||
-- Why do 17 rows of content fit into a frame that is 14 rows?
|
-- Why do 17 rows of content fit into a frame that is 14 rows?
|
||||||
-- I don't know, at this point I can't be fucked to fix it, the display is minimally functional
|
-- I don't know, at this point I can't be fucked to fix it, the display is minimally functional
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user