summaryrefslogtreecommitdiff
path: root/src/resources/hairdb.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-07-04Added logging priorities and use SDLs logging facilitiesThorbjørn Lindeijer1-5/+5
By using SDL logging, we can rely on SDL to filter the log messages by their priority before they get sent to our custom output function. For example, we now no longer get entries for created and destroyed Window instances by default, since these have only "debug" priority whereas the default priority for the "app" category is "info". We can also get log messages raised by SDL itself in our log now. Log levels can be controlled per category through the "SDL_LOGGING" environment variable. Many existing log messages have been assigned a category based on their existing prefix.
2025-01-20Wrapped xmlNodePtr access with a Node classThorbjørn Lindeijer1-3/+3
Slightly more ergonomic and this eliminates direct libxml2 usage from many places.
2024-03-04Fixed character displayThorbjørn Lindeijer1-4/+4
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-01-29Removed unused includes in various filesThorbjørn Lindeijer1-2/+0
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-12/+10
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-2/+2
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-05-04Client-side settings are now available from settings.xmlPrzemysław Grzywacz1-62/+17
2012-02-02Fix to the hair colors and styles handling.Yohann Ferreira1-48/+98
- 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-18ColorDB -> HairDB.Yohann Ferreira1-0/+117
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