Difference between revisions of "DrawText"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (Created page with "<onlyinclude> Draws some text. </onlyinclude> This method has two variants. <syntaxhighlight lang="cpp"> void DrawText( const string &text, recti rect, SColor color, bool HorCen...") |
Shadlington (Talk | contribs) |
||
Line 3: | Line 3: | ||
</onlyinclude> | </onlyinclude> | ||
+ | As this is GUI-related this is client only - it should be wrapped in "if ( getNet().isClient( ))" or in a client-only script. | ||
This method has two variants. | This method has two variants. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> |
Revision as of 16:04, 22 August 2012
Draws some text.
As this is GUI-related this is client only - it should be wrapped in "if ( getNet().isClient( ))" or in a client-only script.
This method has two variants.
void DrawText( const string &text, recti rect, SColor color, bool HorCenter, bool VerCenter ) void DrawText( const string &text, position2di pos, SColor color )