DgsCreate3DInterface

From Multi Theft Auto: Wiki

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 ] )
DGS 3D Interface.png

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.

Optional Arguments

  • color: An integer of the color of the DGS 3D Interface.
  • faceToX: A float of the 3D x direction that the DGS 3D Interface faces to in the world.
  • faceToY: A float of the 3D y direction that the DGS 3D Interface faces to in the world.
  • faceToZ: A float of the 3D z direction 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 3d interface if it was successfully created, false otherwise.

Example

DGS = exports.dgs

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

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D