varintpage - page index, if set to -1, settings are applied to all pages
varintleft - left margin
varinttop - top margin
varintright - right margin
varintbottom - bottom margin
varintpixels - TRUE to use pixels, FALSE to use virtual coordinates
Warning
After a thorough examination of this external function in the decompiler, it looks like the function works in pixels only regardless of this parameter.
Example
Doc_SetMargins(nDocID,0,275,20,30,20,TRUE);
Doc_PrintLine
Prints a line of text (font is set using Doc_SetFont) onto the document with docID, onto the page. Does not split the text into multiple lines if they do not fit onto the page.
Prints a line of text (font is set using Doc_SetFont) onto the document with docID, onto the page. Splits the text into multiple lines if they do not fit onto the page.
Doc_PrintLines(nDocID,0,"The war had been decided. Varant had lost its seaports, vital to army supplies. King Rhobar had not lingered on the battle fields for a long time, but left his generals to deal with the few remaining enemy troops. Varant had only one large force left, commanded by Lukkor, the most capable warlord of the Varant army, who had more than once turned defeat into victory.");Doc_PrintLines(nDocID,0,"But now his army was trapped. The situation was hopeless, even though his army greatly outnumbered the enemy. Lee, a war hero from Myrtana, had lured him into this trap. The heavy cavalry had been unable to fight on the thick, swamped ground of the narrow valley. Lee's soldiers had occupied the range of hills surrounding the swamp, and they had struck repeatedly, decimating the army. The desperate sallies his troops had launched had been cut short in pools of blood. He was beaten.");
Doc_Show
Display the document using the document manager ID
/// Creates a new instance of the document manager and returns its ID.////// @return Returns the ID of the document manager instance.funcintDoc_Create(){};/// Create a new instance of the document manager with the arrow showing players position on the map and returns its ID.////// @return Returns the ID of the document manager instance.funcintDoc_CreateMap(){};/// Prints a line of `text` onto the document with `docID`, onto the `page`./// Does not line break/// /// @param docID document manager ID/// @param page page index/// @param text text to be printedfuncvoidDoc_PrintLine(varintdocID,varintpage,varstringtext){};/// Prints a line of `text` onto the document with `docID`, onto the `page`. The `text` is automatically split into multiple lines/// /// @param docID document manager ID/// @param page page index/// @param text text to be printedfuncvoidDoc_PrintLines(varintdocID,varintpage,varstringtext){};/// Sets a `font` to be used on a `page` in a document with `docID`. Can be called multiple times to display different lines with different fonts.////// @param docID document manager ID/// @param page page index/// @param font font to be usedfuncvoidDoc_SetFont(varintdocID,varintpage,varstringfont){};/// Sets the number of pages `numOfPages` of the document.////// @param docID document manager ID/// @param numOfPages number of pagesfuncvoidDoc_SetPages(varintdocID,varintnumOfPages){};/// Set `page` to have `texture` as a background with `scale`. ////// @param docID document manager ID/// @param page page index, if set to `-1`, settings are applied to all pages/// @param texture texture of the background/// @param scale scale of the texture, if set to 1, there will be no resizingfuncvoidDoc_SetPage(varintdocID,varintpage,varstringtexture,varintscale){};/// Set a world level to a map.////// @param docID document manager ID/// @param level name of the ZEN filefuncvoidDoc_SetLevel(varintdocID,varstringlevel){};/// Sets the map coordinates. /// /// @param docID document manager ID/// @param left left/// @param top top/// @param right top/// @param bottom bottomfuncvoidDoc_SetLevelCoords(varintdocID,varintleft,varinttop,varintright,varintbottom){};/// Sets text margins of the page////// @param docID document manager ID/// @param page page index, if set to `-1`, settings are applied to all pages/// @param left left margin/// @param top top margin/// @param right right margin/// @param bottom bottom margin/// @param pixels `TRUE` to use pixels, `FALSE` to use virtual coordinatesfuncvoidDoc_SetMargins(varintdocID,varintpage,varintleft,varinttop,varintright,varintbottom,varintpixels){};/// Display the document using the document manager ID////// @param docID document manager IDfuncvoidDoc_Show(varintdocID){};/// deprecatedfuncvoidDoc_Open(varstringTexture){};/// deprecatedfuncvoidDoc_Font(varstringFont){};/// deprecatedfuncvoidDoc_Print(varstringText){};/// deprecatedfuncvoidDoc_MapCoordinates(varstrings0,varfloatr1,varfloatr2,varfloatr3,varfloatr4,varfloatr5,varfloatr6,varfloatr7,varfloatr8){};