Gave ordering to all Picture Warps magic tools

This commit is contained in:
Bill Kendrick 2024-01-16 22:28:49 -08:00
parent 3abf6f75f4
commit 9ce4ee8c50
8 changed files with 75 additions and 14 deletions

View file

@ -13,7 +13,7 @@
Panels, Tile mode of Zoom, and Rush
by Bill Kendrick
Copyright (c) 2014-2023
Copyright (c) 2014-2024
bill@newbreedsoftware.com
https://tuxpaint.org/
@ -32,7 +32,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>
@ -58,6 +58,7 @@ int perspective_get_tool_count(magic_api * api);
SDL_Surface *perspective_get_icon(magic_api * api, int which);
char *perspective_get_name(magic_api * api, int which);
int perspective_get_group(magic_api * api, int which);
int perspective_get_order(int which);
char *perspective_get_description(magic_api * api, int which, int mode);
@ -131,6 +132,14 @@ enum
perspective_NUM_TOOLS
};
int perspective_orders[perspective_NUM_TOOLS] = {
304,
302,
301,
300,
303,
};
enum
{
TOP_LEFT,
@ -226,6 +235,12 @@ int perspective_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_
return MAGIC_TYPE_PICTURE_WARPS;
}
// Return our order:
int perspective_get_order(int which)
{
return perspective_orders[which];
}
// Return our descriptions, localized:
char *perspective_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode ATTRIBUTE_UNUSED)
{