int DialogOptionsRenderingInfo.ParserTextBoxY;
Gets/sets the Y-position of the text parser textbox on the dialog options.
If the text parser is not enabled for this dialog, this setting will be ignored.
This Y-position is relative to the dialog options surface. That is, a Y of 10
will position it 10 pixels within the dialog options area, not 10 pixels from
the edge of the screen.
This can only be set within the dialog_options_get_dimensions function.
Example:
function dialog_options_get_dimensions(DialogOptionsRenderingInfo *info)
{
info.Width = 300;
info.Height = 150;
// Put the text parser at the bottom (if enabled)
info.ParserTextBoxX = 10;
info.ParserTextBoxY = 130;
info.ParserTextBoxWidth = 180;
}
positions the parser text box at (10,130) inside the 300x150 dialog options area
Compatibility: Supported by AGS 3.1.0 and later versions.
See Also: DialogOptionsRenderingInfo.ParserTextBoxX
|