API:PregameGetCharacterSelectNumPages
From RoR Wiki
UI Lua API · Pregame functions
Version: WAR 1.4.8
Returns how many pages of character slots each realm has on the character select screen.
orderNumPages, destructionNumPages = PregameGetCharacterSelectNumPages()
Arguments
None.
Returns
- orderNumPages
number– Number of pages for Order.- destructionNumPages
number– Number of pages for Destruction.
Details
- The names and order of the two values are the ones the stock UI uses.
- The client counts the pages from the character slot data it has for each realm.
- Outside the pregame state, or before the character select screen is set up, the function returns nothing.
Errors
None.
Example
From interfacecore/source/characterselectwindow.lua:
-- Update the character page changer local orderNumPages, destructionNumPages = PregameGetCharacterSelectNumPages() local bNeedsPageChanger = ( orderNumPages + destructionNumPages > 1 )
