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


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'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:SetPoint( --[[ new points go here ]] )
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
11-17-14, 02:15 AM   #3
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