Gave ordering to all Color Filter magic tools
This commit is contained in:
parent
4f9112d597
commit
b1bc736f77
7 changed files with 75 additions and 11 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
Credits: Andrew Corcoran <akanewbie@gmail.com> inspired by the Alien Map GIMP plugin
|
||||
|
||||
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 alien_groups[alien_NUM_TOOLS] = {
|
|||
MAGIC_TYPE_COLOR_FILTERS,
|
||||
};
|
||||
|
||||
const int alien_orders[alien_NUM_TOOLS] = {
|
||||
601,
|
||||
};
|
||||
|
||||
const char *alien_descs[alien_NUM_TOOLS][2] = {
|
||||
{gettext_noop("Click and drag the mouse to change the colors in parts of your picture."),
|
||||
gettext_noop("Click to change the colors in your entire picture."),},
|
||||
|
|
@ -83,6 +87,7 @@ int alien_get_tool_count(magic_api * api);
|
|||
SDL_Surface *alien_get_icon(magic_api * api, int which);
|
||||
char *alien_get_name(magic_api * api, int which);
|
||||
int alien_get_group(magic_api * api, int which);
|
||||
int alien_get_order(int which);
|
||||
char *alien_get_description(magic_api * api, int which, int mode);
|
||||
void alien_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||
SDL_Surface * last, int ox, int oy, int x, int y, SDL_Rect * update_rect);
|
||||
|
|
@ -150,6 +155,11 @@ int alien_get_group(magic_api * api ATTRIBUTE_UNUSED, int which)
|
|||
return alien_groups[which];
|
||||
}
|
||||
|
||||
int alien_get_order(int which)
|
||||
{
|
||||
return alien_orders[which];
|
||||
}
|
||||
|
||||
// Return our descriptions, localized:
|
||||
char *alien_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue