Compare with Previous | Blame | View Log
-- ___ ___ ___ ___ ___ -- / /\ / /\ / /\ / /\ /__/\ ___ -- / /:/_ / /::\ / /::\ / /::\ \ \:\ / /\ -- / /:/ /\ / /:/\:\ / /:/\:\ / /:/\:\ \ \:\ / /:/ -- / /:/ /::\ / /:/ \:\ / /:/ \:\ / /:/~/:___ \ \:\/__/::\ -- /__/:/ /:/\:/__/:/ \__\:/__/:/ \__\:/__/:/ /:/__/\ \__\:\__\/\:\__ -- \ \:\/:/~/:\ \:\ / /:\ \:\ / /:\ \:\/:/\ \:\ / /:/ \ \:\/\ -- \ \::/ /:/ \ \:\ /:/ \ \:\ /:/ \ \::/ \ \:\ /:/ \__\::/ -- \__\/ /:/ \ \:\/:/ \ \:\/:/ \ \:\ \ \:\/:/ /__/:/ -- /__/:/ \ \::/ \ \::/ \ \:\ \ \::/ \__\/ -- \__\/ \__\/ \__\/ \__\/ \__\/ -- v * e * r * s * i * o * n * 3 ---------------------------------------------------------------------------- -- SoopUI Frame Layouts ---------------------------------------------------------------------------- -- Datatext backgrounds ---------------------------------------------------------------------------- if Soop["general"].centerpanel then local BottomPanel = CreateFrame("Frame", "BottomPanel", UIParent) CreatePanel(BottomPanel, 275, 25, "BOTTOM", 0, -5) CreateShadow(BottomPanel) BottomPanel:SetFrameLevel(0) BottomPanel:SetAlpha(0.75) BottomPanel: SetBackdrop({edgeFile = "Interface\\Addons\\SoopUI\\Media\\Textures\\fer9", edgeSize = 8, insets = { left = 2, right = 2, top = 2, bottom = 2 } }) BottomPanel:RegisterEvent("PLAYER_REGEN_ENABLED") BottomPanel:RegisterEvent("PLAYER_REGEN_DISABLED") BottomPanel:HookScript("OnEvent", function(self, event) if event == "PLAYER_REGEN_ENABLED" then BottomPanel:Show() elseif event == "PLAYER_REGEN_DISABLED" then BottomPanel:Hide() end end) end if Soop["general"].centerpanel then local LeftInfoPanel = CreateFrame("Frame", "DataLeftPanel", UIParent) CreatePanel(LeftInfoPanel, 350, 25, "BOTTOMLEFT", 0, -5) CreateShadow(LeftInfoPanel) LeftInfoPanel:SetFrameLevel(0) LeftInfoPanel: SetBackdrop({edgeFile = "Interface\\Addons\\SoopUI\\Media\\Textures\\fer9", edgeSize = 8, insets = { left = 2, right = 2, top = 2, bottom = 2 } }) LeftInfoPanel:RegisterEvent("PLAYER_REGEN_ENABLED") LeftInfoPanel:RegisterEvent("PLAYER_REGEN_DISABLED") LeftInfoPanel:HookScript("OnEvent", function(self, event) if event == "PLAYER_REGEN_ENABLED" then LeftInfoPanel:Show() elseif event == "PLAYER_REGEN_DISABLED" then LeftInfoPanel:Hide() end end) end ---------------------------------------------------------------------------- -- Minimap ---------------------------------------------------------------------------- Anchorminimaplol = CreateFrame("Frame","Move_minimaplol",UIParent) Anchorminimaplol:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 3, -3) CreateAnchor(Anchorminimaplol, "Move minimap", Soop["minimap"].size+2, Soop["minimap"].size+2) local minimaplol = CreateFrame("Frame", "minimaplol", UIParent) CreatePanel(minimaplol, Soop["minimap"].size+2, Soop["minimap"].size+2, "BOTTOMRIGHT", Anchorminimaplol) CreateShadow(minimaplol) minimaplol:SetFrameLevel(2) minimaplol:RegisterEvent("PLAYER_REGEN_ENABLED") minimaplol:RegisterEvent("PLAYER_REGEN_DISABLED") minimaplol:HookScript("OnEvent", function(self, event) if event == "PLAYER_REGEN_ENABLED" then minimaplol:Show() elseif event == "PLAYER_REGEN_DISABLED" then minimaplol:Hide() end end) -- Later Version -- Anchorchatbgdummy = CreateFrame("Frame","Move_chatbgdummy",UIParent) -- Anchorchatbgdummy:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 3, 3) -- CreateAnchor(Anchorchatbgdummy, "Move Chat", 440, 172) -- local ChatPanel = CreateFrame("Frame", "ChatBackground", UIParent) -- CreatePanel(ChatPanel, 440, 172, "BOTTOMLEFT", Anchorchatbgdummy) -- CreateShadow(ChatPanel)