summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-3/+3
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
2010-03-05Rename SkinLoader to ThemeJared Adams1-11/+7
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-7/+5
The older gray theme and the new wood theme are available as themes. The gray theme needs some new graphics for hilights. Add a theme option for branding and add path/to/branding/data to the PhysFS search path. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-14Fixed DropDowns not collapsing when an item was clicked on, or enter orTametomo1-21/+26
space was pressed. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-14Release modal mouse focus in DropDowns when focus is lost. If notTametomo1-0/+6
released, this can cause the user to think that the client has frozen up when dialogs such as the quit dialog take modal focus. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-14Fixed duplicating of up and down actions with the dropdown widget. (itTametomo1-2/+4
used to get one event from the dropdown, then another from the listbox if dropped down. Otherwise, it only got one from the dropdown) Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-08Delete models explicitly rather than relying on booleansThorbjørn Lindeijer1-2/+2
It is more clear in the end. Also fixed deleting of the mode list model.
2010-02-07Cleanup some memory issuesJared Adams1-2/+2
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-11Cleanup GUI classesJared Adams1-5/+5
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2009-09-03Resolved Mantis #847: Login stage Windows won't go less than the default gui ↵Bertram1-9/+18
opacity. Of course, in-game, the wanted opacity still shows up.
2009-05-14Don't apply GUI opacity to the selected value of a DropDownBjørn Lindeijer1-3/+3
2009-04-20Fixed key handling in dropdowns when the dropdown portion isn't visible.Tametomo1-0/+46
Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15Right, our ScrollArea deletes its contentBjørn Lindeijer1-1/+0
Fixes crash on closing login dialog...
2009-04-15Have the DropDown create its ScrollArea and ListBoxBjørn Lindeijer1-15/+10
And also clean them up again. Fixes some memory leaks and simplifies the code. Also got rid of the basically unused "opaque" setting of DropDown.
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-2/+3
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-3/+0
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-26First batch of include cleanupBjørn Lindeijer1-10/+10
Since the relative includes are getting ugly and somewhat inconvenient, we'll switch to includes relative to the project root. We've done this for a while already with tmwserv. Another rule which we've always had but was never written down, is that each source file first includes its own header. This is common practice and ensures each header compiles without needing other stuff to be included first. Somebody using Code::Blocks might want to fix the project file by adding the 'src' directory to the list of include paths.
2009-03-25Don't crash cause of deleting a model twiceBjørn Lindeijer1-3/+0
This reverts commit c2e4a7a70971355f1446bb01053af8a1da8c98e1.
2009-03-12Make use of the new available colorsMajin Sniper1-10/+6
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-12/+9
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-11Fix a memory leak in dropdownJared Adams1-0/+3
2009-03-10Remove some tabs and trailing whitespaceJared Adams1-3/+3
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-10/+12
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-10/+12
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-15Fixed header copyright notices.Ira Rice1-2/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-15More copyright header fixesBjørn Lindeijer1-1/+1
2009-02-15Merge commit 'aethyra/master'Bjørn Lindeijer1-3/+3
Conflicts: CMakeLists.txt configure.ac data/help/header.txt packaging/windows/setup.nsi po/POTFILES.in src/being.cpp src/being.h src/game.cpp src/gui/color.cpp src/gui/color.h src/gui/equipmentwindow.h src/gui/popupmenu.cpp src/gui/recorder.cpp src/gui/setup_colors.h src/gui/setup_keyboard.cpp src/gui/setup_keyboard.h src/gui/skill.cpp src/gui/speechbubble.cpp src/gui/speechbubble.h src/gui/table.cpp src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/main.cpp src/main.h src/map.cpp src/resources/colordb.cpp src/resources/colordb.h src/resources/emotedb.cpp src/resources/emotedb.h src/text.cpp src/text.h src/tmw.rc src/winver.h
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-2/+2
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-6/+6
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-1/+1
2009-02-10fixed capitalization of color member functions.Philipp Sehmisch1-1/+1
2009-02-10Changed spelling from colour to color.Philipp Sehmisch1-3/+3
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-0/+2
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-03Modified the dropdown class to handle opacity.Ira Rice1-12/+46
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-2/+0
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-09-25Merged the Tametomo branch into trunk.Ira Rice1-1/+1
2008-07-18Import of client treeLloyd Bryant1-0/+169