User:Erorr404/Editor/design: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=Map Editor Files=
resource
  file
      interface


==Map editor resource (incomplete)==
main
===elements.lua (client)===
  elementdata.lua // keeps track of selected element and movement modes
Manages selecting/deselecting elements based on mouse clicks and GUI requests. Allows user to toggle between freecam selection mode and cursor selection mode.
      bool selectElement(element theElement)
      element getSelectedElement()
      bool deselectElement()
      bool setMoveMode(int mode)
      int getMoveMode()


==Freecam resource==
moveelement
===main.lua (client)===
  mousemove.lua // attaches element to cursor
Allows user to control camera from mouse and kb input.
      bool enableMouseMove(element)
===element_drag.lua (client)===
      bool disableMouseMove()
Mounts an element to cameras position (the element to mount is passed through an event).
  cameramove.lua // attaches element to camera
      bool enableCameraMove(element)
      bool disableCameraMove()
  keyboardmove.lua
      bool enableKeyboardMove(element)
      bool disableKeyboardMove()

Revision as of 01:53, 19 April 2007

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()