Support for masks for color fields

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@325 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-06 18:15:18 +00:00
parent 6625792b04
commit efa1992f4a
7 changed files with 95 additions and 37 deletions
+6
View File
@@ -63,6 +63,12 @@ IMPLEMENT_REFLECTION(ColorStyle) {
REFLECT(right_width);
REFLECT(top_width);
REFLECT(bottom_width);
REFLECT_N("mask", mask_filename);
}
bool ColorStyle::update(Context& ctx) {
return Style ::update(ctx)
| mask_filename.update(ctx);
}
// ----------------------------------------------------------------------------- : ColorValue
+9 -6
View File
@@ -58,12 +58,15 @@ class ColorStyle : public Style {
ColorStyle(const ColorFieldP& field);
DECLARE_STYLE_TYPE(Color);
int radius; ///< Radius of round corners
UInt left_width; ///< Width of the colored region on the left side
UInt right_width; ///< Width of the colored region on the right side
UInt top_width; ///< Width of the colored region on the top side
UInt bottom_width; ///< Width of the colored region on the bottom side
double radius; ///< Radius of round corners
double left_width; ///< Width of the colored region on the left side
double right_width; ///< Width of the colored region on the right side
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
virtual bool update(Context&);
private:
DECLARE_REFLECTION();
};