Added 'combine' option to ColorStyle.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1069 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-05 20:43:11 +00:00
parent 8715b0472c
commit 9a68c91635
4 changed files with 5 additions and 1 deletions
+2
View File
@@ -52,6 +52,7 @@ ColorStyle::ColorStyle(const ColorFieldP& field)
, radius(0)
, left_width(100000), right_width (100000)
, top_width (100000), bottom_width(100000)
, combine(COMBINE_NORMAL)
{}
IMPLEMENT_REFLECTION(ColorStyle) {
@@ -62,6 +63,7 @@ IMPLEMENT_REFLECTION(ColorStyle) {
REFLECT(top_width);
REFLECT(bottom_width);
REFLECT_N("mask", mask_filename);
REFLECT(combine);
}
int ColorStyle::update(Context& ctx) {
+1
View File
@@ -62,6 +62,7 @@ class ColorStyle : public Style {
double top_width; ///< Width of the colored region on the top side
double bottom_width; ///< Width of the colored region on the bottom side
Scriptable<String> mask_filename; ///< Filename of an additional mask over the images
Scriptable<ImageCombine> combine; ///< How to combine image with the background
virtual int update(Context&);
};