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 @@
|
|||
|
||||
Albert Cahalan <albert@users.sf.net>
|
||||
|
||||
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>
|
||||
|
|
@ -62,6 +62,7 @@ int bricks_get_tool_count(magic_api * api);
|
|||
SDL_Surface *bricks_get_icon(magic_api * api, int which);
|
||||
char *bricks_get_name(magic_api * api, int which);
|
||||
int bricks_get_group(magic_api * api, int which);
|
||||
int bricks_get_order(int which);
|
||||
char *bricks_get_description(magic_api * api, int which, int mode);
|
||||
void bricks_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||
SDL_Surface * last, int ox, int oy, int x, int y, SDL_Rect * update_rect);
|
||||
|
|
@ -141,6 +142,12 @@ int bricks_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSE
|
|||
return MAGIC_TYPE_PAINTING;
|
||||
}
|
||||
|
||||
// Return our order:
|
||||
int bricks_get_order(int which)
|
||||
{
|
||||
return 100 + which;
|
||||
}
|
||||
|
||||
// Return our descriptions, localized:
|
||||
char *bricks_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode ATTRIBUTE_UNUSED)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue