summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-02-22General code cleanupsThorbjørn Lindeijer1-3/+3
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-02-13General code cleanupsThorbjørn Lindeijer1-5/+0
* Removing unused includes * Use member initialization * Use range-based for loops * Use nullptr * Removed no longer used aliases * Use override * Don't use else after return * Use '= delete' to remove implicit members * Use std::string::empty instead of comparing to ""
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-2/+1
This patch is not exhaustive.
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-2/+2
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-8/+8
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-08-05Removed all the hardcoded sizes of the various setup tabsThorbjørn Lindeijer1-5/+1
Instead, support for dynamically adjusting layout was added to the Container class. Various other places were also adapted to use the new layout support in Container. Reviewed-by: Erik Schilling
2012-05-05Removed the shared base classes of MessageIn and MessageOutThorbjørn Lindeijer1-1/+0
There wasn't a whole lot gained by sharing a common base class, and it makes extending the manaserv Message{In,Out} classes with a debugging mode unnecessarily complicated. Reviewed-by: Yohann Ferreira
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-18ColorDB -> HairDB.Yohann Ferreira1-1/+1
This will ease the reading of the next patch about hair handling at character creation time in tAthena. As requested by bjorn. Reviewed-by: bjorn
2010-12-29Made the client handle the characters slots properly for Manaserv.Yohann Ferreira1-2/+9
Reviewed-by: Crush.
2010-12-16Made the client handle the number of slots given by the server.Yohann Ferreira1-9/+20
I turned the CharacterEntries into a vector. As for now, it's basically working but I discovered bugs about slots handling mainly for Manaserv that were already present before that patch. Hence, there are three remaining issues: - Under ManaServ, the character's slots numbers aren't handled when loading the characters but used when sending selection or deletion attempts. For instance, if you delete the character at slot 1, you won't be able to select or delete characters at slots 2 and 3, since the server believes that the characters are now in slots 1 and 2, even thought the client still displays them at the former slots. - Also under manaserv, you won't be able to create a character at slot 1 and 3, the server will automatically add the new one to the next slot, which is not corresponding to where you clicked to the 'Create' button. I propose to make Manaserv send again the character slots numbers and store them in database since we used them in creation, selection, and deletion attempts. It would make more sense IMHO. - The last remaining issue found is that when switching between different servers, the loginData don't get cleaned up, make the characterSelect dialog look crazy when the number of slots is different between two servers. If this one is accepted, my next patch will make the logindata be cleaned up between each login attempts (as for the slot number, and maybe other sensible data) and the next ones will readd character slot handling server and client side. Reviewed-by: Jaxad0127.
2010-12-15Small hacking cleanups.Yohann Ferreira1-6/+12
In preparation for resolution of mana-issue: #211. Trivial.
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer1-14/+6
Conflicts: src/actorspritemanager.h src/beingmanager.cpp src/game.cpp src/gui/beingpopup.cpp src/gui/chat.cpp src/gui/chat.h src/gui/inventorywindow.h src/gui/itempopup.cpp src/gui/socialwindow.cpp src/gui/statuswindow.cpp src/gui/widgets/chattab.cpp src/gui/widgets/chattab.h src/net/tmwa/inventoryhandler.cpp src/net/tmwa/partyhandler.cpp src/party.cpp src/sound.cpp src/utils/stringutils.cpp src/utils/stringutils.h
2010-09-02Fixing escape key in charselectdialogStefan Dombrowski1-14/+6
* In charselectdialog the requestFocus is now called later, because before it had no effect, since it was called before the characters were present. Having no char with focus has the side effect that the escape key gets ignored. * Removing the code for variable width of CharacterDisplay, because with recent changes it is executed before the characters are present, therefore it had no effect.
2010-07-17Modify how attributes and stats are handledChuck Miller1-2/+4
Handling moved from LocalPlayer to PlayerInfo class Event system used to update windows Reviewed-by: Jared Adams
2010-04-16Fix canceling game connectionJared Adams1-0/+1
Reviewed-by: Bertram
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-7/+7
Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ...
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-19Fixed a crash when trying to switch serversThorbjørn Lindeijer1-120/+149
Ownership of the charInfo global variable wasn't well defined. It was being locked, unlocked and generally modified from a lot of places, and somewhere in this mess it ended up crashing when switching servers. Now the CharHandler instances, for eAthena and manaserv respectively, own this list of characters. A new class, Net::Character wraps up the slot index in combination with the player dummy. The list is passed on to the CharSelectDialog each time it changes. Both related and unrelated cleanups were made as well. Reviewed-by: Jared Adams
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-26Add compilation warnings when using cmake.Bertram1-1/+1
2010-01-20Fix compile error in CharSelectDialog::chooseSelectedJared Adams1-0/+2
Was missing return statement.
2010-01-21Corrected the --default option behaviour to follow --help definition.Bertram1-2/+2
The --help options tells: -D --default : Choose default character server and character The client now choose the defaulted last character entry when --default is set. The --character option still has precedence. Also added a return value to the CharSelectDialog->chooseSelected() function while on it, in case of someone willing to add errors handling at this stage.
2010-01-11Cleanup GUI classesJared Adams1-11/+11
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change code styleAndrei Karas1-2/+4
2009-12-16Stored the cached config value which says if non-crucial particle effects ↵Philipp Sehmisch1-1/+1
are enabled or not in a static member of class Particle instead of an instanced member of Being.
2009-12-06Improve keyboard accessibility of login sequenceJared Adams1-0/+13
Enter and Escape now move forward and backwards for all dialogs except ServerSelectDialog (Escape quits) and CharSelectDialog (Enter doesn't do anything special).
2009-11-07Improve the look of the CharSelectDialogStefan Dombrowski1-9/+21
2009-10-29Some random cleanupsThorbjørn Lindeijer1-6/+0
2009-10-24REplace instances of TMW with ManaJared Adams1-2/+2
2009-10-07Clean up state machine some moreJared Adams1-3/+3
2009-10-04Add ability to delect characters from accountJared Adams1-4/+13
2009-10-04Made sure the server information updates when dragging the server listThorbjørn Lindeijer1-0/+2
It was only updating on click events, due to using ActionListener instead of SelectionListener.
2009-10-03Update the CharSelectDialog after char creationJared Adams1-0/+32
2009-10-03Do some more post-merge cleanupJared Adams1-1/+1
Fixes a few more bugs
2009-10-04Replaced setNetworkOptions with LoginHandler::supportedOptionalActionsThorbjørn Lindeijer1-38/+27
Better to ask when needed that rely on static booleans to be set from somewhere. Also tried to fix the layouting a bit, but it's still not perfect.
2009-10-03Made passing character name on the command line work againThorbjørn Lindeijer1-17/+26
It was only selecting it when found, instead of also logging in with the character.
2009-10-03Remove a debug line I forgot aboutJared Adams1-1/+0
2009-10-01Redesign CharSelectDialogJared Adams1-227/+162
2009-10-01Fixed compile error: src/gui/charselectdialog.cpp:377: error: cannot declare ↵Bertram1-1/+1
member function ‘static void CharSelectDialog::setNetworkOptions(bool, bool)’ to have static linkage
2009-10-01Finish merging registration dialogJared Adams1-1/+11
2009-09-30Merge login state machines for both clientsJared Adams1-9/+2
Also do some cleanup and refactoring of related code.
2009-08-07Gettext fixesKess Vargavind1-1/+1
Trying to use the same kind of capitalization and interpunctuation for various parts of the gui, melding a few split strings, updating POTFILES.in and adding translators' notes.
2009-07-19Merge StatusWindowsJared Adams1-2/+4
Also some other small merges
2009-07-17Minor whitespace fixKess Vargavind1-4/+4
2009-07-17fix: Invalid money display in character selection screen reported by crazy ↵Maximilian Philipps1-1/+4
on forum
2009-06-01Make the login window a little wider to fit French translationKess Vargavind1-1/+1
2009-05-25Fixed compiler warning about order of initializationBjørn Lindeijer1-3/+3
(cherry picked from commit d76a9210b07cdcf97ae4f94af429b5fa3e72b239)
2009-05-25Add change password dialog to athena clientDennis Friis1-24/+19
(cherry picked from commit 050103b8d2e3eb23e7aea188a1a269feb7c181ab)