didnt knew if you can do stuff like that in weak auras - do share if you will succeed.
and yes I have right now 4 of those scripts (rest is handled by addons themselves having option to attach to parent frame) and ideas for more
I suppose you could make wa do things lke that, but will have to see wether i can make it work or not.
otherwise i will have to use the method of setting positions by editing the saved variables.
just a few more bits of info:
here is the thread I made a while back - has few interesting bits of code - http://www.mmo-champion.com/threads/...UI-is-rendered
and here is the not working code I have that ideally should anchor unit frame to the bartender
by not working I mean it prints out "Loaded" but the I get nil value for "a" variable - which suggests that it is running before the other addons load.Code:local fN = ... local f=CreateFrame("Frame") f:SetScript("OnEvent",function(s,e,n) if (e == "ADDON_LOADED") and (n == fN) then print("Loaded!") local a,b=SUFUnitplayer,BT4Button25 a:ClearAllPoints() a:SetPoint("TOPRIGHT", b, "TOPLEFT", -17, 0) end end) f:RegisterEvent("ADDON_LOADED")
Add a ## Dependencies: Bartender4, WhateverTheSUFFolderIsCalled to the TOC file.
UI & AddOns expert | Interface & Macros moderator - My work
this is what I have:
- - - Updated - - -Code:## Dependencies: Bartender4, ShadowedUnitFrames
also another use case - not sure if that changes anything but what about boss frame or raid frames? those are frames that show up under only special conditions so the solution I am looking for should cover the frames that are not visible all the time
I only uploaded 13.8.5 today, so it's still peding i guess. I can make a quick presentation how to handle the groups if you would like.
The other issue it's dependent on the frame, some frames can only be modified after it's been created. The boss frames are not like that.
while boss frames might not fit my scenario how about vuhdo/grid that shows up only in certain situations (like having more than 5 people in party)? or something that I think I saw in tukUI - tooltips being positioned in the bottom right corner of the screen unless there is a bag window open, then bag would be in that bottom right corner and tooltip above it (so a frame hooked to a different frame that only sometimes shows up)
Ok, so i might try to update moveanything and give it another shot.
my problem with it was that when letting stuff snap to center of the screen it would be a bit off as oposed to other stuff. My example was minimap and a weakaura border. Wa has 0 x offset from center, yet my minimap ended up about 40 pixels to the left.
Might this be fixed in newer versions?
There used to be an addon called Kong - used for hiding certain parts of UI based on conditions. It had very intuitive interface for selecting which frame to modify - maybe worth adding something similar?
I always used an addon called screengrid, when working on custom UI's. Got tired of them so now I am just back to the original ui, with omnicc, bigwigs, grid and weak auras. Those are all the addons you need in this game.
When you parent a frame to another frame, when you move the parent the parented children is also going to move with it.
Last edited by Resike; 2014-01-20 at 09:26 PM.
Couple more tinkering session and I might be able to show my UI setup to the public.