summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-29Removed underscores from some non-conforming filenamesBjørn Lindeijer1-82/+0
We don't use underscores in the filenames generally, and let's be consistent on that matter.
2009-04-20Reduced the weight of a few gui windows and popups which wrapped theirIra Rice1-11/+3
TextBoxes in ScrollAreas, but never needed to scroll (and disabled both the horizontal and vertical scrollbars, which makes using a scrollarea kind of pointless to begin with). Signed-off-by: Ira Rice <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-12Cleaned up the ItemPopup class a bitBjørn1-5/+0
Removed methods updateColors, getItemName and getNumRows. The last one was also removed from some other classes.
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-7/+9
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-27Merge branch 'aethyra/master'Bjørn Lindeijer1-22/+16
Conflicts: src/beingmanager.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/label.cpp src/gui/label.h src/gui/popup.cpp src/gui/popup.h src/gui/scrollarea.cpp src/gui/skin.cpp src/gui/skin.h src/gui/speechbubble.cpp src/gui/window.cpp src/gui/window.h src/localplayer.h src/main.cpp src/net/ea/playerhandler.cpp src/resources/ambientoverlay.h src/resources/dye.cpp src/resources/imagewriter.cpp src/resources/itemdb.cpp src/shopitem.cpp
2009-03-26Some code cleanups (mostly reducing how many calculations need to beIra Rice1-22/+16
done in certain statements, rearranging arguements to make them look cleaner, or overall making the code slightly more flexible) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-19Make sure positionable dialogs start out centeredJared Adams1-1/+1
2009-03-10Remove some tabs and trailing whitespaceJared Adams1-3/+3
2009-03-10Remove some tabs and trailing whitespaceJared Adams1-3/+3
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-7/+8
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-7/+8
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-15Removed unnecessary parenthesis at constructorsBjørn Lindeijer1-1/+1
When not passing any parameters to constructors, there is no reason for using parenthesis.
2009-02-15Fixes some variable names to conform to naming conventionBjørn Lindeijer1-1/+1
Please do remember that member variables are prefixes with 'm', so that they are easily distinguishable.
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-09Mostly whitespace fixesBjørn Lindeijer1-1/+1
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-4/+6
Conflicts: A lot of files...
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-1/+1
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-2/+5
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-01-28Consolidated setMinWidth into textWrap, since all lines are dependantIra Rice1-2/+1
upon knowing what dimension they have to wrap to or beat in order for text wrapping to work. By adding this to be initiated at the same time as the text wrapping is done, this should decrease visual artifacts caused by not initializing it properly to begin with. Also made the item popups compact to the minimum dimension. 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-06Added support for internationalizationIra Rice1-1/+3
Merged from the mainline client. Originally implemented by Guillaume Melquiond, starting with commit 1828eee6a6d91fd385ad1e69d93044516493aa91. Conflicts: INSTALL configure.ac src/Makefile.am src/gui/buy.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/login.cpp src/gui/menuwindow.cpp src/gui/minimap.cpp src/gui/ok_dialog.cpp src/gui/popupmenu.cpp src/gui/register.cpp src/gui/sell.cpp src/gui/setup.cpp src/gui/setup_video.cpp 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-10-28Fixed up confirm dialogues so that they also can utilize the text Ira Rice1-1/+0
wrapping code, like the ok dialogues.
2008-10-28Fixed OK dialogue so that it draws correctly for multiple lines Ira Rice1-1/+1
(forgot to do button padding before).
2008-10-25Made the ok dialogue use code that's similar to the speech bubble, so Ira Rice1-14/+40
that it can take advantage of the text box's wrapping code.
2008-07-18Import of client treeLloyd Bryant1-1/+1
2007-01-14Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).Bjørn Lindeijer1-3/+3
2006-12-03Made NPC names visible. Windows are now invisible by default.Bjørn Lindeijer1-1/+2
2006-08-13Merged Guichan 0.5.0 support from guichan-0.5.0 branch, plus several updatesBjørn Lindeijer1-2/+2
from the 0.1.0 branch.
2006-03-09Made the Button ctor accept eventId and action listener.Björn Steinbrink1-4/+1
2006-02-01Made the OkDialog and ConfirmDialog classes proxies for their buttons' ↵Björn Steinbrink1-4/+8
events. Removed the RequestTradeWindow class, replaced with a plain ConfirmDialog. Fixed a memory leak along the way.
2006-01-30A few cleanups and simplifications.Björn Steinbrink1-21/+6
2006-01-04Reverted r0nny changes, enabled 3 slots to create players, smoothed player ↵Eugenio Favalli1-6/+6
deletion.
2005-10-20Various cleanups and refactorisations.Björn Steinbrink1-2/+2
2005-10-18Added automatic widget cleanup to the window class.Björn Steinbrink1-6/+4
2005-09-20Fixed use of Enter for closing death and weight notices, and changed glColor4fBjørn Lindeijer1-5/+4
to glColor4ub.
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-0/+4
2005-05-19Made item amount window a modal dialog and removed support for old map format.Bjørn Lindeijer1-3/+3
2005-03-20TMW now uses latest Guichan CVS, and doesn't work with Guichan 0.2.0 anymore!Bjørn Lindeijer1-1/+1
Also fixed a crash on clicking wallpaper in login phase.
2005-01-13Got rid of Allegro ok dialog completely. Now just the yes_no dialog remaining.Bjørn Lindeijer1-5/+9
2005-01-11Implemented parent relationship for Window class and converted more ok dialogsBjørn Lindeijer1-2/+14
to the OkDialog class.
2005-01-08Some improvements to character creation and selection dialogs.Bjørn Lindeijer1-7/+15
2005-01-08Well improved window container and window widgets a bit, and made a startBjørn Lindeijer1-2/+5
on support for modal dialogs. Still some issues to work out. Tell me if you experience something unsettling.
2004-12-28Simplified graphic engineEugenio Favalli1-4/+4
2004-12-27Added AUTHORS.txt file, $Id$ tags to gui source files and added OkButtonBjørn Lindeijer1-2/+2
modules to file lists.
2004-12-27Ok dialog (still to complete)Eugenio Favalli1-0/+56