Total-RP / Total-RP-3

The best roleplaying add-on for World of Warcraft.
http://curse.totalrp.com
Apache License 2.0
34 stars 19 forks source link

Allow reordering of personality traits, now with a button. #925

Closed Raenore closed 4 weeks ago

Raenore commented 4 weeks ago

Fixes #312.

https://github.com/Total-RP/Total-RP-3/assets/172234435/f31e756d-a52d-4259-9142-f56a8dcff716

The button (and most of its XML) is courtesy of Meorawr who created it, I take no credit.

This has also been implemented (or is it backported?) for Additional Information for consistency. Both are now reordered by the button.

Most of these changes are refactors so that both misc info and traits go through the same functions (like frame.frameIndex and handle.infoTicker being consistent for both). This includes luals-compatible annotations for the functions I added or refactored.

Two new strings to be localized have been added: REG_PLAYER_REORDER and REG_PLAYER_REORDER_TT.

NOTE: The cursor will not actually show it is being dragged until you have moved your cursor out of the button you started to drag out of. This was fixed in a commit by Meorawr attached to this PR.