Riftui

Riftui (https://www.riftui.com/forums/index.php)
-   General Authoring Discussion (https://www.riftui.com/forums/forumdisplay.php?f=20)
-   -   Role number (https://www.riftui.com/forums/showthread.php?t=267)

Solsis00 06-01-12 12:19 AM

Role number
 
Looking for a way to acquire the role (spec) a character is currently in without them changing. Example on an initial login or reloadui. I am looking for the number 1-6 that returns what role set they are in. Used to Inspect.TEMPORARY.role would give this but it is recommended to no longer be used. Anyone have any suggestions?

The Scenario: My addon sets up keybinds based upon the role you are currently in (1 - 6). I set the roleset variable to 1 or whatever by default so it is a valid number and not nil. But lets say you've loaded my addon for the very first time and you are currently in your DPS role which is number 2. This causes a mismatch that could eventually fix itself and be overlooked if you use the addon long enough to discover it and reset a 2nd time your keybinds by switching roles and then switching back. It will get the right role from the Event.TEMPORARY.role at that point.

Thanks in advance.

~Solsis

Myrroddin 06-02-12 04:34 AM

Inspect.TEMPORARY.Role is the recommended (and only) choice right now. The official documentation states that this inspector will be removed at a later date, but that date has not been provided.

Solsis00 06-02-12 04:41 AM

Thanks for the response Myrroddin. That's what I was finding. I went ahead and implemented it and set it up yesterday and it is working fine. Wish they'd just add it to the Unit.Details.

Thanks again.


Quote:

Originally Posted by Myrroddin (Post 960)
Inspect.TEMPORARY.Role is the recommended (and only) choice right now. The official documentation states that this inspector will be removed at a later date, but that date has not been provided.



All times are GMT -6. The time now is 10:36 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI