Gave ordering to all Painting magic tools
All done!
This commit is contained in:
parent
e3cb845426
commit
a9515c351e
18 changed files with 150 additions and 32 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
Credits: Andrew Corcoran <akanewbie@gmail.com>
|
||||
|
||||
Copyright (c) 2002-2023 by Bill Kendrick and others; see AUTHORS.txt
|
||||
Copyright (c) 2002-2024 by Bill Kendrick and others; see AUTHORS.txt
|
||||
bill@newbreedsoftware.com
|
||||
https://tuxpaint.org/
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: December 29, 2023
|
||||
Last updated: January 16, 2024
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -71,6 +71,10 @@ const int toothpaste_groups[toothpaste_NUM_TOOLS] = {
|
|||
MAGIC_TYPE_PAINTING,
|
||||
};
|
||||
|
||||
const int toothpaste_orders[toothpaste_NUM_TOOLS] = {
|
||||
2400,
|
||||
};
|
||||
|
||||
const char *toothpaste_descs[toothpaste_NUM_TOOLS] = {
|
||||
gettext_noop("Click and drag to squirt toothpaste onto your picture."),
|
||||
};
|
||||
|
|
@ -82,6 +86,7 @@ int toothpaste_get_tool_count(magic_api * api);
|
|||
SDL_Surface *toothpaste_get_icon(magic_api * api, int which);
|
||||
char *toothpaste_get_name(magic_api * api, int which);
|
||||
int toothpaste_get_group(magic_api * api, int which);
|
||||
int toothpaste_get_order(int which);
|
||||
char *toothpaste_get_description(magic_api * api, int which, int mode);
|
||||
static void do_toothpaste(void *ptr, int which, SDL_Surface * canvas, SDL_Surface * last, int x, int y);
|
||||
void toothpaste_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||
|
|
@ -186,6 +191,12 @@ int toothpaste_get_group(magic_api * api ATTRIBUTE_UNUSED, int which)
|
|||
return toothpaste_groups[which];
|
||||
}
|
||||
|
||||
// Return our orders:
|
||||
int toothpaste_get_order(int which)
|
||||
{
|
||||
return toothpaste_orders[which];
|
||||
}
|
||||
|
||||
// Return our descriptions, localized:
|
||||
char *toothpaste_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode ATTRIBUTE_UNUSED)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue