mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
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:
@@ -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) {
|
||||
|
||||
@@ -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&);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user