Przejdź do treści

Print functions

Functions for printing text to the screen, zSpy, or dialog boxes.

Functions

Print

Print

Prints text at the top of the screen

func void Print(var string text) 

Parameters

  • var string text - text to print

PrintDebug

PrintDebug

Prints debug text to zSpy if "toogle debug" is enabled

func void PrintDebug(var string text) 

Parameters

  • var string text - debug text

PrintDebugCh

PrintDebugCh

Prints text to zSpy on a specific debug channel (if channel is enabled)

func void PrintDebugCh(var int channel, var string text) 

Parameters

  • var int channel - channel number
  • var string text - debug text

PrintDebugInst

PrintDebugInst

Prints text to zSpy if global self is on debug instances list
debug focus command can add instance to the list
debugAllInstances in the Gothic.ini can enable all instances

func void PrintDebugInst(var string text) 

Parameters

  • var string text - string text to print

PrintDebugInstCh

PrintDebugInst

Prints text to zSpy if global self is on debug instances list on a specific debug channel (if channel is enabled)
debug focus command can add instance to the list
debugAllInstances in the Gothic.ini can enable all instances

func void PrintDebugInstCh(var int channel, var string text)

Parameters

  • var string text - string text to print
  • var int channel - channel number

PrintDialog

PrintDialog

Displays a text in a dialog box

func int PrintDialog(var int window, var string text, var int posx, var int posy, var string font, var int timesec) 

Parameters

  • var int window - id of a dialog window
  • var string text - displayed text
  • var int posx - x position as percent (-1 to center)
  • var int posy - y position as percent (-1 to center)
  • var string font - font to use
  • var int timesec - display duration in seconds

Return value
The function returns TRUE if the dialog was displayed successfully, FALSE otherwise

PrintMulti

PrintMulti

Randomly selects one of the texts and prints it

func void PrintMulti(var string text1, var string text2, var string text3, var string text4, var string text5) 

Parameters

  • var string text1 - first text
  • var string text2 - second text
  • var string text3 - third text
  • var string text4 - fourth text
  • var string text5 - fifth text

PrintScreen

PrintScreen

Prints a message to the screen with specified font and position

func void PrintScreen(var string text, var int posx, var int posy, var string font, var int timesec) 

Parameters

  • var string text - message to print
  • var int posx - x position as percent (-1 to center)
  • var int posy - y position as percent (-1 to center)
  • var string font - font to use
  • var int timesec - display duration in seconds