Skip to content

UI Views

Dave Frampton edited this page Sep 27, 2022 · 3 revisions

Full list of all Views.

This is very much a WIP, I'll add more information and fill in the types for functions and properties soon.

View

initializer

  • View.new(View parentView)

functions

  • vec2 localPointToWindow(vec2 localPoint)

  • removeSubview()

  • removeAllSubviews()

  • orderFront()

  • orderBack()

  • getDescription()

  • getIntersection()

  • keyChangedInput()

  • setCircleHitRadius()

  • removeCircleHitRadius()

  • setClipChildren()

  • setDisableClipping()

properties

  • vec2 size

  • scale

  • relativeView

  • relativePosition

  • baseOffset

  • additionalOffset

  • hidden

  • alpha

  • rotation

  • windowZOffset

  • windowRotation

  • windowPosition

  • masksEvents

  • renderXRay

  • update

  • hoverStart

  • hoverMoved

  • hoverEnd

  • mouseDown

  • mouseUp

  • mouseDragged

  • mouseWheel

  • clickOutside

  • clickDownOutside

  • click

  • rightClick

  • keyChanged

  • hiddenStateChanged

  • userData

TextView

initializer

  • TextView.new(View parentView)

functions

  • setText()
  • addColoredText()
  • setDepthTestEnabled()
  • getRectForCharAtIndex()

properties

  • text
  • font
  • color
  • textAlignment
  • wrapWidth
  • fontGeometryScale

ImageView

initializer

  • ImageView.new(View parentView)

properties

  • color
  • imageTexture
  • imageSize
  • imageOffset

RenderTargetView

initializer

  • RenderTargetView.new(View parentView)

properties

  • color
  • renderTarget
  • imageSize
  • imageOffset

GameObjectView

initializer

  • GameObjectView.new(View parentView)

functions

  • setModel
  • removeModel
  • setMaskTexture

properties

  • color
  • greyScale
  • viewOffset
  • cameraDirection
  • animates
  • objectRotation

ColorView

initializer

  • ColorView.new(View parentView)

functions

  • setShader()

properties

  • color
  • shaderUniformA
  • shaderUniformB

LinesView

initializer

  • LinesView.new(View parentView)

functions

  • setShader()
  • setLines()

properties

  • color
  • shaderUniformA
  • shaderUniformB

TerrainMapView

initializer

  • TerrainMapView.new(View parentView)

functions

  • setShader()
  • setLocation()

properties

  • shaderUniformA
  • shaderUniformB

GlobeView

initializer

  • GlobeView.new(View parentView)

functions

  • setSeedString()
  • setCustomValue()
  • setEnabledWorldMods()

properties

  • initialOffsetSpeed

ModelView

initializer

  • ModelView.new(View parentView)

functions

  • setModel()
  • removeModel()
  • setUsesModelHitTest()
  • setRadialMaskFraction()
  • setDepthTestEnabled()

properties

  • color
  • scale3D

ModelTextView

initializer

  • ModelTextView.new(View parentView)

functions

  • setText()
  • addText()

properties

  • font
  • textAlignment
  • wrapWidth
  • fontGeometryScale

ModelImageView

initializer

  • ModelImageView.new(View parentView)

functions

  • setTextures()
  • setShader()

properties

  • imageSize
  • imageOffset
  • materialIndex
  • color
  • shaderUniformA
  • shaderUniformB