Emitter Magic tools: Icons

This commit is contained in:
Bill Kendrick 2024-12-26 21:11:28 -08:00
parent 3cd9e1cbfd
commit 32587d99a0
6 changed files with 2 additions and 3 deletions

View file

@ -11,7 +11,6 @@ https://tuxpaint.org/
---------------- ----------------
+ WIP: Heart, Sparkle, and Star emitters + WIP: Heart, Sparkle, and Star emitters
Click and drag to leave a short trail of shapes. Click and drag to leave a short trail of shapes.
- TODO: Icons
- TODO: Documentation - TODO: Documentation
Closes https://sourceforge.net/p/tuxpaint/feature-requests/266/ Closes https://sourceforge.net/p/tuxpaint/feature-requests/266/
- Code: Bill Kendrick <bill@newbreedsoftware.com> - Code: Bill Kendrick <bill@newbreedsoftware.com>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -246,11 +246,11 @@ int emitter_get_tool_count(magic_api *api ATTRIBUTE_UNUSED)
} }
// Load our icons: // Load our icons:
SDL_Surface *emitter_get_icon(magic_api *api, int which ATTRIBUTE_UNUSED) SDL_Surface *emitter_get_icon(magic_api *api, int which)
{ {
char fname[1024]; char fname[1024];
snprintf(fname, sizeof(fname), "%simages/magic/light.png", api->data_directory); // FIXME snprintf(fname, sizeof(fname), "%simages/magic/emitter%d_icon.png", api->data_directory, which);
return (IMG_Load(fname)); return (IMG_Load(fname));
} }