Icons for "ASCII" art magic tools
This commit is contained in:
parent
7b58a651c6
commit
629c23897d
5 changed files with 6 additions and 7 deletions
|
|
@ -31,10 +31,9 @@ https://tuxpaint.org/
|
|||
<https://freesound.org/people/DigitalUnderglow/>
|
||||
+ Closes https://sourceforge.net/p/tuxpaint/feature-requests/260/
|
||||
|
||||
* WIP "ASCII Typewriter", "ASCII Computer", & "ASCII Color Computer":
|
||||
* "ASCII Typewriter", "ASCII Computer", & "ASCII Color Computer":
|
||||
turn your drawing into ASCII art.
|
||||
+ TODO Icons
|
||||
+ Code by Bill Kendrick <bill@newbreedsoftware.com>
|
||||
+ Code & icons by Bill Kendrick <bill@newbreedsoftware.com>
|
||||
+ Computer font: IBM CGA Adapter
|
||||
taken from "Typography in 16-bits: System fonts"
|
||||
<https://damieng.com/blog/2011/03/27/typography-in-16-bits-system-fonts/>
|
||||
|
|
|
|||
BIN
magic/icons/ascii_color_computer.png
Normal file
BIN
magic/icons/ascii_color_computer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7 KiB |
BIN
magic/icons/ascii_computer.png
Normal file
BIN
magic/icons/ascii_computer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
BIN
magic/icons/ascii_typewriter.png
Normal file
BIN
magic/icons/ascii_typewriter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
|
|
@ -53,9 +53,10 @@ char * ascii_tool_names[NUM_TOOLS + 1] = {
|
|||
gettext_noop("Color Computer"), // special version of "computer"
|
||||
};
|
||||
|
||||
char * ascii_tool_filenames[NUM_TOOLS] = {
|
||||
char * ascii_tool_filenames[NUM_TOOLS + 1] = {
|
||||
"typewriter",
|
||||
"computer",
|
||||
"color_computer",
|
||||
};
|
||||
|
||||
static Mix_Chunk *ascii_snd[NUM_TOOLS];
|
||||
|
|
@ -151,6 +152,7 @@ int ascii_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8
|
|||
ascii_bitmap[i] = NULL;
|
||||
}
|
||||
|
||||
/* (N.B. Computer & Color Computer share sound & bitmap) */
|
||||
for (i = 0; i < NUM_TOOLS; i++)
|
||||
{
|
||||
/* Load our sound */
|
||||
|
|
@ -308,9 +310,7 @@ SDL_Surface *ascii_get_icon(magic_api * api, int which)
|
|||
{
|
||||
char fname[1024];
|
||||
|
||||
/* FIXME */
|
||||
snprintf(fname, sizeof(fname), "%ssounds/magic/ascii-icon-%s.ogg", api->data_directory, ascii_tool_filenames[which]);
|
||||
snprintf(fname, sizeof(fname), "%simages/magic/xor.png", api->data_directory);
|
||||
snprintf(fname, sizeof(fname), "%simages/magic/ascii_%s.png", api->data_directory, ascii_tool_filenames[which]);
|
||||
|
||||
return (IMG_Load(fname));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue