|
||||||
| Lua Code Discussion You scared? Terrified. Mortified. Petrified. Stupefied... by [coding]. | ||||||
![]() |
|
|
Thread Tools |
|
|
#11 |
|
Seal Cub Clubbing Club
Join Date: May 2005
Location: California, US
Posts: 7,761
|
I'd leave the vertical position alone (eg. still anchor it by its TOP to the TOP of the parent frame) and just change the horizontal offset to 0:
Code:
hooksecurefunc("WorldStateAlwaysUpFrame_Update", function()
WorldStateAlwaysUpFrame:ClearAllPoints()
WorldStateAlwaysUpFrame:SetPoint("TOP", UIParent, "TOP", 0, -40)
local _, _, _, _, y = AlwaysUpFrame1:GetPoint()
AlwaysUpFrame1:SetPoint("TOP", WorldStateAlwaysUpFrame, "TOP", 0, y)
for i = 1, NUM_ALWAYS_UP_UI_FRAMES do
local frame = _G["AlwaysUpFrame"..i]
local text = _G["AlwaysUpFrame"..i.."Text"]
text:ClearAllPoints()
text:SetPoint("CENTER", frame, "CENTER", 0, 0)
text:SetJustifyH("CENTER")
local icon = _G["AlwaysUpFrame"..i.."Icon"]
icon:ClearAllPoints()
icon:SetPoint("RIGHT", text, "LEFT", -5, 0)
local dynamicIcon = _G["AlwaysUpFrame"..i.."DynamicIconButton"]
dynamicIcon:ClearAllPoints()
dynamicIcon:SetPoint("LEFT", text, "RIGHT", 5, 0)
end
end)
__________________
& Author/maintainer of Grid, PhanxChat, and many more. | PM me on CurseForge Troubleshoot an addon | Turn any code into an addon | More addon resources Need help with your code? Attach or paste your whole, real files. Please don't PM me about addon bugs, requests, or code help. Post a comment, ticket, or thread instead! |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 08:32 AM.
WowAce Forums




