71 - Request: change stats on character sheet
Automatically switching gear when you go from primary spec to secondary is fantastic. But I still need to change the displayed stats in the little drop down on the character sheet, for instance to display defense when in tanking gear and melee when in dps.
In the settings for each outfit, there are options to display/hide cloak and hat, and to change title. Could you please add an option to change the displayed stats here as well?
I have been able to find the code for this. It's in PaperDollFrame.lua in a function called PlayerStatFrameRightDropDown_OnClick(). A working example, in the form of a macro:
/run local stat="PLAYERSTAT_DEFENSES"; UIDropDownMenu_SetSelectedValue(getglobal("PlayerStatFrameRightDropDown"),stat); SetCVar("playerStatRightDropdown", stat); UpdatePaperdollStats("PlayerStatFrameRight", stat);
stat can be the values "PLAYERSTAT_BASE_STATS", "PLAYERSTAT_MELEE_COMBAT", "PLAYERSTAT_RANGED_COMBAT", "PLAYERSTAT_SPELL_COMBAT" or "PLAYERSTAT_DEFENSES".
- 3 comments
- 3 comments
Facts
- Last updated
- Oct 11, 2010
- Reported
- Sep 28, 2009
- Status
- Declined - We decided not to take action on this ticket.
- Type
- Enhancement - A change which is intended to better the project in some way
- Priority
- Medium - Normal priority.
- Votes
- 0
- Reply
- #3
Mundocani Oct 11, 2010 at 01:54 UTC - 0 likesLooks like WoW has made this obsolete, closing the ticket
- Reply
- #2
Gamon34 Sep 28, 2009 at 13:39 UTC - 0 likesAlright, thanks.
- Reply
- #1
Mundocani Sep 28, 2009 at 04:32 UTC - 0 likesI'll consider this for sometime in the future, but I think it's really outside of what Outfitter should do (ie, it's not actually related to outfits per-se, but to dual specs and the display on the character sheet). But it's sort of Outfitter-related since your stats are determined in part by what you're wearing.
Regardless of whether I add it, you could also change your scripts to do it for you. Choose the Primary Talents or Secondary Talents script and then change the script to Custom and at the end insert something like this:
if equip then SetCVar("playerStatRightDropdown", "PLAERSTAT_MELEE_COMBAT") end
That'll change the setting at the same time the script tries to equip the outfit. It probably won't cause the character window to change if it's already open, but normally it won't be and it will update the menu to the correct setting when you do open it.