summaryrefslogtreecommitdiff
path: root/src/net/manaserv/inventoryhandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-11-13Added background support to the equipment boxes.Yohann Ferreira1-0/+11
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-30Fixed a memleak in the ManaServ::InventoryHandler()Yohann Ferreira1-0/+5
2011-08-30Added a way to specify where the equipment boxes will display.Yohann Ferreira1-8/+32
A <box> sub tag was added to the <slot> tag with a x and y parameter to do so.
2011-08-19Fixed visible equipment updates, and made it based on equip.xml.Yohann Ferreira1-0/+29
2011-08-18Made the equipment window not use server specific code again.Yohann Ferreira1-0/+3
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-74/+143
2011-08-11Adapted the client to the latest server changes.Yohann Ferreira1-39/+85
There are two bugs left I'll take care about in the near future: - Items dealing with more than one slot capacity are only showing on the first equip slot. - The unequip button doesn't get updated when clicking on the equipped item. A client design limitation known: - The client still don't handle correctly items applied on more than one item type at equip time.
2011-07-27Followed server protocol changes.Yohann Ferreira1-16/+17
Also documented a TODO.
2011-06-02Some work on the manaserv equipment backendThorbjørn Lindeijer1-16/+145
Currently the same equipment window is used as for tmwAthena so that at least something is visible. This means the location of equipped items is currently illogical. It is now possible to equip and unequip items. Mantis-issue: 164 Reviewed-by: Stefan Dombrowski
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-10/+10
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-3/+3
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-6/+6
Acked-by: Jared Adams
2010-12-30Renamed protocol.h to manaserv_protocol.h to follow server's changes.Yohann Ferreira1-1/+1
I'll sync the two files as for the new enums in a separate commit. Trivial fix. Resolves: Mana-mantis #278.
2010-11-11Replace Event names with enums instead of stringsChuck Miller1-6/+6
2010-11-11Have the event system channels use enums instead of stringsChuck Miller1-3/+3
Reviewed-by: Freeyorp
2010-08-26Merged testing branch into master.Yohann Ferreira1-21/+43
2010-08-16Move more to the event systemJared Adams1-71/+81
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-04Remove some unused headers and fix some chat eventsJared Adams1-5/+0
Reviewed-by: Chuck Miller
2010-07-18Move more from LocalPlayer to PlayerInfoJared Adams1-5/+5
Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller
2010-07-17Modify how attributes and stats are handledChuck Miller1-1/+2
Handling moved from LocalPlayer to PlayerInfo class Event system used to update windows Reviewed-by: Jared Adams
2010-03-25Remove the type boolean from InventoryWindowJared Adams1-9/+9
This moves inventory/storage type into the Inventory class, having size default to a call to the netcode to get the sive for the given type. Reviewed-by: Chuck Miller
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-3/+3
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-12Standardize header orderJared Adams1-5/+5
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-12-08Fix handling of an enum switchJared Adams1-2/+1
Removes warnings on older compilers.
2009-12-07Simplify Equipment handlingJared Adams1-2/+3
Also merge eAthena's EquipmentHandler and InventoryHander. Fixes http://mantis.themanaworld.org/view.php?id=888 .
2009-12-02Centralize netcode handler instances in NetJared Adams1-1/+1
Instead of each netcode making the global variables and Net referencing them, Net now makes them and the netcodes reference them. Also remove an innappropriate ChatHandler reference from eA's AdminHandler.
2009-11-07More eAthena guild stuffJared Adams1-10/+15
Also some related chenges elsewhere
2009-11-03Simplify ManaServ netcode some moreJared Adams1-10/+17
2009-11-03Remove more _SUPPORT ifdefs and do some cleanupJared Adams1-12/+20
2009-10-24REplace instances of TMW with ManaJared Adams1-0/+167