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 @@
|
|||
Credits: Adam 'foo-script' Rakowski <foo-script@o2.pl>
|
||||
and Bill Kendrick <bill@newbreedsoftware.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/
|
||||
|
||||
|
|
@ -26,7 +26,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 "tp_magic_api.h"
|
||||
|
|
@ -43,6 +43,11 @@ enum
|
|||
NUM_TV_TOOLS
|
||||
};
|
||||
|
||||
int tv_orders[NUM_TV_TOOLS] = {
|
||||
2000,
|
||||
2001,
|
||||
};
|
||||
|
||||
Mix_Chunk *tv_snd;
|
||||
|
||||
Uint32 tv_api_version(void);
|
||||
|
|
@ -53,6 +58,7 @@ int tv_get_tool_count(magic_api * api);
|
|||
SDL_Surface *tv_get_icon(magic_api * api, int which);
|
||||
char *tv_get_name(magic_api * api, int which);
|
||||
int tv_get_group(magic_api * api, int which);
|
||||
int tv_get_order(int which);
|
||||
char *tv_get_description(magic_api * api, int which, int mode);
|
||||
int tv_requires_colors(magic_api * api, int which);
|
||||
void tv_release(magic_api * api, int which,
|
||||
|
|
@ -124,6 +130,11 @@ int tv_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED)
|
|||
return MAGIC_TYPE_DISTORTS;
|
||||
}
|
||||
|
||||
int tv_get_order(int which)
|
||||
{
|
||||
return tv_orders[which];
|
||||
}
|
||||
|
||||
char *tv_get_description(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode)
|
||||
{
|
||||
if (mode == MODE_PAINT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue