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 2: Line 2:
=Map Editor Files=
=Map Editor Files=


==Map editor resource==
==Map editor resource (incomplete)==
===elements_server.lua (server)===
Manages which elements can be moved by clients (to avoid conflicts).
===files_server.lua (server)===
Handles requests to load files from clients, possibly based on admin level of the client that requested it, to prevent conflicts. If permission is granted, deletes existing elements and creates new elements based on the file.
===elements.lua (client)===
===elements.lua (client)===
Manages selecting/deselecting elements based on mouse clicks and GUI requests.
Manages selecting/deselecting elements based on mouse clicks and GUI requests. Allows user to toggle between freecam selection mode and cursor selection mode.
===files.lua (client)===
Creates a new MAP file, saves elements to MAP file. Loads an existing .map file if allowed by files_server.lua.
===GUI.lua (client)===
Creates an interface to allow element creation, browsing, and deletion, file save/load requests, and map testing.


==Freecam resource==
==Freecam resource==

Revision as of 03:50, 19 March 2007

Map Editor Files

Map editor resource (incomplete)

elements.lua (client)

Manages selecting/deselecting elements based on mouse clicks and GUI requests. Allows user to toggle between freecam selection mode and cursor selection mode.

Freecam resource

main.lua (client)

Allows user to control camera from mouse and kb input.

element_drag.lua (client)

Mounts an element to cameras position (the element to mount is passed through an event).