summaryrefslogtreecommitdiff
path: root/src/gui/skin.h
AgeCommit message (Collapse)AuthorFilesLines
2009-09-02Added a minimum alpha opacity value handle in SkinLoader and made use of it.Bertram1-2/+20
Part 1 of 3 for Mantis #847 Only a few controls follow minimum opacity value at login stage. Part 2 will make all other controls do the same. Part 3 will try to set default gui opacity value as a constant.
2009-04-15Made the PopupMenu a Popup subclassBjørn Lindeijer1-4/+7
It's a natural better fit. The SkinLoader was changed into a singleton, since it's used by both Window and Popup classes.
2009-04-13Some cleanup of the SkinLoaderBjørn Lindeijer1-27/+21
Mainly stopped it from parsing the skin XML files over and over again, but also fixed Skin leaking sticky button images and made some optimizations. The Skin class still has an 'instances' member which could be used for cleanup in theory, but is unused at the moment.
2009-03-28Add a sticky button to the Window classJared Adams1-1/+9
The Minimap window uses this so you can froce it to always be open. The Minimap toggle button can be used to show or hide it temporarily, as warping will reset it's visibility based on the sticky state and weather the 'new' map has a minimap.
2009-03-27Fixed copyright notices of skin.{h,cpp} filesBjørn Lindeijer1-11/+15
Also some code prettyfication.
2009-03-26Compile warning fixesBjørn Lindeijer1-2/+2
Mostly unsigned/signed mismatches and an unused variable.
2009-03-25Modified skin loading to save and load a skin's XML path, as well asIra Rice1-2/+9
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-0/+18
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/+37
skin variables public. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice1-0/+67
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>