summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-03-04Fixed character displayThorbjørn Lindeijer1-22/+21
This change fixes hair style to take into account "race", which makes the faces visible again. Hair colors should also be fixed now, with partial support for itemcolors.xml added. The Mana client now also supports per-character gender, and it now hides the hair style and color buttons on character creation, when there are none to choose from. Closes #43
2024-03-02Changed server type to "enum class"Thorbjørn Lindeijer1-2/+2
2024-02-22General code cleanupsThorbjørn Lindeijer1-1/+1
* 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-01-26Apply C++11 fixitsThorbjørn Lindeijer1-5/+5
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-04-30Hide attribute sliders on character creation when appropriateThorbjørn Lindeijer1-47/+65
When the minimum and maximum values of the attributes are equal, then there is nothing for the player to customize and the sliders are not shown. At the same time the dialog has been fixed to resize properly to any number of modifiable attributes.
2013-04-27Added support for charcreation.xml settingsThorbjørn Lindeijer1-0/+7
This file was introduced by ManaPlus as a way of configuring the character creation process. It defines the number of hair styles and colors, how stat points should be divided and what the starting equipment of the player is. The minimum and maximum hair color/style IDs are not supported at the moment. This is mostly a backport of ManaPlus commits 10cf52b5 and dcc18eba, with some style changes. Mantis-issue: 501 Reviewed-by: Ablu
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-02-02Fix to the hair colors and styles handling.Yohann Ferreira1-28/+45
- I made the charCreatedialog handle a possible max permitted color Id and a minimum hair style id for tA. - Added a foundation to later load the styles and colors from the same file, to handle the Mana-issue #224 for manaserv. - Support for non-contiguous hair color and style ids has also been added. - I also replaced the < and > arrow signs with images. Reviewed-by: Ben Longbons, Thorbjørn Lindeijer
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-18ColorDB -> HairDB.Yohann Ferreira1-5/+5
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/+8
Reviewed-by: Crush.
2010-08-26Merged testing branch into master.Yohann Ferreira1-3/+4
2010-05-17Remove Monster, Player, and NPC classesJared Adams1-1/+1
Instead of having these three subclasses with minor differences, this commit merges them back into Being. In the future, we can make Beings that are talkable to some, attackable by others, etc. This also puts back support for monster equipment. Also changes remaining references to Being::Type and the constants to refer to ActorSprite::Type. Reviewed-by: Freeyorp
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-13/+12
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-13Allow player to talk after deathAndrei Karas1-1/+1
Mantis-issue: 938 (TMW Mantis)
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-24Remove some more _SUPPORT ifdefsJared Adams1-1/+1
2010-01-11Cleanup GUI classesJared Adams1-8/+7
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change code styleAndrei Karas1-4/+9
2009-10-03Update the CharSelectDialog after char creationJared Adams1-1/+7
2009-09-13Fix hair browsing bug in character creationKess Vargavind1-0/+4
Selecting the previous hair style/colour got unexpected results sometimes (when the id was negative).
2009-08-13Clean up Being and it's derivativesJared Adams1-15/+31
Move stuff only needed for Players into Player (like slots and sprite limits). Move name handling into Being (no need for three copies of this code). Clean up terminology (including Map terminology). Remove hair-related variables.
2009-08-07Gettext fixesKess Vargavind1-2/+2
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-28Add some translators commentsKess Vargavind1-0/+4
2009-07-26Gettext fixesKess Vargavind1-4/+4
And a Swedish translation of the desktop file.
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-1/+0
2009-04-29Removed underscores from some non-conforming filenamesBjørn Lindeijer1-3/+3
We don't use underscores in the filenames generally, and let's be consistent on that matter.
2009-04-16Fix gender setting in CharCreationDialogJared Adams1-0/+2
2009-04-12Append _F or _M to username in eAthena network layerBjørn Lindeijer1-4/+4
Abstracts it away and out of main.cpp and register.cpp.
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-5/+5
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
2009-04-07Used custom widgets where appropriate and some cleanupBjørn Lindeijer1-6/+4
Replaced many gcn::Label with Label, gcn::Slider with Slider in character creation dialog. Also cleaned up includes.
2009-04-07Fixed compile warnings about unsigned/signed comparisonsBjørn Lindeijer1-5/+5
2009-04-06Fix CharCreateDialogJared Adams1-1/+5
2009-04-06Implement TMWServ's CharHandlerJared Adams1-0/+329
Also cleanup character creation, which isn't functional at the moment.