User:Erorr404/Editor/design

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

resource

  file
     interface

main

  elementdata.lua // keeps track of selected element and movement modes
     bool selectElement(element theElement)
     element getSelectedElement()
     bool deselectElement()
     bool setMoveMode(int mode)
     int getMoveMode()

moveelement

  mousemove.lua // attaches element to cursor
     bool enableMouseMove(element)
     bool disableMouseMove()
  cameramove.lua // attaches element to camera
     bool enableCameraMove(element)
     bool disableCameraMove()
  keyboardmove.lua
     bool enableKeyboardMove(element)
     bool disableKeyboardMove()