Difference between revisions of "Centerprint"

From QuakeQEWiki
Jump to navigation Jump to search
(Created page with "Centerprint is a quake c function that allows the programmer to display some aligned to the center of the screen defs.qc declaration void(entity client, string s, optional string s1, optional string s2, optional string s3, optional string s4, optional string s5, optional string s6, optional string s7) centerprint = #73;    // sprint, but in middle")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Centerprint is a quake c function that allows the programmer to display some aligned to the center of the screen
Centerprint is a [[quake c]] function that allows center-justified [[Quake c string|text]] to be [[Quake-c printing function|printed]] to the middle of the game window.


== defs.qc declaration ==
void(entity client, string s, optional string s1, optional string s2, optional string s3, optional string s4, optional string s5, optional string s6, optional string s7) centerprint = #73;    // sprint, but in middle


defs.qc declaration
== Notes ==
void(entity client, string s, optional string s1, optional string s2, optional string s3, optional string s4, optional string s5, optional string s6, optional string s7) centerprint = #73;    // sprint, but in middle
In English, at one resolution, centerprint produces an at most 52-character-wide column of characters to the screen.  As more characters are added new lines push the block downward off the bottom of the screen appearing on top of the game HUD
[[File:Lots of centerprint text!.png|thumb]]
 
The normal typeface isn't monospaced and is difficult to properly align
[[Category:Quake-C Builtins]]

Latest revision as of 03:39, 16 April 2022

Centerprint is a quake c function that allows center-justified text to be printed to the middle of the game window.

defs.qc declaration[edit | edit source]

void(entity client, string s, optional string s1, optional string s2, optional string s3, optional string s4, optional string s5, optional string s6, optional string s7) centerprint = #73;    // sprint, but in middle

Notes[edit | edit source]

In English, at one resolution, centerprint produces an at most 52-character-wide column of characters to the screen. As more characters are added new lines push the block downward off the bottom of the screen appearing on top of the game HUD

Lots of centerprint text!.png

The normal typeface isn't monospaced and is difficult to properly align