summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
AgeCommit message (Collapse)AuthorFilesLines
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
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
2005-04-10adding binary version of selection.png and improving look of selectionEugenio Favalli1-7/+7