I hope this is useful to someone, and I encourage you to tweak it to your needs.
---------------------------------------------------------------------------------------------------
Function List:
txt(string);
\\ Print things on the screen - it is a simplified version of the iPrint Function.
txtX(int);
\\ Set the X location for your text to be located.
txtY(int);
\\ Set the Y location for your text to be located.
txtXY(int);
\\ Set the XY location for your text to be located.
txtH();
\\ Hide textprint.
txtS();
\\ Show textprint.
---------------------------------------------------------------------------------------------------
To make use of these functions, you must copy the following code, and put it above "void main()".
---------------------------------------------------------------------------------------------------
Here is an example of code use:
---------------------------------------------------------------------------------------------------
NOTE: Be sure to change OBJ_0 to your textprint ID - along with OUT_0 to your textprint opacity.
---------------------------------------------------------------------------------------------------
Function List:
txt(string);
\\ Print things on the screen - it is a simplified version of the iPrint Function.
txtX(int);
\\ Set the X location for your text to be located.
txtY(int);
\\ Set the Y location for your text to be located.
txtXY(int);
\\ Set the XY location for your text to be located.
txtH();
\\ Hide textprint.
txtS();
\\ Show textprint.
---------------------------------------------------------------------------------------------------
To make use of these functions, you must copy the following code, and put it above "void main()".
Code: [Select]
string text;
float x;
float y;
void txtX(float x1){x = x1;}
void txtY(float y1){y = y1;}
void txtXY(float x1, float y1){x = x1;y = y1;}
void txt(string text){iPrint(text,x,y,OBJ_0);}
void txtH(){OUT_0 = 0;}
void txtS(){OUT_0 = 1;}
---------------------------------------------------------------------------------------------------
Here is an example of code use:
Code: [Select]
...
void Main()
{
txtXY(0,0); // Changes both X and Y axis
txt("Hello World!"); // Prints text to current location (0,0)
txtY(5); // Changes Y axis
txt("Test\rv1.0"); // Sets text to the current location (0,5)
txtH(); // Hides text
txtS(); // Shows text
}
---------------------------------------------------------------------------------------------------
NOTE: Be sure to change OBJ_0 to your textprint ID - along with OUT_0 to your textprint opacity.