Emitter Magic tools: Icons
This commit is contained in:
parent
3cd9e1cbfd
commit
32587d99a0
6 changed files with 2 additions and 3 deletions
|
|
@ -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 |
BIN
magic/icons/emitter0_icon.png
Normal file
BIN
magic/icons/emitter0_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
magic/icons/emitter1_icon.png
Normal file
BIN
magic/icons/emitter1_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5 KiB |
BIN
magic/icons/emitter2_icon.png
Normal file
BIN
magic/icons/emitter2_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue