Difference between revisions of "SetWebSize"

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetWebSize(web, width, height)}} {{FuncParameters}} {{FuncParam|web|__EDIT_ME__}} {{FuncParam|widt...")
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the web UI size.}}


{{FuncSyntax|SetWebSize(web, width, height)}}
{{FuncSyntax|SetWebSize(web, width, height)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|web|__EDIT_ME__}}
{{FuncParam|web|The web identifier}}
{{FuncParam|width|__EDIT_ME__}}
{{FuncParam|width|The width}}
{{FuncParam|height|__EDIT_ME__}}
{{FuncParam|height|The height}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhihlight lang='Lua'>
SetWebSize(web, 1920, 1080)
</syntaxhihlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:WebFunctions}}

Revision as of 23:15, 18 March 2020

SetWebSize

Type: Function
Context: Client
Introduced: v1.0

Description

Set the web UI size.

Syntax

SetWebSize(web, width, height)

Parameters

  • web
    The web identifier
  • width
    The width
  • height
    The height

Return Value

  • This function returns true on success.

Example

<syntaxhihlight lang='Lua'> SetWebSize(web, 1920, 1080) </syntaxhihlight>

See also