Thanks Bot_romka for your work and the impetus it gave me to update this addon.
loginxml 3.0 changes:
Accountlogin:
- - Now has 65 buttons!
- Added server support. Clicking a button logs on to the associated server.
- You can change the login buttons display by SHIFT-CLICKING the buttons.
- Added argument "current" to ChangeChar() function to log off and back onto the same character.eg. ChangeChar("current")
- - Can now set default values for Race and Class when creating a new character.
- Skips character create dialog.
- A random name is now generated by default.
- Added a button next to the name edit box that generates new random names.
- - Removed logindialog.xml as it was identical to the original. You'll have to delete this manually yourself from the directory if you want to keep it tidy.
- - fastLoginButtonDisplay - You can set what is displayed on the login buttons by default.
- fastLoginFastCharacterDelete - Whether it shows the character delete confirmation dialog or not.
- fastLoginDefaultRace - Default race, 1-HUMAN, 2-ELF, 3-DWARF or nil for random Race.
- fastLoginDefaultClass - Deault class, from 1 to 6 or nil for random Class.
Finally, I recreated the files using the current versions from patch 5.0.0 and reorganised things to make it easier to update in the future by putting all new variables at the top of the files and all modified and new functions at the bottom, leaving the originals untouched.
- -- Seeing as you might be switching between servers with different number of channels, I moved most of the code from "SetChannelForLogin" to just before it logs in in "characterselect.lua".
-- Added support for the new "current" option to "ChangeChar()", to support the same option in ChangeChar() in the loginxml.