Thread: Sorting powers
-
October 3rd, 2024, 15:39 #1
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 409
Sorting powers
I'm trying to implement sorting for powers. I've implemented a onInit function in record_char_powers.xml, windowlist powers, like so:
Code:function onInit() if super and super.onInit then super.onInit() end applySort(); return true; end
-
October 3rd, 2024, 15:46 #2
The windowlist itself will need either a <sortby> tag or a onSortCompare(w1, w2) function within the windowlist control itself. applySort() just forces it to run through either option I provided earlier.
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
October 3rd, 2024, 18:26 #3
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 409
Thanks, that did solve the issue. I now got powers sorted by their names.
Thread Information
Users Browsing this Thread
There are currently 5 users browsing this thread. (0 members and 5 guests)
Bookmarks