Outfitter

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".

User When Change
Mundocani Mon, 28 Sep 2009 04:33:02 Changed status from New to Accepted
Gamon34 Mon, 28 Sep 2009 02:49:13 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of Gamon34 Gamon34 Mon, 28 Sep 2009 13:39:49

    Alright, thanks.

  • Avatar of Mundocani Mundocani Mon, 28 Sep 2009 04:32:49

    I'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.

  • 2 comments

Facts

Last updated on
28 Sep 2009
Reported on
28 Sep 2009
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees