summaryrefslogtreecommitdiff
path: root/src/gui/popup.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-177/+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-3/+0
The draw() method of a widget isn't called when a widget is not visible.
2009-03-27Merge branch 'aethyra/master'Bjørn Lindeijer1-63/+35
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-26Removed setting and getting parent windows for popup classes, as thisIra Rice1-8/+1
wasn't really useful or used at all. Also removed some unneeded includes in the popup class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-26Removed getting and setting a parent window from the popup class, sinceIra Rice1-4/+1
this currently does not provide any useful functionality to popups, as well as doing anything for that matter. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-26Compile warning fixesBjørn Lindeijer1-4/+4
Mostly unsigned/signed mismatches and an unused variable.
2009-03-26Some code cleanups (mostly reducing how many calculations need to beIra Rice1-4/+2
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-25A host of code style fixesBjørn Lindeijer1-7/+6
Mostly putting & and * in the right place and making some getters const.
2009-03-25Fixed some headers of recently added filesBjørn Lindeijer1-3/+3
2009-03-25Modified skin loading to save and load a skin's XML path, as well asIra Rice1-1/+32
modified the skin loading method to take a default value, in case the value in the configuration file fails to load for one reason or another. While this doesn't directly expose skinning on a per window basis to the user at the moment, it does allow people to change what skins get loaded with which windows now without needing to modify the code. TODO: Determine a decent approach to allowing the user to change their window skins in game, as well as moving all widget skin loading to the skin class (for instance, the button skins, progressbar skins, etc.) so that different skin configurations can use different widget skins. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-25Moved the responsibility for skin alpha adjustment to the Skin class.Ira Rice1-48/+0
This fixes a break that occured where skins wouldn't update in real time in the client, due to being passed a reference, rather than getting the skin itself. Signed-off-by: Ira Rice <shogun@odin.(none)>
2009-03-11Enforce minimum widths and heights to be at least as big as the minumumIra Rice1-2/+2
width and height for the skin used. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Modified Skin class to use proper encapsulation, instead of leaving itsIra Rice1-3/+3
skin variables public. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Removed widget listeners from the popup class. Tests have shown that atIra Rice1-2/+0
least for popup type functionality, this isn't needed. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Added a new Popup class, which overall is functionally similar to theIra Rice1-0/+211
Window class, but stripped down to the bare essential functionality to just draw and position them. This means no resizing, no close buttons, no ability to move them, etc. This should help reduce the overhead in drawing speech bubbles, as well as other popup type dialogs, but is also not a drop in replacement for the Window class as well. Signed-off-by: Ira Rice <irarice@gmail.com>