summaryrefslogtreecommitdiff
path: root/src/gui/shoplistbox.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-03-28Removed a lot of useless isVisible() checksBjørn Lindeijer1-1/+1
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27Removed all the static initializations of mAlphaBjørn Lindeijer1-1/+1
They happened before the configuration was initialized, so that didn't make any sense. It never showed up as a problem since the value is constantly set in the draw methods anyway.
2009-03-27Include statement cleanup for net/ea/ directory.Bjørn Lindeijer1-7/+8
2009-03-12Make use of the new available colorsMajin Sniper1-1/+1
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-12Extending the internal handling of colorssniper1-13/+20
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-1/+1
Conflicts: src/being.cpp src/being.h src/floor_item.cpp src/floor_item.h src/flooritemmanager.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/popupmenu.cpp src/net/beinghandler.cpp src/npc.cpp
2009-03-05Made some optimizations based on some profiling done by Octalot, as wellIra Rice1-1/+1
as some other optimizations that I could see that cut down on some unneeded redraws, which in turn improved frame rates slightly. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Merge branch 'aethyra/master'Bjørn Lindeijer1-9/+0
Conflicts: data/graphics/images/login_wallpaper.png src/being.cpp src/beingmanager.cpp src/engine.cpp src/game.cpp src/gui/buysell.cpp src/gui/buysell.h src/gui/gui.h src/gui/npc_text.cpp src/gui/npc_text.h src/gui/npcintegerdialog.cpp src/gui/npclistdialog.cpp src/gui/npclistdialog.h src/gui/npcstringdialog.cpp src/gui/sell.cpp src/gui/shop.cpp src/gui/table.cpp src/net/beinghandler.cpp src/net/npchandler.cpp src/net/playerhandler.cpp src/npc.cpp src/npc.h src/shopitem.cpp src/shopitem.h src/utils/stringutils.cpp src/utils/stringutils.h src/utils/trim.h
2009-02-26Fixed an error in shoplistboxes as identified by Octalot.Ira Rice1-9/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-22Highlight unbuyable items in redJared Adams1-8/+7
2009-02-11Shut up some compiler warnings.Philipp Sehmisch1-1/+1
2009-02-11Shut up some compiler warnings.Philipp Sehmisch1-1/+1
2009-02-11Changed spelling from colour to color.Philipp Sehmisch1-4/+4
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Fixed some accidental capitalization errorsPhilipp Sehmisch1-3/+3
2009-02-10fixed capitalization of color member functions.Philipp Sehmisch1-3/+3
2009-02-10Changed spelling from colour to color.Philipp Sehmisch1-4/+4
2009-02-04Few more unneeded headers that weren't noticed originally in the lastIra Rice1-1/+0
commit. Also, while the overall performance improved a little, it doesn't appear to be as drastic as the last commit was suggesting. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-3/+1
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-03Made highlights configurable through the color dialog.Ira Rice1-1/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-30Made the shoplist box alpha blend.Ira Rice1-3/+11
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-26Adjusted selection colors so that it blends better with the AethyraIra Rice1-1/+1
theme. 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.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-6/+4
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-06-12Merged revisions 3738 via svnmerge from Bjørn Lindeijer1-2/+2
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-09Fixed problem with row height in shop list box.Bjørn Lindeijer1-29/+0
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-4/+6
gcn::TabbedArea usage)
2007-12-21Fixed shop list box not to scroll up when the selection is removed.Bjørn Lindeijer1-2/+2
2007-11-20Merged revisions 3642,3662-3664,3667 via svnmerge from Bjørn Lindeijer1-0/+1
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk ........ r3642 | gmelquio | 2007-10-19 19:46:46 +0200 (Fri, 19 Oct 2007) | 1 line Factored code between resource handlers. Implemented failure-friendly sprite loader. ........ r3662 | gmelquio | 2007-10-21 21:01:16 +0200 (Sun, 21 Oct 2007) | 1 line Added persistent positioning. ........ r3663 | gmelquio | 2007-10-21 21:03:43 +0200 (Sun, 21 Oct 2007) | 1 line Fixed missing pixels at bottom and right. ........ r3664 | gmelquio | 2007-10-21 21:05:56 +0200 (Sun, 21 Oct 2007) | 1 line Changed to use default values when restoring missing settings. ........ r3667 | gmelquio | 2007-10-21 22:09:08 +0200 (Sun, 21 Oct 2007) | 1 line Fixed invisible text in dropboxes and shopboxes. ........
2007-09-12Allowed selection of items that cannot be afforded, so that their descriptionsBjørn Lindeijer1-18/+2
are still accessible. Also made sure the player's money value of ShopItemList gets updated.
2007-01-23Upgraded to Guichan 0.6.1.Bjørn Lindeijer1-1/+1
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-3/+3
2006-12-24Major rendering performance increase in software mode, by not using RLEBjørn Lindeijer1-1/+5
compression on loaded images while most of the time, we're only drawing a small subimage of them. Also, don't try to draw an icon when it is not defined or failed to load properly.
2006-12-16Subclassed ShopListBox from ListBox to get rid of some duplicated code, andBjørn Lindeijer1-89/+49
fixed a problem with scrolling to the current selection. Also aligned the text a bit better and put the price in parenthesis.
2006-11-05A final fix to secure the shoplistbox.Yohann Ferreira1-1/+1
2006-11-05Added item's pictures in sell dialogs, and precisions about the total money ↵Yohann Ferreira1-2/+11
in it.
2006-11-05Added pictures to items in buy dialogs. Also too expensive items are ↵Yohann Ferreira1-0/+191
highlighted in gray and can't be selected.