Skip to content

Commit

Permalink
Improve game_text FGD
Browse files Browse the repository at this point in the history
Added missing mapbase font keyvalue and improved some descriptions
  • Loading branch information
vrad-exe committed Mar 29, 2024
1 parent c3783b2 commit 20d67e6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions fgd/point/game/game_text.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
message[MBase](string) : "Message Text" : "" : "Message to display onscreen. Use '/n' for newlines."
message[KZ](string) : "Message Text" : "" : "Message to display onscreen. Maximum 200 characters."

x(float) : "X Position" : -1 : "Horizontal position on the player's screens to draw the text. " +
x(float) : "X Position" : -1 : "Horizontal position on the player's screen to draw the text. " +
"The value should be between 0 and 1, where 0 is the far left of the screen and 1 is the far right. -1 centers the text."
y(float) : "Y Position" : 0.6 : "Vertical position on the player's screens to draw the text. " +
y(float) : "Y Position" : 0.6 : "Vertical position on the player's screen to draw the text. " +
"The value should be between 0 and 1, where 0 is the top of the screen and 1 is the bottom. -1 centers the text."

effect[engine](integer) : "Text Effect" : 0
Expand All @@ -26,13 +26,14 @@
]

color(color255) : "Text Color" : "100 100 100" : "The main color of the text."
color2(color255) : "Transition Color" : "240 110 0" : "Secondary color used when revealing text."
color2(color255) : "Transition Color" : "240 110 0" : "Secondary color used when revealing text with the scan effect."

fadein(float) : "Fade in Time/Character Scan Time" : 1.5 : "The time it should take for the text to fully fade in."
fadein(float) : "Fade in Time/Character Scan Time" : 1.5 : "The time it should take for the text to fully fade in, or the time between each character appearing when using the scan effect."
fadeout(float) : "Fade Out Time" : 0.5 : "The time it should take for the text to fade out, after the hold time has expired."
holdtime(float) : "Hold Time" : 1.2 : "The time the text should stay onscreen, after fading in, before it begins to fade out."
fxtime(float) : "Scan time (scan effect only)" : 0.25 : "If the 'Text Effect' is set to Scan Out, this is the time " +
"it should take to scan out all the letters in the text."
fxtime(float) : "Highlight Time (scan effect only)" : 0.25 : "If the 'Text Effect' is set to Scan Out, this is the time " +
"it will take for each character to fade from the transition color to the main color. " +
"If you want all characters to be highlighted at once, set the fade in time to 0."

channel[engine](integer) : "Text Channel" : 1
channel(choices) : "Text Channel" : 1 : "You can have up to six individual game_text messages onscreen at once, " +
Expand All @@ -49,7 +50,9 @@
5: "Channel 5 (warning: may be used by HUD)"
]
customfont[KZ](string) : "Custom Font Name" : "" : "The name of the Game Font to use for this text. Game font lists are found in the KreedzClimbing/kz/resource/ClientScheme.res and SourceScheme.res (examples: ClientTitleFont, DefaultSmall). Custom .ttf files are currently not supported. Leave blank to use the default font."
autobreak[MBase](boolean) : "Automatically break lines" : 0 : "Allows text to automatically shift to the next line whenever it can't fit on a player's screen. " +

font[MBase](string) : "Custom Font Name" : "" : "The name of the Game Font to use for this text. Game font lists are found in the resource/ClientScheme.res and SourceScheme.res (examples: ClientTitleFont, DefaultSmall). Leave blank to use the default font."
autobreak[MBase](boolean) : "Automatically Break Lines" : 0 : "Allows text to automatically shift to the next line whenever it can't fit on a player's screen. " +
"This accounts for a player's aspect ratio and adds hyphens when necessary."
// Inputs
input Display(void) : "Display the message text."
Expand Down

0 comments on commit 20d67e6

Please sign in to comment.