summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2007-10-19Fixed key special values. Reduced amount of spurious item deselections.Guillaume Melquiond1-26/+22
2007-10-01Fixed inventory display with respect to empty slots.Guillaume Melquiond1-0/+2
2007-09-27Some formatting changes to align with the 0.0 branch.Bjørn Lindeijer1-2/+4
2007-09-19Merged 0.0 changes from revision 3362 to 3580 to trunk.Bjørn Lindeijer1-0/+4
2007-08-14itemcontainer.cpp - removed debugJoshua Langley1-3/+0
2007-08-14inventory - split function fixJoshua Langley1-2/+4
2007-08-14mantis_id:129 - Inventory Window Slots Added.Joshua Langley1-91/+247
2007-07-31Removed legacy inventory code. Added display of equipment.Guillaume Melquiond1-1/+1
2007-07-27Removed useless yet costly dynamic casts.Guillaume Melquiond1-6/+3
2007-03-24Merged 0.0 changes from revision 3177 to 3234 to trunk.Bjørn Lindeijer1-4/+4
2007-01-14Merged 0.0 changes from revision 2988 to 3035 to trunk.Bjørn Lindeijer1-12/+23
2007-01-04Client-side hack for picking up items.Guillaume Melquiond1-12/+7
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
2005-06-21Image loader now automatically determines whether to use masked drawing orBjørn Lindeijer1-2/+2
an alpha layer.
2005-06-16Fixed cutting off bottom item row of inventory in some casesBjørn Lindeijer1-1/+19
2005-06-16Fixed window resizing to work properly, and on all edges and corners.Bjørn Lindeijer1-0/+6
2005-06-05Item icons now displayed as 32x32.Bjørn Lindeijer1-27/+48
2005-05-21Numerous things:Bjørn Lindeijer1-0/+3
* Fixed two non-virtual destructor warnings showing up with GCC 4. * Fixed OpenGL inventory text drawing that broke in last commit * Removed glClear cause screen is redrawn completely anyway * Fixed updating of buttons in inventory window * Made items.xml be loaded through resource manager.
2005-05-11another trade update: selecting items is more logical now, name and desc. ↵Jan-Fabian Humann1-0/+5
are being displayed
2005-05-11first two trade items work again (itemcontainer slots 0 and 1 seem to be ↵Jan-Fabian Humann1-3/+1
reserved)
2005-05-10fixing a bug which occured when ItemManager's constructor calls logger (for ↵Jan-Fabian Humann1-2/+2
example if items.xml is missing)
2005-05-05- Equipped items now listed in inventory as "Eq.".Aaron Marks1-0/+2
- Depending on whether selected inventory is equipment or item the button which was previously only labeled "Use" will be labelled either: "Use", "Equip" or "Unequip".
2005-05-02Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.Bjørn Lindeijer1-2/+2
2005-04-27Updated item container (fixed rendering position errors).Aaron Marks1-4/+9
Moved widgets in inventory so everything is aligned.
2005-04-21trying to follow Hammerbear suggestionsEugenio Favalli1-2/+3
2005-04-21Items are now displayed using database image field, this way I could also ↵Eugenio Favalli1-4/+3
reduce a lot items.png size
2005-04-19A few random changes.Bjørn Lindeijer1-15/+11
2005-04-13getNumberOfSlotsUsed() tweaked a little. Still problems.Yohann Ferreira1-1/+1
2005-04-13Now getNumberOfSlotsUsed() return the number of different items a character has.Yohann Ferreira1-0/+15