- This wiki is out of date, use the continuation of this wiki instead
Text
From FenixWiki
(Difference between revisions)
| Revision as of 09:02, 7 August 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 09:05, 7 August 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
| Line 1: | Line 1: | ||
| == Definition == | == Definition == | ||
| - | A text is a text written on screen with [[texts|texts functions]], like [[write]]() or [[write_int]](). A text is addressed using the associated [[TextID]]. | + | A text is a text written on screen with [[Functioncategory:texts|texts functions]], like [[write]]() or [[write_int]](). A text is addressed using the associated [[TextID]]. |
| There are two kinds of texts: | There are two kinds of texts: | ||
Revision as of 09:05, 7 August 2007
Definition
A text is a text written on screen with texts functions, like write() or write_int(). A text is addressed using the associated TextID.
There are two kinds of texts:
- Static text is any text written with write(); it is static, because the content of the text cannot be changed after writing, but the text can be moved and deleted.
- Dynamic text is any text written with write_xxx() functions; it is dynamic because the content of the text always reflects the current value of the variable specified. Of course moving and deleting is also possible.
Example
Program f;
Begin
write(0,1,1,0,"FPS:");
write_int(0,31,1,0,&fps);
Repeat
frame;
Until(key(_esc))
End
Used in example: write(), write_int(), fps
