DgsCreate3DInterface

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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 faceX = cameraX, float faceY = cameraY, float faceZ = cameraZ, float distance = 100, float rotation = 0 ] )
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.
  • faceX: A float of the 3D x direction that the DGS 3D Interface faces to in the world.
  • faceY: A float of the 3D y direction that the DGS 3D Interface faces to in the world.
  • faceZ: 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
  • rotation: A float of the 3D rotation of the DGS 3D Interface in the world.

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

Custom Cursor Functions

Multi Language Supports

Animation

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

Label

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Circle

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Rounded Rectangle