Commit 7ece5c45 authored by Tukz's avatar Tukz
Browse files

Enhance moveui, each elements is now anchored to UIParent by default.

parent a8949bc3
......@@ -135,7 +135,7 @@ function TukuiActionBars:AddPanels()
-- Bar #2
local A2 = CreateFrame("Frame", "TukuiActionBar2", UIParent, "SecureHandlerStateTemplate")
A2:Point("BOTTOMRIGHT", A1, "BOTTOMLEFT", -6, 0)
A2:Point("BOTTOM", UIParent, "BOTTOM", -290, 12)
A2:SetFrameStrata("LOW")
A2:SetFrameLevel(10)
A2.Backdrop = CreateFrame("Frame", nil, A2)
......@@ -144,7 +144,7 @@ function TukuiActionBars:AddPanels()
-- Bar #3
local A3 = CreateFrame("Frame", "TukuiActionBar3", UIParent, "SecureHandlerStateTemplate")
A3:Point("BOTTOMLEFT", A1, "BOTTOMRIGHT", 6, 0)
A3:Point("BOTTOM", UIParent, "BOTTOM", 290, 12)
A3:SetFrameStrata("LOW")
A3:SetFrameLevel(10)
A3.Backdrop = CreateFrame("Frame", nil, A3)
......@@ -153,7 +153,7 @@ function TukuiActionBars:AddPanels()
-- Bar #4
local A4 = CreateFrame("Frame", "TukuiActionBar4", UIParent, "SecureHandlerStateTemplate")
A4:Point("BOTTOM", A1, "BOTTOM", 0, 0)
A4:Point("BOTTOM", UIParent, "BOTTOM", 0, 12)
A4:SetFrameStrata("LOW")
A4:SetFrameLevel(10)
A4.Backdrop = CreateFrame("Frame", nil, A4)
......@@ -171,7 +171,7 @@ function TukuiActionBars:AddPanels()
-- Pet Bar
local A6 = CreateFrame("Frame", "TukuiPetActionBar", UIParent, "SecureHandlerStateTemplate")
A6:SetPoint("RIGHT", A5, "LEFT", -6, 0)
A6:SetPoint("RIGHT", UIParent, "LEFT", -6, 0)
A6:SetFrameStrata("LOW")
A6:SetFrameLevel(10)
A6.Backdrop = CreateFrame("Frame", nil, A6)
......@@ -184,7 +184,7 @@ function TukuiActionBars:AddPanels()
-- Stance Bar
local A7 = CreateFrame("Frame", "TukuiStanceBar", UIParent, "SecureHandlerStateTemplate")
A7:SetSize((PetSize * 10) + (Spacing * 11), PetSize + (Spacing * 2))
A7:SetPoint("BOTTOMLEFT", T.Panels.LeftChatBG, "TOPLEFT", -1, 17)
A7:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 28, 214)
A7:SetFrameStrata("LOW")
A7:SetFrameLevel(10)
A7.Backdrop = CreateFrame("Frame", nil, A7)
......
......@@ -55,7 +55,7 @@ function TukuiAuras:CreateHeaders()
local Debuffs = Headers[2]
if (not C.Auras.HideBuffs) then
Buffs:SetPoint("TOPRIGHT", Minimap, "TOPLEFT", -30, 2)
Buffs:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -200, -27)
Buffs:SetAttribute("filter", "HELPFUL")
Buffs:SetAttribute("includeWeapons", 1)
Buffs:Show()
......
......@@ -880,8 +880,8 @@ function Bags:Enable()
local DataTextLeft = T["Panels"].DataTextLeft
local DataTextRight = T["Panels"].DataTextRight
self:CreateContainer("Bag", "BOTTOMRIGHT", DataTextRight, "TOPRIGHT", 0, 6)
self:CreateContainer("Bank", "BOTTOMLEFT", DataTextLeft, "TOPLEFT", 0, 6)
self:CreateContainer("Bag", "BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -34, 50)
self:CreateContainer("Bank", "BOTTOMLEFT", UIParent, "BOTTOMLEFT", 34, 50)
self:HideBlizzard()
Bag:SetScript("OnHide", function()
......
......@@ -46,7 +46,7 @@ function Tooltip:CreateAnchor()
Anchor:SetFrameStrata("TOOLTIP")
Anchor:SetFrameLevel(20)
Anchor:SetClampedToScreen(true)
Anchor:SetPoint("BOTTOMRIGHT", RightChat, "TOPRIGHT", 0, -13)
Anchor:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -28, 186)
Anchor:SetMovable(true)
self.Anchor = Anchor
......
......@@ -715,23 +715,23 @@ function TukuiUnitFrames:CreateUnits()
if C.UnitFrames.Enable then
local Player = oUF:Spawn("player", "TukuiPlayerFrame")
Player:SetPoint("BOTTOMLEFT", TukuiUnitFrames.Anchor, "TOPLEFT", 0, 8)
Player:SetPoint("BOTTOM", UIParent, "BOTTOM", -260, 86)
Player:SetParent(UIParent)
Player:Size(250, 57)
local Target = oUF:Spawn("target", "TukuiTargetFrame")
Target:SetPoint("BOTTOMRIGHT", TukuiUnitFrames.Anchor, "TOPRIGHT", 0, 8)
Target:SetPoint("BOTTOM", UIParent, "BOTTOM", 260, 86)
Target:SetParent(UIParent)
Target:Size(250, 57)
local TargetOfTarget = oUF:Spawn("targettarget", "TukuiTargetTargetFrame")
TargetOfTarget:SetPoint("BOTTOM", TukuiUnitFrames.Anchor, "TOP", 0, 8)
TargetOfTarget:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 86)
TargetOfTarget:SetParent(UIParent)
TargetOfTarget:Size(129, 36)
local Pet = oUF:Spawn("pet", "TukuiPetFrame")
Pet:SetParent(UIParent)
Pet:SetPoint("BOTTOM", TukuiUnitFrames.Anchor, "TOP", 0, 70)
Pet:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 148)
Pet:Size(129, 36)
self.Units.Player = Player
......
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