Difference between revisions of "TPlayers.BigText"

From Soldat Community Wiki
Jump to: navigation, search
m (reversed bolding ;D)
m
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
   Layer: in which layer the text will be shown
 
   Layer: in which layer the text will be shown
 
   Text: message to be shown
 
   Text: message to be shown
   Delay: time in milliseconds for the message to remain on screen
+
   Delay: time in '''ticks''' for the message to remain on screen
 
   Color: text's color
 
   Color: text's color
 
   Scale: size of the text
 
   Scale: size of the text
Line 8: Line 8:
 
   Y: vertical starting position on the screen to display text (1-480)
 
   Y: vertical starting position on the screen to display text (1-480)
 
==Description==
 
==Description==
Displays a big text in a player's screen, like the "You Killed <Player>" text or so on.<br>
+
Displays a big text on all players' screens, like the "You Killed <Player>" text or so on.<br>
 
Note that the Y axis grows downwards.
 
Note that the Y axis grows downwards.
  
 
== Example ==
 
== Example ==
 
<syntaxhighlight lang="pascal">
 
<syntaxhighlight lang="pascal">
// let all players know that the serevr must be restarted
+
// let all players know that the server must be restarted
 
Players.BigText(2,'Server will now be restarted!',200,$FFFF00,0.20,20,300);
 
Players.BigText(2,'Server will now be restarted!',200,$FFFF00,0.20,20,300);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:TPlayers]]
 
[[Category:TPlayers]]

Latest revision as of 09:34, 24 August 2016

procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer)
 Layer: in which layer the text will be shown
 Text: message to be shown
 Delay: time in ticks for the message to remain on screen
 Color: text's color
 Scale: size of the text
 X: horizontal starting position on the screen to display text (1-640)
 Y: vertical starting position on the screen to display text (1-480)

Description

Displays a big text on all players' screens, like the "You Killed <Player>" text or so on.
Note that the Y axis grows downwards.

Example

// let all players know that the server must be restarted
Players.BigText(2,'Server will now be restarted!',200,$FFFF00,0.20,20,300);