DgsCreate3DInterface: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function creates a 3d interface in the world. Where the 3d interface faces to can be adjusted by '''normal vector'''. ==Syntax== <syntax...")
 
Line 23: Line 23:
*'''faceToZ:''' A float of the 3D z position that the DGS 3D Interface faces to in the world.
*'''faceToZ:''' A float of the 3D z position that the DGS 3D Interface faces to in the world.
*'''distance:''' A float of the 3D distance within which we can see the DGS 3D Interface
*'''distance:''' A float of the 3D distance within which we can see the DGS 3D Interface
===Optional Arguments===
{{OptionalArg}}
*'''parent:''' This is the parent that the gui label is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.
*'''isLocal:''' Sets whether the browser can only show local content or content from the internet. (see [[createBrowser]])
*'''transparent:''' true if you want the browser transparent, false for opaque. (see [[createBrowser]])
*'''browserWidth:''' The browser's native width. (see [[createBrowser]])
*'''browserHeight:''' The browser's native height. (see [[createBrowser]])
*'''color:''' An int of the color of the browser.


===Returns===
===Returns===

Revision as of 23:42, 9 June 2018

This function creates a 3d interface in the world.

Where the 3d interface faces to can be adjusted by normal vector.

Syntax

element dgsCreate3DInterface ( float x, float y, float z, float width, float height, int resolutionX, int resolutionY, [ int color = 0xFFFFFFFF, float faceToX = cameraX, float faceToY = cameraY, float faceToZ = cameraZ, float distance = 100 ] )

Required Arguments

  • x: A float of the 3D x position of the DGS 3D Interface in the world.
  • y: A float of the 3D y position of the DGS 3D Interface in the world.
  • z: A float of the 3D z position of the DGS 3D Interface in the world.
  • width: A float of the width of the DGS 3D Interface in the world
  • height: A float of the height of the DGS 3D Interface in the world
  • resolutionX: A float of the width of render target.
  • resolutionY: A float of the height of render target.
  • color: An integer of the color of the DGS 3D Interface.
  • faceToX: A float of the 3D x position that the DGS 3D Interface faces to in the world.
  • faceToY: A float of the 3D y position that the DGS 3D Interface faces to in the world.
  • faceToZ: A float of the 3D z position that the DGS 3D Interface faces to in the world.
  • distance: A float of the 3D distance within which we can see the DGS 3D Interface

Returns

Returns a browser if it was successfully created, false otherwise.

Example

DGS = exports.dgs

material = dgsCreate3DInterface(0,0,3,2,2,400,400,tocolor(255,255,255,255),0,1,0)
edit = dgsCreateEdit(0,0,200,50,"DGS 3D Interface Edit",false,material)
memo= dgsCreateMemo(0,60,200,90,"DGS 3D Interface Memo",false,material)

See Also

Custom Cursor Functions

Multi Language Supports

Animation

3D Element

3D Interface

3D Line

3D Image

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Drag'N Drop

Grid List

Image

Memo

Menu

Label

Layout

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Basic Shape Plugins

Circle

Quadrilateral

Rounded Rectangle

Other Plugins

Blur Box

Canvas

Chart

Color Picker

Effect 3D

Gradient

Mask

Media Browser

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Screen Source

SVG

Tooltips