SceneEditorFoliageEdit
Package: Libraries.Interface.Undo · Inherits from: Libraries.Language.Object, Libraries.Interface.Undo.Edit
The SceneEditorFoliageEdit is one stroke of a terrain's Foliage tool in the scene editor's undo list. It puts the copies the stroke added or removed back or forward, then has the scene editor draw the foliage there again, mark the terrain changed, and say what happened.
Actions
CanRedo()
Returns
boolean
CanUndo()
Returns
boolean
Create(Libraries.Interface.Controls.Scenes.SceneEditor controller, Libraries.Interface.Controls.Scenes.Items.EditorTerrain terrain, Libraries.Interface.Controls.Scenes.FoliageStroke stroke, text strokeName)
Sets up the edit.
Parameters
controllerLibraries.Interface.Controls.Scenes.SceneEditor: The scene editorterrainLibraries.Interface.Controls.Scenes.Items.EditorTerrain: The terrain the stroke changedstrokeLibraries.Interface.Controls.Scenes.FoliageStroke: The finished strokestrokeNametext: What the stroke did, such as "add Pine"
Dispose()
GetRedoName()
Returns
text
GetUndoName()
Returns
text
Redo()
Undo()
Sets up the edit.