summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-01-26Little bit of include cleanups.Ira Rice1-0/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-20Changed item popup drawing to be based on the mouse position, not windowIra Rice1-6/+9
position. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-20Added WoW style item adding to chat window. Right click, then leftDavid Athay1-5/+5
clicking on add to chat to put the item in the chat input. Left click the item link to show a popup description, and click the link again to remove the popup.
2009-01-15Fixed Item Popup window transparency (double setting of the skin)Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-15Integrated the ItemPopup class from Legends of Mazzeroth.Ira Rice1-1/+40
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-29Added support for True Type Fonts using GUIChan's inbuilt SDLTrueTypeIra Rice1-0/+1
class. NOTE: This commit adds a brand new dependency (SDL_TTF). Make sure to install it, regenerate your config files, reconfigure, and then install before attempting to compile. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-18/+9
Conflicts: AUTHORS CMakeLists.txt ChangeLog INSTALL README aethyra.cbp configure.ac data/help/changes.txt data/help/commands.txt data/help/header.txt data/help/support.txt src/Makefile.am src/aethyra.rc src/being.cpp src/being.h src/equipment.cpp src/equipment.h src/floor_item.h src/game.cpp src/gui/buddywindow.cpp src/gui/char_select.cpp src/gui/char_server.cpp src/gui/chat.cpp src/gui/chat.h src/gui/equipmentwindow.cpp src/gui/equipmentwindow.h src/gui/gui.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/itemcontainer.h src/gui/minimap.cpp src/gui/ministatus.cpp src/gui/newskill.cpp src/gui/npc_text.cpp src/gui/npclistdialog.h src/gui/ok_dialog.cpp src/gui/setup_video.cpp src/gui/skill.cpp src/gui/skill.h src/gui/status.h src/gui/table_model.h src/gui/updatewindow.cpp src/gui/viewport.cpp src/inventory.cpp src/inventory.h src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/localplayer.h src/logindata.h src/main.cpp src/map.cpp src/monster.cpp src/monster.h src/net/beinghandler.cpp src/net/beinghandler.h src/net/buysellhandler.cpp src/net/equipmenthandler.cpp src/net/loginhandler.cpp src/net/loginhandler.h src/net/network.h src/net/npchandler.cpp src/net/playerhandler.cpp src/net/protocol.h src/net/tradehandler.cpp src/npc.cpp src/npc.h src/particleemitter.cpp src/particleemitterprop.h src/player.cpp src/player.h src/player_relations.cpp src/resources/imageset.cpp src/resources/imageset.h src/resources/itemdb.cpp src/resources/mapreader.cpp src/resources/monsterinfo.h src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h src/tileset.h src/utils/fastsqrt.h src/utils/strprintf.cpp src/winver.h tools/tmxcopy/Makefile tools/tmxcopy/base64.cpp tools/tmxcopy/base64.h tools/tmxcopy/tostring.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-29Imported patch that Fate made on TMW which which changes the item Ira Rice1-23/+59
container to guarantee that the inventory window always reports what the player has correctly, getting rid of the stale item references that could occur from time to time.
2008-11-28Remember last equipped item ID so that we jump to/re-find an item of the ↵Fate1-4/+36
same ID whenever we lose the current one
2008-11-28Changed inventory container protocol to guarantee that we have no stale item ↵Fate1-20/+23
references lying around
2008-11-25Miscellaneous TMW change commits. Missed these changes before because of Ira Rice1-1/+1
a confusion on git.
2008-11-22Added ability to add equipment to the shurtcut barNikos Giagtzoglou1-17/+8
Patch by Nikos, with some improvements.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-3/+1
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-09-12Fixed /where, added /cast for heal and gather, some changes to inventory to ↵Lloyd Bryant1-6/+9
support storage
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-06-12Merged revisions 3738 via svnmerge from Bjørn Lindeijer1-6/+5
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3738 | b_lindeijer | 2007-11-16 00:44:01 +0100 (Fri, 16 Nov 2007) | 3 lines Moved item icon from ItemInfo class to the Item class, so that it can be loaded on demand. Results in faster startup time and reduced memory usage. ........
2008-04-28Properly fix problems with ItemContainer in InventoryWindow not resizingBjørn Lindeijer1-17/+17
properly since upgrade to Guichan 0.8.0.
2008-04-27Fix buildup of whitespace by using correct gridHeight and adding just 4px ↵Dennis Friis1-2/+2
space to bottom.
2008-04-24Make shortcut container ID based instead of slot based. Fixes items shifting ↵Dennis Friis1-2/+2
around often causing equipment to be lost.
2008-04-09Re-enabled non-functional item shortcut window, planned to be fixed for 0.0.25Bjørn Lindeijer1-6/+6
(reverted change 3811). Somehow seems it's not drawing anything, not sure why.
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-8/+7
gcn::TabbedArea usage)
2007-12-24Disabled non-functional item shortcut window.Bjørn Lindeijer1-6/+6
2007-09-27Merged another bunch of changes from trunk to 0.0 to reduce the difference.Bjørn Lindeijer1-2/+2
2007-08-21mantis id=118 - Added Item Shortcut Bar.Joshua Langley1-4/+14
2007-03-21Renamed Spriteset to ImageSet.Bjørn Lindeijer1-4/+4
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-12/+23
2006-09-03Introduced SelectionListener to fix updating problem in inventory windowBjørn Lindeijer1-6/+29
(should also be used to fix similar problem in trade, buy and sell dialogs). Made the ItemInfo be passed around as a reference instead of a pointer, since it is never NULL.
2006-08-17the item icons are now stored in different files with more descriptive namesPhilipp Sehmisch1-12/+9
2006-07-24Implemented caching of spritesets, including a lot of cleanups to the newBjørn Lindeijer1-4/+3
animation system. Action now refers to the Spriteset directly and AnimatedSprite refers to the current Action directly instead of using the std::map with a std::string constantly. Some methods and parameters are marked as const. The READ_PROP macro was replaced by static methods. Warnings are logged when unnamed actions are defined or when actions refer to undefined imagesets. Code is more tolerant towards missing actions.
2006-03-19Unreverted latest change by Doener due to my lack of proper communication ↵Eugenio Favalli1-12/+4
abilities.
2006-03-19Reverted changeset r2269 (toString) as requested by ElvenProgrammer.Björn Steinbrink1-4/+12
2006-03-18Added a toString conversion function.Björn Steinbrink1-12/+4
2006-03-16A bunch of cosmetic changes.Björn Steinbrink1-4/+2
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-26/+26
2006-03-09Added Spriteset::get() and Spriteset::size() to hide the member vector and ↵Björn Steinbrink1-7/+7
remove the weird mySpriteset->spriteset stuff.
2006-03-08Made Inventory use STL algorithms and fixed getLastUsedSlot semantics.Björn Steinbrink1-2/+2
2005-10-16Use the ResourceManager to get spritesets.Björn Steinbrink1-4/+2
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-5/+5
hook themselves into the map on construction. The improved fringe layer is working as expected now. * Made sure TMW compiles without warnings even when using "-Wconversion -Wshadow -Wcast-qual -Wwrite-strings -ansi -pedantic", lots of cleanups. * Added two new small tilesets that contain the desert tiles that are twice and three times the height of a normal tile. One well in new_3-1 has been converted to use the new double tiles for testing purposes.
2005-08-28Prepare our source so that it'll survive a guichan header cleanup, should it ↵Björn Steinbrink1-0/+2
ever happen...
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-4/+2
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-3/+11
2005-08-01Added code to dynamically adjust the itemcontainer size.Björn Steinbrink1-3/+16
2005-07-22Merge between moi1392's branch and headCedric Borgese1-1/+1
2005-07-18Created Inventory class. (Really) Small code simplifications and cleanups.Björn Steinbrink1-104/+39
2005-07-17Added Item and Equipment class and made the appropriate places make use of ↵Björn Steinbrink1-96/+34
them. Plus some cleanups.
2005-07-16Made Image/SubImage being drawn by Graphics. Removed some redundant code.Björn Steinbrink1-4/+6
2005-07-14Fix items being shown as eqipped in inventory although they are notBjörn Steinbrink1-0/+1
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-1/+4