From: Bill Kendrick <nbs@so...> - 2008-07-09 02:53:43
Tux Paint's Magic tools now have _modes() functions, which act
similar to the "_requires_colors()" function. It tells Tux Paint what
mode(s) the tool can work in.
The current options are simply:
and, of course, both:
MODE_PAINT | MODE_FULLSCREEN
Users are presented with two buttons, below the scroling list of tools,
one for each of these modes. (One or the other appears greyed out if your
Magic tool only supports one mode. "Flowers", for example, will only ever
do MODE_PAINT, I think.)
I expanded the "Negative" tool to utilize this new feature.
A number of other tools could benefit, too.
For simplifyng the UI for younger kids, you can use "--nomagiccontrols"
(or "nomagiccontrols=yes" in the config file.)
(I still need to add an option to control this feature in Tux Paint Config.)
It's in CVS. Enjoy!
"Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux!
Download it today! http://www.tuxpaint.org/
From: Bill Kendrick <nbs@so...> - 2008-07-09 04:38:37
On Tue, Jul 08, 2008 at 07:53:52PM -0700, Bill Kendrick wrote:
> Tux Paint's Magic tools now have _modes() functions, which act
> similar to the "_requires_colors()" function. It tells Tux Paint what
> mode(s) the tool can work in.
Furthermore, "_get_description()" is now given a 'mode' value
(and called that many more times, if your plugin's tool(s) supports
more than one tool).
This lets your tool have diff. descriptions depending on the mode
(i.e., "Click and drag to ..." vs. "Click to ... the entire picture.")