summaryrefslogtreecommitdiff
path: root/src/gui/listbox.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-157/+0
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
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-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-8/+3
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-10Remove some tabs and trailing whitespaceJared Adams1-1/+1
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-1/+87
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-1/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-25Fixed up NPC list dialogs to be navigatable by keyboard (scrollingIra Rice1-0/+85
through the list requires the use of the mouse wheel at the moment), fixed wrapping behavior for wrapping around lists to actually wrap around lists properly, and placed a few checks for current_npc where they were assumed before which could cause the client to hang or crash in case the NPC is no longer around. Signed-off-by: Ira Rice <irarice@gmail.com>
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-2/+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-30Found a few more gui elements that didn't get exposed to transparencyIra Rice1-5/+13
updating. 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.
2009-01-15Style cleanups throughout most of the code. Splitting function type fromIra Rice1-2/+1
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-4/+2
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-07-18Import of client treeLloyd Bryant1-1/+1
2008-04-07Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except forBjørn Lindeijer1-21/+0
gcn::TabbedArea usage)
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-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-27/+6
2006-12-16Subclassed ShopListBox from ListBox to get rid of some duplicated code, andBjørn Lindeijer1-3/+4
fixed a problem with scrolling to the current selection. Also aligned the text a bit better and put the price in parenthesis.
2006-09-03Fixed updating of labels in buy and sell dialogs. Also made our listbox respondBjørn Lindeijer1-3/+54
to mouse dragging to change the selection.
2006-03-16A bunch of cosmetic changes.Björn Steinbrink1-5/+0
2005-08-28Prepare our source so that it'll survive a guichan header cleanup, should it ↵Björn Steinbrink1-0/+4
ever happen...
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-2/+0
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-10/+2
helper function for being creation to reduce code duplication. Some code simplifications.
2005-07-31Added check to stop scrolling at map borders. Small cleanup in the listbox ↵Björn Steinbrink1-15/+13
drawing code.
2005-07-27Committing merging opengl and sdl part 3 by AndrejBjørn Lindeijer1-0/+2
2005-07-26OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find aBjørn Lindeijer1-2/+10
nicer approach after the release.
2004-12-30Subclassed ListBox and TextBox for a little better visual appearance.Bjørn Lindeijer1-0/+60