Editor

From Crumbled World Wiki
Revision as of 12:58, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:EditorExampleCode}} ==Static functions== {| class="wikitable" !|return !|function !|description |- | |save(string fileName) |Save the current map if in EDITOR. If no file has been chosen a window will open where file can be specified. |- | |export(string fileName) |Export the current map if in EDITOR. If no file has been chosen a window will open where file can be specified. |- | |E...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

EditorExampleCode

Static functions

return function description
save(string fileName) Save the current map if in EDITOR.

If no file has been chosen a window will open where file can be specified.

export(string fileName) Export the current map if in EDITOR.

If no file has been chosen a window will open where file can be specified.

load(string fileName) Will open a window where a map can be selected to open.
PlayerNode createNewMap() Create the new player node and populate the world with back end nodes.
setMainAreaPanel(Panel mainPanel) Set which panel represent the main work area.
File getSaveFolder() Return directory where map can be saved.
pauseEditor() Pause the map editor.