Gave ordering to all Artistic magic tools
This commit is contained in:
parent
b13674017a
commit
0353c5670d
7 changed files with 67 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Strings -- draws string art.
|
||||
|
||||
Last updated: December 29, 2023
|
||||
Last updated: January 16, 2024
|
||||
*/
|
||||
#include "tp_magic_api.h"
|
||||
#include "SDL_image.h"
|
||||
|
|
@ -60,6 +60,7 @@ int string_get_tool_count(magic_api * api);
|
|||
SDL_Surface *string_get_icon(magic_api * api, int which);
|
||||
char *string_get_name(magic_api * api, int which);
|
||||
int string_get_group(magic_api * api, int which);
|
||||
int string_get_order(int which);
|
||||
char *string_get_description(magic_api * api, int which, int mode);
|
||||
int string_requires_colors(magic_api * api, int which);
|
||||
void string_release(magic_api * api, int which,
|
||||
|
|
@ -148,6 +149,22 @@ int string_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSE
|
|||
return MAGIC_TYPE_ARTISTIC;
|
||||
}
|
||||
|
||||
int string_get_order(int which)
|
||||
{
|
||||
switch (which)
|
||||
{
|
||||
case STRING_TOOL_FULL_BY_OFFSET:
|
||||
return 9000;
|
||||
break;
|
||||
case STRING_TOOL_TRIANGLE:
|
||||
return 9001;
|
||||
break;
|
||||
default:
|
||||
return 9002;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
char *string_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode ATTRIBUTE_UNUSED)
|
||||
{
|
||||
switch (which)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue