'Starters' get green button backgrounds in 'Open' dialog.

Added mention of 'Starters' to readme (still needs work).
This commit is contained in:
William Kendrick 2004-09-15 07:29:08 +00:00
parent ddb397670a
commit 3a254a81e0
2 changed files with 67 additions and 12 deletions

View file

@ -23,7 +23,7 @@ New Breed Software</p>
<p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br> <p><a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a><br>
<a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p> <a href="http://www.newbreedsoftware.com/tuxpaint/">http://www.newbreedsoftware.com/tuxpaint/</a></p>
<p>June 14, 2002 - September 14, 2004</p> <p>June 14, 2002 - September 15, 2004</p>
</center> </center>
<hr size=2 noshade> <hr size=2 noshade>
@ -1752,6 +1752,19 @@ New Breed Software</p>
</ul> </ul>
</blockquote> </blockquote>
<p>Along with pictures you've created, Tux&nbsp;Paint can provided
'Starter' images. Opening them is like creating a new picture,
except that the picture isn't blank. 'Starters' can be like a page
from a coloring book (a black-and-white outline of a picture, which
you can then color in), or like a 3D photograph, where you draw
the bits in between.</p>
<p>'Starter' images have a green background in the 'Open' screen.
(Normal images have a blue background.) When you load a 'Starter,'
draw on it, and then click 'Save,' it creates a new picture
(it doesn't overwrite the original 'Starter,' so you can use it
again later).</p>
<p>If choose to open a picture, and your current drawing hasn't been <p>If choose to open a picture, and your current drawing hasn't been
saved, you will be prompted as to whether you want to save it or not. saved, you will be prompted as to whether you want to save it or not.
(See "<a href="#save">Save</a>," below.)</p> (See "<a href="#save">Save</a>," below.)</p>
@ -2090,8 +2103,8 @@ New Breed Software</p>
<h3>Personal Files</h3> <h3>Personal Files</h3>
<blockquote> <blockquote>
<p>You can also create brushes, stamps and fonts in your own directory <p>You can also create brushes, stamps, fonts and 'starters' in your
for Tux&nbsp;Paint to find.</p> own directory for Tux&nbsp;Paint to find.</p>
<h4>Linux and Unix</h4> <h4>Linux and Unix</h4>
<blockquote> <blockquote>
@ -2119,10 +2132,11 @@ New Breed Software</p>
</blockquote> </blockquote>
<p>To add brushes, stamps and fonts, create subdirectories under <p>To add brushes, stamps fonts, and 'starters,' create subdirectories
your personal Tux&nbsp;Paint directory named under your personal Tux&nbsp;Paint directory named
"<code><b>brushes</b></code>", "<code><b>stamps</b></code>" and "<code><b>brushes</b></code>", "<code><b>stamps</b></code>",
"<code><b>fonts</b></code>", respectively.</p> "<code><b>fonts</b></code>" and
"<code><b>starters</b></code>" respectively.</p>
<p>(For example, if you created a brush named "<code>flower.png</code>", <p>(For example, if you created a brush named "<code>flower.png</code>",
you would put it in "<code>~/.tuxpaint/brushes/</code>" under Linux or you would put it in "<code>~/.tuxpaint/brushes/</code>" under Linux or
@ -2380,6 +2394,25 @@ New Breed Software</p>
<br clear=all> <br clear=all>
</blockquote> </blockquote>
<hr size=1 noshade>
<h2>'Starters'</h2>
<blockquote>
<img src="images/open_open.png" width=48 height=48 alt="" align=right>
<p>FIXME: To be written!</p>
<p>Place them in the "<code><b>starters</b></code>" directory.
When the 'Open' dialog is accessed in Tux&nbsp;Paint, the 'starter'
images will appear at the beginning of the list. They can't be saved
over, since loading a 'starter' is really like creating a new image,
but instead of being blank, there's already something there to work
with.</p>
<br clear=all>
</blockquote>
</blockquote> </blockquote>
<hr size=2 noshade> <hr size=2 noshade>

View file

@ -468,6 +468,7 @@ SDL_Surface * img_btn_up, * img_btn_down, * img_btn_off;
SDL_Surface * img_yes, * img_no; SDL_Surface * img_yes, * img_no;
SDL_Surface * img_open, * img_erase, * img_back; SDL_Surface * img_open, * img_erase, * img_back;
SDL_Surface * img_cursor_up, * img_cursor_down; SDL_Surface * img_cursor_up, * img_cursor_down;
SDL_Surface * img_cursor_starter_up, * img_cursor_starter_down;
SDL_Surface * img_scroll_up, * img_scroll_down; SDL_Surface * img_scroll_up, * img_scroll_down;
SDL_Surface * img_scroll_up_off, * img_scroll_down_off; SDL_Surface * img_scroll_up_off, * img_scroll_down_off;
SDL_Surface * img_paintcan; SDL_Surface * img_paintcan;
@ -5149,6 +5150,11 @@ void setup(int argc, char * argv[])
img_cursor_up = loadimage(DATA_PREFIX "images/ui/cursor_up.png"); img_cursor_up = loadimage(DATA_PREFIX "images/ui/cursor_up.png");
img_cursor_down = loadimage(DATA_PREFIX "images/ui/cursor_down.png"); img_cursor_down = loadimage(DATA_PREFIX "images/ui/cursor_down.png");
#endif #endif
img_cursor_starter_up = loadimage(DATA_PREFIX
"images/ui/cursor_starter_up.png");
img_cursor_starter_down = loadimage(DATA_PREFIX
"images/ui/cursor_starter_down.png");
img_scroll_up = loadimage(DATA_PREFIX "images/ui/scroll_up.png"); img_scroll_up = loadimage(DATA_PREFIX "images/ui/scroll_up.png");
img_scroll_down = loadimage(DATA_PREFIX "images/ui/scroll_down.png"); img_scroll_down = loadimage(DATA_PREFIX "images/ui/scroll_down.png");
@ -8856,6 +8862,9 @@ void cleanup(void)
free_surface( &img_cursor_up ); free_surface( &img_cursor_up );
free_surface( &img_cursor_down ); free_surface( &img_cursor_down );
free_surface( &img_cursor_starter_up );
free_surface( &img_cursor_starter_down );
free_surface( &img_scroll_up ); free_surface( &img_scroll_up );
free_surface( &img_scroll_down ); free_surface( &img_scroll_down );
free_surface( &img_scroll_up_off ); free_surface( &img_scroll_up_off );
@ -10106,14 +10115,27 @@ int do_open(int want_new_tool)
dest.x = THUMB_W * ((i - cur) % 4) + 96; dest.x = THUMB_W * ((i - cur) % 4) + 96;
dest.y = THUMB_H * ((i - cur) / 4) + 24; dest.y = THUMB_H * ((i - cur) / 4) + 24;
if (i == which) if (d_places[i] == PLACE_SAVED_DIR)
{ {
SDL_BlitSurface(img_cursor_down, NULL, screen, &dest); if (i == which)
debug(d_names[i]); {
SDL_BlitSurface(img_cursor_down, NULL, screen, &dest);
debug(d_names[i]);
}
else
SDL_BlitSurface(img_cursor_up, NULL, screen, &dest);
} }
else else
SDL_BlitSurface(img_cursor_up, NULL, screen, &dest); {
if (i == which)
{
SDL_BlitSurface(img_cursor_starter_down, NULL, screen, &dest);
debug(d_names[i]);
}
else
SDL_BlitSurface(img_cursor_starter_up, NULL, screen, &dest);
}