CreateWebUI: Difference between revisions

From Onset Developer Wiki
JanHolger (talk | contribs)
No edit summary
JanHolger (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Creates a new WebUI}}


{{FuncSyntax|CreateWebUI(x, y, width, height [, zOrder, frameRate])}}
{{FuncSyntax|CreateWebUI(x, y, width, height [, zOrder, frameRate])}}
Line 16: Line 16:


== Example ==
== Example ==
__EDIT_ME__
<syntaxHighlight lang="lua">
local width, height = GetScreenSize()
local web = CreateWebUI(0, 0, width, height, 0, 16)
</syntaxHighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
[[CreateRemoteWebUI]]
[[CreateWebUI3D]]
[[CreateRemoteWebUI3D]]
[[DestroyWebUI]]

Revision as of 09:19, 29 September 2019

CreateWebUI

Type: Function
Context: Client
Introduced: v1.0

Description

Creates a new WebUI

Syntax

CreateWebUI(x, y, width, height [, zOrder, frameRate])

Parameters

  • x
    screen pixel x
  • y
    screen pixel y
  • width
    pixel width
  • height
    pixel height
  • zOrder (optional)
    order in which the webui's are rendered
  • frameRate (optional)
    rendering rate (default: 16)

Return Value

  • web (number)

Example

local width, height = GetScreenSize()
local web = CreateWebUI(0, 0, width, height, 0, 16)

See also

CreateRemoteWebUI CreateWebUI3D CreateRemoteWebUI3D DestroyWebUI