summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-02-09C++11: Use default member initializersThorbjørn Lindeijer1-4/+1
This patch is not exhaustive.
2024-01-30Apply readability-delete-null-pointer fixitsThorbjørn Lindeijer1-4/+2
These checks are unnecessary as deleting a null pointer has no effect.
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-5/+5
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-03-18Removed some 'const' keywords from value returnsThorbjørn Lindeijer1-1/+1
It makes no sense to mark a return value as const when it is returned by value. This only makes sense if the return value is passed by reference, in order to prevent the receiver from modifying the value. Also made some other small adjustments. A std::string does not need to be initialized to "" explicitly and getSafeUtf8String could take its parameter by reference. Reviewed-by: Yohann Ferreira
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-10player_node -> local_playerYohann Ferreira1-1/+1
Reviewed-by: Ablu
2011-11-13Added background support to the equipment boxes.Yohann Ferreira1-0/+19
The background images are auto-centered. Also, for Manaserv, a new background parameter has been added in the box node of the equip.xml file to specify the background image. Note that the filename is relative to the gui theme folder. Reviewed-by: Thorbjorn Lindeijer Resolves: TMW-Mantis #769.
2011-08-30Added a way to specify where the equipment boxes will display.Yohann Ferreira1-18/+4
A <box> sub tag was added to the <slot> tag with a x and y parameter to do so.
2011-08-30Made the popup-menu work again for equip/unequip processes.Yohann Ferreira1-12/+14
I disabled the drop from equipment window since it was more simple to implement, and because it seemed useless or even bad for the user experience to me.
2011-08-18Improved equip slots description for both protocols.Yohann Ferreira1-5/+26
Now the itempopup is also telling what equip slot is under the mouse pointer.
2011-08-18Made the equipment window not use server specific code again.Yohann Ferreira1-88/+81
I also made the number of slots displayed taken from the equip.xml file for manaserv.
2011-08-18Made the client able to successfully equip/unequip!Yohann Ferreira1-20/+13
2011-06-02Arbitrary code cleanupsThorbjørn Lindeijer1-16/+16
Just some stuff that piles up while "looking" at the code, which eventually gets annoying to ignore while staging real changes. * Replaced a few NULL occurrences with 0 * Rely on default parameter for std::vector::resize. * Replaced a few "" with std::string() * Prefer .empty() to == "" * Removed a few comparisons with NULL * Don't check pointers before deleting them * Removed a bunch of redundant semicolons * Made some global variables static (local to their compilation unit) * Prefer prefix ++/-- operators to postfix versions when possible * Corrected location of a comment
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-1/+1
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 Channels to Mana::Event::ChannelThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2011-01-25Added a child class to the equipment window specialized for tAthena.Yohann Ferreira1-60/+70
(As requested by Thorbjorn.) Now the foundation to set up per-protocol equipment display is ready.
2011-01-24Refactored the item loading in a more extensible and per protocol way.Yohann Ferreira1-43/+60
This will greatly help into upgrading the need of each protocol separately. This is the first step to a new item and equipment system for manaserv. A subclassing of the EquipmentWindow will be done in the next commit, as requested by Thorbjorn. Reviewed-by: Thorbjorn.
2010-11-11Replace Event names with enums instead of stringsChuck Miller1-1/+1
2010-08-16Move more to the event systemJared Adams1-1/+1
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-03Move Theme and UserPalette to the resources folderJared Adams1-1/+1
Reviewed-by: Yohann Ferreira
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-3/+3
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
2010-02-24Move StorageWindow to instancing intead of globalJared Adams1-1/+1
Also make storage under eAthena more flexible. Reviewed-by: Dennis Friis
2010-02-22Cleanup some popup-related code and make sure BeingPopup is includedJared Adams1-1/+1
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-6/+7
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2009-09-23Fixed some glitches in Equipment and Inventory window, and made the code ↵Bertram1-0/+1
more logical... Now, the setAlpha() function is called with less changing numbers which can help increasing FPS a bit...
2009-09-14Fix context menu for items in the EquipmentWindowJared Adams1-1/+1
2009-07-23Clear some more support ifdefsJared Adams1-0/+2
2009-07-21Merge equipment handling and fix some bugsJared Adams1-50/+13
2009-05-12Remove methods from LocalPlayer that just call NetJared Adams1-1/+4
And make a few others like that, and remove them too.
2009-05-10Make sure Unequip button is disabled when appropriateBjørn Lindeijer1-8/+15
2009-05-08Keep a little spacing above the tabs in the chat windowBjørn Lindeijer1-3/+3
2009-05-08Fixed positioning of the item icons in the equipment windowBjørn Lindeijer1-1/+3
Noticed by QOAL.
2009-04-20Fix up window visibility saving/restoringJared Adams1-0/+1
2009-04-12Cleaned up the ItemPopup class a bitBjørn1-3/+1
Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes.
2009-04-10Some cleanup of the equipment window codeBjørn Lindeijer1-56/+35
Also removed some unnecessary delete statements, since the Popup class already deletes its children and the ScrollArea already deletes its content.
2009-04-09Actually use ItemType instead of shortBjørn Lindeijer1-1/+0
Plus some random cleanups.
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-21/+22
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-06Moved many MessageOut constructions aroundBjørn Lindeijer1-3/+3
No real point in having these abstracted away twice. We're using network interfaces now instead of functions structured in namespaces.
2009-04-02Start TMWServ's PlayerHandler and InventoryHandlerJared Adams1-1/+1
2009-03-31Remove unused backgroundJared Adams1-7/+0
2009-03-30fix segfault if the background image is missingBernd Wachter1-1/+2
2009-03-30Fix a segfault in the equipment windowJared Adams1-1/+1
2009-03-28Removed a lot of useless isVisible() checksBjørn Lindeijer1-3/+0
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27Merge branch 'aethyra/master'Bjørn Lindeijer1-8/+3
Conflicts: src/beingmanager.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/label.cpp src/gui/label.h src/gui/popup.cpp src/gui/popup.h src/gui/scrollarea.cpp src/gui/skin.cpp src/gui/skin.h src/gui/speechbubble.cpp src/gui/window.cpp src/gui/window.h src/localplayer.h src/main.cpp src/net/ea/playerhandler.cpp src/resources/ambientoverlay.h src/resources/dye.cpp src/resources/imagewriter.cpp src/resources/itemdb.cpp src/shopitem.cpp
2009-03-26Some code cleanups (mostly reducing how many calculations need to beIra Rice1-8/+3
done in certain statements, rearranging arguements to make them look cleaner, or overall making the code slightly more flexible) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-19/+26
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-19/+23
Conflicts: Many files.