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|__EDIT_ME__}}
{{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|__EDIT_ME__}}
{{FuncParam|web|The web identifier}}
{{FuncParam|MinX|__EDIT_ME__}}
{{FuncParam|MinX|The minimum X axis (between 0.0 to 1.0)}}
{{FuncParam|MinY|__EDIT_ME__}}
{{FuncParam|MinY|The minimum Y axis (between 0.0 to 1.0)}}
{{FuncParam|MaxX|__EDIT_ME__}}
{{FuncParam|MaxX|The maximum X axis (between 0.0 to 1.0)}}
{{FuncParam|MaxY|__EDIT_ME__}}
{{FuncParam|MaxY|The maximum Y axis (between 0.0 to 1.0)}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetWebAnchors(webUi, 0.0, 0.0, 1.0, 1.0)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{WebFunctions}}

Latest revision as of 20:14, 18 December 2019

SetWebAnchors

Type: Function
Context: Client
Introduced: v1.0

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)

See also