Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataTextPosition = function(f, t, o)
- local left = TukuiInfoLeft
- local right = TukuiInfoRight
- local mapleft = TukuiMinimapStatsLeft
- local mapright = TukuiMinimapStatsRight
- local center = TukuiInfoCenter
- local centerleft = TukuiInfoCenterLeft
- local centerright = TukuiInfoCenterRight
- if o == 1 then
- t:ClearAllPoints()
- t:SetParent(left)
- t:SetHeight(left:GetHeight())
- t:SetPoint("LEFT", left, 30, 0)
- t:SetPoint('TOP', left)
- t:SetPoint('BOTTOM', left)
- elseif o == 2 then
- t:ClearAllPoints()
- t:SetParent(left)
- t:SetHeight(left:GetHeight())
- t:SetPoint('TOP', left)
- t:SetPoint('BOTTOM', left)
- elseif o == 3 then
- t:ClearAllPoints()
- t:SetParent(left)
- t:SetHeight(left:GetHeight())
- t:SetPoint("RIGHT", left, -30, 0)
- t:SetPoint('TOP', left)
- t:SetPoint('BOTTOM', left)
- elseif o == 4 then
- t:ClearAllPoints()
- t:SetParent(right)
- t:SetHeight(right:GetHeight())
- t:SetPoint("LEFT", right, 30, 0)
- t:SetPoint('TOP', right)
- t:SetPoint('BOTTOM', right)
- elseif o == 5 then
- t:ClearAllPoints()
- t:SetParent(right)
- t:SetHeight(right:GetHeight())
- t:SetPoint('TOP', right)
- t:SetPoint('BOTTOM', right)
- elseif o == 6 then
- t:ClearAllPoints()
- t:SetParent(right)
- t:SetHeight(right:GetHeight())
- t:SetPoint("RIGHT", right, -30, 0)
- t:SetPoint('TOP', right)
- t:SetPoint('BOTTOM', right)
- elseif o == 7 then
- t:ClearAllPoints()
- t:SetParent(mapleft)
- t:SetHeight(mapleft:GetHeight())
- t:SetPoint('TOP', mapleft)
- t:SetPoint('BOTTOM', mapleft)
- elseif o == 8 then
- t:ClearAllPoints()
- t:SetParent(mapright)
- t:SetHeight(mapright:GetHeight())
- t:SetPoint('TOP', mapright)
- t:SetPoint('BOTTOM', mapright)
- elseif o == 9 then
- t:ClearAllPoints()
- t:SetParent(centerleft)
- t:SetHeight(centerleft:GetHeight())
- t:SetPoint('TOP', centerleft)
- t:SetPoint('BOTTOM', centerleft)
- elseif o == 10 then
- t:ClearAllPoints()
- t:SetParent(center)
- t:SetHeight(center:GetHeight())
- t:SetPoint("LEFT", center, 30, 0)
- t:SetPoint('TOP', center)
- t:SetPoint('BOTTOM', center)
- elseif o == 11 then
- t:ClearAllPoints()
- t:SetParent(center)
- t:SetHeight(center:GetHeight())
- t:SetPoint('TOP', center)
- t:SetPoint('BOTTOM', center)
- elseif o == 12 then
- t:ClearAllPoints()
- t:SetParent(center)
- t:SetHeight(center:GetHeight())
- t:SetPoint("RIGHT", center, -30, 0)
- t:SetPoint('TOP', center)
- t:SetPoint('BOTTOM', center)
- elseif o == 13 then
- t:ClearAllPoints()
- t:SetParent(centerright)
- t:SetHeight(centerright:GetHeight())
- t:SetPoint('TOP', centerright)
- t:SetPoint('BOTTOM', centerright)
- else
- f:Hide()
- t:Hide()
- end
- end
- local datatext = {
- "Guild",
- "Friends",
- "Gold",
- "FPS",
- "System",
- "Bags",
- "Gold",
- "Time",
- "Durability",
- "Heal",
- "Damage",
- "Power",
- "Haste",
- "Crit",
- "Avoidance",
- "Armor",
- "Currency",
- "Hit",
- "Mastery",
- "MicroMenu",
- "Regen",
- "Talent",
- "CallToArms",
- }
- for _, data in pairs(datatext) do
- local t = "TukuiStat"
- local frame = _G[t..data]
- local text = _G[t..data.."Text"]
- if frame and frame.Option then
- DataTextPosition(frame, text, frame.Option)
- end
- end
- for _, self in pairs(G.DataText) do
- if self.Text then
- self.Text:SetFont(C.media.pixelfont, 12, "MONOCHROMEOUTLINE")
- end
- end
- for i=1, 3 do
- local dt = G.DataText.Battleground["Text"..i]
- dt:SetFont(C.media.pixelfont, 12, "MONOCHROMEOUTLINE")
- end
Add Comment
Please, Sign In to add comment