SetWebAnchors: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetWebAnchors(web, MinX, MinY, MaxX, MaxY)}} {{FuncParameters}} {{FuncParam|web|__EDIT_ME__}} {{Fu..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the anchor points for the Web UI.}} | ||
{{FuncSyntax|SetWebAnchors(web, MinX, MinY, MaxX, MaxY)}} | {{FuncSyntax|SetWebAnchors(web, MinX, MinY, MaxX, MaxY)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|web| | {{FuncParam|web|The web identifier}} | ||
{{FuncParam|MinX| | {{FuncParam|MinX|The minimum X axis (between 0.0 to 1.0)}} | ||
{{FuncParam|MinY| | {{FuncParam|MinY|The minimum Y axis (between 0.0 to 1.0)}} | ||
{{FuncParam|MaxX| | {{FuncParam|MaxX|The maximum X axis (between 0.0 to 1.0)}} | ||
{{FuncParam|MaxY| | {{FuncParam|MaxY|The maximum Y axis (between 0.0 to 1.0)}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetWebAnchors(webUi, 0.0, 0.0, 1.0, 1.0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{WebFunctions}} |
Latest revision as of 20:14, 18 December 2019
Description
Set the anchor points for the Web UI.
Syntax
SetWebAnchors(web, MinX, MinY, MaxX, MaxY)
Parameters
- web
The web identifier - MinX
The minimum X axis (between 0.0 to 1.0) - MinY
The minimum Y axis (between 0.0 to 1.0) - MaxX
The maximum X axis (between 0.0 to 1.0) - MaxY
The maximum Y axis (between 0.0 to 1.0)
Return Value
- Returns true on success.
Example
SetWebAnchors(webUi, 0.0, 0.0, 1.0, 1.0)