Thread Tools Display Modes
11-16-14, 03:13 PM   #1
Narden
A Defias Bandit
Join Date: Nov 2014
Posts: 2
dynamic player position

Hello,

I recently decided to create my own oUF layout. This worked out very well so far.
(with little programming knowledge)

But now i tried to make the player and target frame position dynamic, depending wether
I am in a group or not (and depending on group size, e.g. 5 man, 10 man ...)

I searched the forum and found an entry about different Raidpositions (think it was Altz UI)
and the workaround was to create two different Raid layouts and hide one depending on player role.

My question is know: Do I have to make such a workaround for the player frame too (cause I don't
want to reload UI everytime i enter/leave a party)?
  Reply With Quote
11-16-14, 06:07 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That solution won't work for the player frame, but fortunately it doesn't have to -- you can just move the player frame whenever you want (as long as you're not in combat). Just register for the relevant event(s) -- mainly GROUP_ROSTER_UPDATE -- check the group type, and move as desired.

frame:ClearAllPoints()
frame:SetPoint( --[[ new points go here ]] )
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-17-14, 02:15 AM   #3
Narden
A Defias Bandit
Join Date: Nov 2014
Posts: 2
Thanks for the quick response, i will test this today
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » dynamic player position

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off