Text drawing now uses an AColor instead of a normal Color, so transparent text is possible.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@848 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-16 20:07:11 +00:00
parent d70c3d6d74
commit fdb3bda26e
7 changed files with 26 additions and 14 deletions
+3 -2
View File
@@ -12,6 +12,7 @@
#include <util/prec.hpp>
#include <util/real_point.hpp>
#include <script/scriptable.hpp>
#include <gfx/color.hpp>
DECLARE_POINTER_TYPE(Font);
@@ -40,8 +41,8 @@ class Font : public IntrusivePtrBase<Font> {
Scriptable<bool> underline; ///< Underlined?
double scale_down_to; ///< Smallest size to scale down to
double max_stretch; ///< How much should the font be stretched before scaling down?
Scriptable<Color> color; ///< Color to use
Scriptable<Color> shadow_color; ///< Color for shadow
Scriptable<AColor> color; ///< Color to use
Scriptable<AColor> shadow_color; ///< Color for shadow
RealSize shadow_displacement; ///< Position of the shadow
double shadow_blur; ///< Blur radius of the shadow
Color separator_color; ///< Color for <sep> text