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 3: Line 3:
       interface
       interface


main
editor_main
   elementdata.lua // keeps track of selected element and movement modes
   elements.lua
       bool selectElement(element theElement)
      bool setMoveMode(int)
      int getMoveMode()
       bool selectElement(element)
       element getSelectedElement()
       element getSelectedElement()
       bool deselectElement()
       bool deselectElement()
       bool setMoveMode(int mode)
       bool mountElement(bool)
      int getMoveMode()
 
move_keyboard
  // preconditions: none
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)
 
move_cursor
  // precondition: cursor must be showing
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)


moveelement
move_freecam
   mousemove.lua // attaches element to cursor
   // precondition: camera mode must be fixed
      bool enableMouseMove(element)
  bool attachElement(element)
      bool disableMouseMove()
   element getAttachedElement()
   cameramove.lua // attaches element to camera
  bool detachElement()
      bool enableCameraMove(element)
   void ignoreWalls(bool)
      bool disableCameraMove()
   keyboardmove.lua
      bool enableKeyboardMove(element)
      bool disableKeyboardMove()

Revision as of 01:37, 23 April 2007

resource

  file
     interface

editor_main

  elements.lua
     bool setMoveMode(int)
     int getMoveMode()
     bool selectElement(element)
     element getSelectedElement()
     bool deselectElement()
     bool mountElement(bool)

move_keyboard

  // preconditions: none
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)

move_cursor

  // precondition: cursor must be showing
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)

move_freecam

  // precondition: camera mode must be fixed
  bool attachElement(element)
  element getAttachedElement()
  bool detachElement()
  void ignoreWalls(bool)