Gave ordering to all Distorts magic tools
This commit is contained in:
parent
f8a3eabd9d
commit
0532b35f31
17 changed files with 207 additions and 35 deletions
|
|
@ -7,7 +7,7 @@
|
|||
Inspired by "Night Sky Scene [Pen Parallax]" Scratch Project
|
||||
by -HexaScape- <https://scratch.mit.edu/users/-HexaScape->
|
||||
|
||||
Last updated: December 29, 2023
|
||||
Last updated: January 16, 2024
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -33,6 +33,12 @@ char *swirl_names[NUM_SWIRL_TOOLS] = {
|
|||
gettext_noop("Fur")
|
||||
};
|
||||
|
||||
int swirls_orders[NUM_SWIRL_TOOLS] = {
|
||||
200, /* within MAGIC_TYPE_DISTORTS */
|
||||
201, /* within MAGIC_TYPE_DISTORTS */
|
||||
0, /* FIXME */ /* within MAGIC_TYPE_PAINTING */
|
||||
};
|
||||
|
||||
char *swirl_descriptions[NUM_SWIRL_TOOLS][2] = {
|
||||
{
|
||||
gettext_noop("Click and drag to transform parts of your picture to circular brushstrokes."),
|
||||
|
|
@ -87,6 +93,7 @@ int swirls_get_tool_count(magic_api * api);
|
|||
SDL_Surface *swirls_get_icon(magic_api * api, int which);
|
||||
char *swirls_get_name(magic_api * api, int which);
|
||||
int swirls_get_group(magic_api * api, int which);
|
||||
int swirls_get_order(int which);
|
||||
char *swirls_get_description(magic_api * api, int which, int mode);
|
||||
int swirls_requires_colors(magic_api * api, int which);
|
||||
int swirls_modes(magic_api * api, int which);
|
||||
|
|
@ -151,7 +158,7 @@ char *swirls_get_name(magic_api * api ATTRIBUTE_UNUSED, int which)
|
|||
return strdup(gettext(swirl_names[which]));
|
||||
}
|
||||
|
||||
int swirls_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED)
|
||||
int swirls_get_group(magic_api * api ATTRIBUTE_UNUSED, int which)
|
||||
{
|
||||
if (which == SWIRL_TOOL_FUR)
|
||||
{
|
||||
|
|
@ -163,6 +170,11 @@ int swirls_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSE
|
|||
}
|
||||
}
|
||||
|
||||
int swirls_get_order(int which)
|
||||
{
|
||||
return swirls_orders[which];
|
||||
}
|
||||
|
||||
char *swirls_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode)
|
||||
{
|
||||
return strdup(gettext(swirl_descriptions[which][mode - 1]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue