summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-04-02General code cleanupsThorbjørn Lindeijer1-16/+10
* Removed some unused includes and forward declarations. * Use std::unique_ptr to automate cleanup. * Use TextRenderer::renderText in BrowserBox to avoid code duplication. * Removed unused STATE_NORMAL from StateFlags. * Small layout fix in ServerDialog. * Reduced rewrapping delay in BrowserBox to 33ms and disabled it entirely when there are no more than 1000 lines to rewrap. The rewrapping is usually fast enough.
2025-01-20Made client config statically typedThorbjørn Lindeijer1-31/+48
This makes accessing the config values much faster, since it no longer needs to do a lookup nor string conversion, which means we could remove some needless copying of the values. Overall it makes it easier to find out where settings are used and it puts the defaults along with the declaration. Options with default values are no longer saved to the config file. This does not include unrecognized options, which are kept around to provide some compatibility with older clients. While most basic options have kept the same name, more complicated settings like window geometry, shortcuts, outfits, etc. now have their own XML elements. Older clients will ignore these and erase them when saving the configuration.
2024-10-08Small cleanup in OutfitWindow::loadThorbjørn Lindeijer1-13/+5
Based on MV commit db452921bafb2dd322b52c1e5d03e5e713849dd0.
2024-03-12General code cleanupsThorbjørn Lindeijer1-7/+0
* Use default member initializers * Use range-based for loops * Avoid needless pointer references for ShopItem::mDuplicates * Removed type aliases that are only used once or twice * Removed more unused includes * Removed some unused functions * Removed superfluous .c_str() * Rely on default copy and assignment operators for Vector class * Use std::unique_ptr in some places * Removed duplicated mPlayerMoney updating in SellDialog * Removed duplicated Game::handleInput call * Removed unused SDLInput::mMouseInWindow * Removed remnant of manual widget positioning in HelpWindow * Removed superfluous initialization of static pointers
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-02-09C++11: Use default member initializersThorbjørn Lindeijer1-9/+1
This patch is not exhaustive.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-4/+4
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-16Renamed some file names for consistency with the class namesThorbjørn Lindeijer1-1/+1
This was already done by ManaPlus. It's a good idea anyway and it makes comparing the code a little easier. Reviewed-by: Yohann Ferreira
2011-06-17First pass on removing tile hard coded values.Yohann Ferreira1-2/+6
Every files has been checked against the hard coded 32 values except the map.cpp file. I also added convenience functions in the Game class, centralized the default item icon size, and removed two unused defines in being.cpp.
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-2/+2
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-2/+2
Acked-by: Jared Adams
2010-11-11Replace Event names with enums instead of stringsChuck Miller1-2/+2
2010-08-26Merged testing branch into master.Yohann Ferreira1-1/+2
2010-08-16Move more to the event systemJared Adams1-2/+5
Most of Net::InventoryHandler is now done through events. The ActorSpriteManager was also replaced by events. A few odds and ends were taken care of too. Reviewed-by: Bertram
2010-08-01Reduce localChatTab presence replacing it with the event systemChuck Miller1-1/+0
Reviewed-By: Jared Adams
2010-07-18Move more from LocalPlayer to PlayerInfoJared Adams1-6/+6
Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller
2010-03-26Reduce the amount of "Unable to unequip item" when changing outfits.Chuck Miller1-5/+3
It will still do it at times because of lag. But this reduced it for me by about 80% Reviewed-by: Jared Adams
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
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-11Cleanup GUI classesJared Adams1-1/+2
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change code styleAndrei Karas1-26/+27
2009-09-30Removed unused variable 'item'Thorbjørn Lindeijer1-1/+0
2009-09-29Outfits updateAndrei Karas1-25/+75
Increased outfits count to 15 Changed unequip outfits feature Added copy outfits feature
2009-09-19Removed unexplained exceptions to undressing logic in player outfits ↵Fate1-7/+3
handling, making the system more intuitive to use
2009-07-26Gettext fixesKess Vargavind1-4/+4
And a Swedish translation of the desktop file.
2009-07-21Merge equipment handling and fix some bugsJared Adams1-6/+0
2009-05-18Fixed compilation for tmwservDavid Athay1-2/+7
2009-05-14Fixes to outfit windowDennis Friis1-1/+1
- Moved the outfit button onto the Inventory window - Fixed 'unequip first' saving bug Patch by QOAL
2009-05-14Add missing windowsJared Adams1-0/+301