1 /***************************************************************************
5 copyright : (C) 2001 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
22 Text
*text
; /* contents */
24 /* screen geometry -- computed when displaying hint */
29 ====================================================================
30 Load/delete hint resources.
31 ====================================================================
34 void hint_delete_res();
37 ====================================================================
38 Create a hint. The passed x,y position is where the end of the
39 Sprechblasenspitze is. Contents is converted to lines (duplicated).
40 ====================================================================
42 Hint
* hint_create( int x
, int y
, char *contents
);
43 void hint_delete( Hint
*hint
);
46 ====================================================================
47 Set the background on which the hints will be displayed.
48 ====================================================================
50 void hint_set_bkgnd( SDL_Surface
*bkgnd
);
53 ====================================================================
54 Set this hint as actual one. If NULL was passed no hint will be
56 ====================================================================
58 void hint_set( Hint
*hint
);
61 ====================================================================
62 Set hint to this position.
63 ====================================================================
65 void hint_set_pos( Hint
*hint
, int x
, int y
);
68 ====================================================================
69 Update the contents of a hint.
70 ====================================================================
72 void hint_set_contents( Hint
*hint
, char *contents
);
75 ====================================================================
76 Show/hide/update _current_ hint.
77 ====================================================================
81 void hint_update( int ms
);