From ed166ea72020ff07e6cda82a340ba9efd89cb07a Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Sun, 7 Sep 2014 17:54:22 -0500 Subject: [PATCH] other odds n ends i missed --- Interface/AddOns/SVUI/packages/dock/SVDock.lua | 2 +- Interface/AddOns/SVUI/scripts/mounts.lua | 17 +- Interface/AddOns/SVUI/system/installer.lua | 10 +- .../SVUI_AnsweringService.lua | 7 +- .../SVUI_ConfigOMatic/modules/units/_load.xml | 1 + .../SVUI_ConfigOMatic/modules/units/core.lua | 60 +------ .../SVUI_ConfigOMatic/modules/units/grid.lua | 172 ++++++++++++++++++++ .../SVUI_ConfigOMatic/modules/units/party.lua | 24 --- .../SVUI_ConfigOMatic/modules/units/raid.lua | 28 +--- .../SVUI_ConfigOMatic/modules/units/target.lua | 8 +- .../AddOns/SVUI_StyleOMatic/addons/petbattle.lua | 7 +- .../AddOns/SVUI_StyleOMatic/addons/petjournal.lua | 5 +- 12 files changed, 216 insertions(+), 125 deletions(-) create mode 100644 Interface/AddOns/SVUI_ConfigOMatic/modules/units/grid.lua diff --git a/Interface/AddOns/SVUI/packages/dock/SVDock.lua b/Interface/AddOns/SVUI/packages/dock/SVDock.lua index a54747f..282815b 100644 --- a/Interface/AddOns/SVUI/packages/dock/SVDock.lua +++ b/Interface/AddOns/SVUI/packages/dock/SVDock.lua @@ -559,7 +559,7 @@ function MOD:CreateDockPanels() local bottomanchor = CreateFrame("Frame", "SuperDockBottomDataAnchor", SuperVillain.UIParent) bottomanchor:Size(statBarWidth - 2, buttonsize - 8) bottomanchor:Point("BOTTOM", SuperVillain.UIParent, "BOTTOM", 0, 2) - SuperVillain:AddToDisplayAudit(bottomanchor) + --SuperVillain:AddToDisplayAudit(bottomanchor) local bottomleftdata = CreateFrame("Frame", "BottomLeftDataPanel", bottomanchor) bottomleftdata:Size((statBarWidth * 0.5) - 1, buttonsize - 8) diff --git a/Interface/AddOns/SVUI/scripts/mounts.lua b/Interface/AddOns/SVUI/scripts/mounts.lua index 0016565..20945b1 100644 --- a/Interface/AddOns/SVUI/scripts/mounts.lua +++ b/Interface/AddOns/SVUI/scripts/mounts.lua @@ -247,11 +247,14 @@ local function SetMountCheckButtons() ["SPECIAL"] = "" } } - end + end + UpdateMountCache() + local scrollFrame = MountJournal.ListScrollFrame; local scrollBar = _G["MountJournalListScrollFrameScrollBar"] local buttons = scrollFrame.buttons; + for i = 1, #buttons do local button = buttons[i] local barWidth = button:GetWidth() @@ -262,11 +265,9 @@ local function SetMountCheckButtons() local buttonBar = CreateFrame("Frame", barName, button) buttonBar:SetPoint("BOTTOMLEFT", button, "BOTTOMLEFT", 0, 0) buttonBar:SetSize(barWidth, height + 8) - buttonBar:SetFrameStrata("HIGH") - buttonBar:SetFrameLevel(99) --[[ CREATE CHECKBOXES ]]-- - buttonBar["GROUND"] = CreateFrame("CheckButton", nil, buttonBar, "UICheckButtonTemplate") + buttonBar["GROUND"] = CreateFrame("CheckButton", ("%s_GROUND"):format(barName), buttonBar, "UICheckButtonTemplate") buttonBar["GROUND"]:SetSize(width,height) buttonBar["GROUND"]:SetPoint("BOTTOMLEFT", buttonBar, "BOTTOMLEFT", 6, 4) buttonBar["GROUND"]:Formula409() @@ -283,7 +284,7 @@ local function SetMountCheckButtons() buttonBar["GROUND"]:SetScript("OnEnter", CheckButton_OnEnter) buttonBar["GROUND"]:SetScript("OnLeave", CheckButton_OnLeave) - buttonBar["FLYING"] = CreateFrame("CheckButton", nil, buttonBar, "UICheckButtonTemplate") + buttonBar["FLYING"] = CreateFrame("CheckButton", ("%s_FLYING"):format(barName), buttonBar, "UICheckButtonTemplate") buttonBar["FLYING"]:SetSize(width,height) buttonBar["FLYING"]:SetPoint("BOTTOMLEFT", buttonBar["GROUND"], "BOTTOMRIGHT", 2, 0) buttonBar["FLYING"]:Formula409() @@ -300,7 +301,7 @@ local function SetMountCheckButtons() buttonBar["FLYING"]:SetScript("OnEnter", CheckButton_OnEnter) buttonBar["FLYING"]:SetScript("OnLeave", CheckButton_OnLeave) - buttonBar["SWIMMING"] = CreateFrame("CheckButton", nil, buttonBar, "UICheckButtonTemplate") + buttonBar["SWIMMING"] = CreateFrame("CheckButton", ("%s_SWIMMING"):format(barName), buttonBar, "UICheckButtonTemplate") buttonBar["SWIMMING"]:SetSize(width,height) buttonBar["SWIMMING"]:SetPoint("BOTTOMLEFT", buttonBar["FLYING"], "BOTTOMRIGHT", 2, 0) buttonBar["SWIMMING"]:Formula409() @@ -317,7 +318,7 @@ local function SetMountCheckButtons() buttonBar["SWIMMING"]:SetScript("OnEnter", CheckButton_OnEnter) buttonBar["SWIMMING"]:SetScript("OnLeave", CheckButton_OnLeave) - buttonBar["SPECIAL"] = CreateFrame("CheckButton", nil, buttonBar, "UICheckButtonTemplate") + buttonBar["SPECIAL"] = CreateFrame("CheckButton", ("%s_SPECIAL"):format(barName), buttonBar, "UICheckButtonTemplate") buttonBar["SPECIAL"]:SetSize(width,height) buttonBar["SPECIAL"]:SetPoint("BOTTOMLEFT", buttonBar["SWIMMING"], "BOTTOMRIGHT", 2, 0) buttonBar["SPECIAL"]:Formula409() @@ -383,7 +384,7 @@ function SVUILetsRide() if(IsSwimming() and IbelieveIcantFly and not letsSeahorse) then letsSwim = true end - if(IsControlKeyDown() or IsShiftKeyDown()) then + if(IsModifierKeyDown()) then if(checkList["SPECIAL"]) then CallCompanion("MOUNT", checkList["SPECIAL"]) return diff --git a/Interface/AddOns/SVUI/system/installer.lua b/Interface/AddOns/SVUI/system/installer.lua index 360e907..f505822 100644 --- a/Interface/AddOns/SVUI/system/installer.lua +++ b/Interface/AddOns/SVUI/system/installer.lua @@ -79,7 +79,7 @@ local function forceCVars() end local function ShowLayout(show40) - if(show40 and _G["SVUI_Raid40"].forceShow == true) then return end + if(not _G["SVUI_Raid40"] or (show40 and _G["SVUI_Raid40"].forceShow == true)) then return end if(not show40 and _G["SVUI_Raid40"].forceShow ~= true) then return end SuperVillain.SVUnit:UpdateGroupConfig(_G["SVUI_Raid40"], show40) end @@ -112,8 +112,8 @@ local function UFMoveBottomQuadrant(toggle) SuperVillain.db.framelocations.SVUI_PlayerCastbar_MOVE = "BOTTOMSVUIParentBOTTOM-278122" SuperVillain.db.framelocations.SVUI_Target_MOVE = "BOTTOMSVUIParentBOTTOM278182" SuperVillain.db.framelocations.SVUI_TargetCastbar_MOVE = "BOTTOMSVUIParentBOTTOM278122" - SuperVillain.db.framelocations.SVUI_Pet_MOVE = "BOTTOMSVUIParentBOTTOM0182" - SuperVillain.db.framelocations.SVUI_TargetTarget_MOVE = "BOTTOMSVUIParentBOTTOM0225" + SuperVillain.db.framelocations.SVUI_Pet_MOVE = "BOTTOMSVUIParentBOTTOM0181" + SuperVillain.db.framelocations.SVUI_TargetTarget_MOVE = "BOTTOMSVUIParentBOTTOM0214" SuperVillain.db.framelocations.SVUI_Focus_MOVE = "BOTTOMSVUIParentBOTTOM310432" SuperVillain.db.framelocations.SVUI_ThreatBar_MOVE = "BOTTOMRIGHTSVUIParentBOTTOMRIGHT-495182" elseif toggle == "shift" then @@ -121,8 +121,8 @@ local function UFMoveBottomQuadrant(toggle) SuperVillain.db.framelocations.SVUI_PlayerCastbar_MOVE = "BOTTOMSVUIParentBOTTOM-278150" SuperVillain.db.framelocations.SVUI_Target_MOVE = "BOTTOMSVUIParentBOTTOM278210" SuperVillain.db.framelocations.SVUI_TargetCastbar_MOVE = "BOTTOMSVUIParentBOTTOM278150" - SuperVillain.db.framelocations.SVUI_Pet_MOVE = "BOTTOMSVUIParentBOTTOM0210" - SuperVillain.db.framelocations.SVUI_TargetTarget_MOVE = "BOTTOMSVUIParentBOTTOM0253" + SuperVillain.db.framelocations.SVUI_Pet_MOVE = "BOTTOMSVUIParentBOTTOM0209" + SuperVillain.db.framelocations.SVUI_TargetTarget_MOVE = "BOTTOMSVUIParentBOTTOM0242" SuperVillain.db.framelocations.SVUI_Focus_MOVE = "BOTTOMSVUIParentBOTTOM310432" SuperVillain.db.framelocations.SVUI_ThreatBar_MOVE = "BOTTOMRIGHTSVUIParentBOTTOMRIGHT-495210" else diff --git a/Interface/AddOns/SVUI_AnsweringService/SVUI_AnsweringService.lua b/Interface/AddOns/SVUI_AnsweringService/SVUI_AnsweringService.lua index 6170d1c..48a2531 100644 --- a/Interface/AddOns/SVUI_AnsweringService/SVUI_AnsweringService.lua +++ b/Interface/AddOns/SVUI_AnsweringService/SVUI_AnsweringService.lua @@ -815,13 +815,13 @@ function PLUGIN:PhoneTimeUpdate() end end -function PLUGIN:CHAT_MSG_IGNORED(inbound_message, caller, ...) +function PLUGIN:CHAT_MSG_IGNORED(event, inbound_message, caller, ...) if(PhoneLines[caller] and PhoneLines[caller].InUse) then self:HangUp(caller,true) end end -function PLUGIN:CHAT_MSG_WHISPER(inbound_message, caller) +function PLUGIN:CHAT_MSG_WHISPER(event, inbound_message, caller) if not UnitIsAFK("player") and not UnitIsDND("player") then if (not PhoneLines[caller]) then self:AddCaller(caller) @@ -830,7 +830,8 @@ function PLUGIN:CHAT_MSG_WHISPER(inbound_message, caller) end end -function PLUGIN:CHAT_MSG_BN_WHISPER(inbound_message, sender, _, _, _, _, _, _, _, _, _, _, presenceID) +function PLUGIN:CHAT_MSG_BN_WHISPER(event, inbound_message, sender, _, _, _, _, _, _, _, _, _, _, presenceID) + if(not presenceID) then return end if not UnitIsAFK("player") and not UnitIsDND("player") then local _, bnToon = BNGetToonInfo(presenceID); local caller = bnToon or sender; diff --git a/Interface/AddOns/SVUI_ConfigOMatic/modules/units/_load.xml b/Interface/AddOns/SVUI_ConfigOMatic/modules/units/_load.xml index 6c99aea..e835fb5 100644 --- a/Interface/AddOns/SVUI_ConfigOMatic/modules/units/_load.xml +++ b/Interface/AddOns/SVUI_ConfigOMatic/modules/units/_load.xml @@ -7,4 +7,5 @@