Reloacating raid frames via slash
I have been trying to put together a slash command to change my frame position biased on my roll in a raid.
This is how I've attempted to go about doing this, and I also have the Ideal.config saved in the saved variables folder via the TOC. However I cannot seem to make it save the new Ideal.config values when the reloadUI action occurs. Any help would be greatly appreciated. Code:
if (Ideal == nil) then Code:
SlashCmdList['IDEAL'] = function(id) |
http://www.wowwiki.com/Saving_variab..._game_sessions
Short version is write the values when the PLAYER_LOGOUT event is fired. |
Quote:
@Manube I didn't make anything permanent so I just move my frames with SetPoint and not reloading (reloading loads in default positions) If you want to save location / mode for next login then you could use SavedVariables. |
come again
sorry for my ignorance, but how do you "not anchor" the frames when you use setpoint. i've played around for quite some time with your last sugestions yourstruly and i really like the idea but can't seem to implement it properly. any pointers would be much appreciated.
Thanks for your help thus far. Manube |
I don't use user placed / movable by dragging or anything like that so my unit frame locations are not saved but instead is set by my layout. Basically it contains raid1:SetPoint() and all my other raid groups are anchored to raid1. This makes the move just temporary until a ui reload or login but as I'm mostly in the default, it doesn't matter.
All I do to move my raid frames then is. Code:
local UnitFrameMode = 0 |
Thanks a lot this worked perfectly, I would have never thought of doing this.
:D:D:D:D:D:D:D:D:D:D -Manube |
All times are GMT -6. The time now is 02:42 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI