X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_example%2Ffilledrect.cpp;h=20baf14653a0437f62f91eb037d9346255abcd3d;hb=42e8f249832b9ca81691bbf76a6668aa4612117f;hp=329012f3330cb731b99c7a4c18ccc354419440cb;hpb=2c8b494c41e7258d1ae041fc28acc5f07816d5a4;p=synfig.git diff --git a/synfig-core/src/modules/mod_example/filledrect.cpp b/synfig-core/src/modules/mod_example/filledrect.cpp index 329012f..20baf14 100644 --- a/synfig-core/src/modules/mod_example/filledrect.cpp +++ b/synfig-core/src/modules/mod_example/filledrect.cpp @@ -66,7 +66,7 @@ SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$"); /* === E N T R Y P O I N T ================================================= */ FilledRect::FilledRect(): - Layer_Composite(1.0,Color::BLEND_STRAIGHT), + Layer_Composite(1.0,Color::BLEND_COMPOSITE), color(Color::black()), point1(0,0), point2(1,1), @@ -75,6 +75,8 @@ FilledRect::FilledRect(): bevel(0), bevCircle(0) { + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -115,6 +117,7 @@ FilledRect::get_param_vocab()const ret.push_back(ParamDesc("color") .set_local_name(_("Color")) + .set_description(_("Fill color of the layer")) ); ret.push_back(ParamDesc("point1") @@ -136,10 +139,12 @@ FilledRect::get_param_vocab()const ret.push_back(ParamDesc("bevel") .set_local_name(_("Bevel")) + .set_description(_("Use Bevel for the corners")) ); ret.push_back(ParamDesc("bevCircle") .set_local_name(_("Keep Bevel Circular")) + .set_description(_("When checked the bevel is circular")) ); return ret;