ObjectTool - Megasploot/Dungeondraft GitHub Wiki
Overview
The tool used to edit objects. Inherits from Tool.
Accessed by Global.Editor.Tools["ObjectTool"]
.
Controls
Controls are UI elements that can be accessed by indexing Controls[id].
HSlider Controls["Rotation"]
Allows the user to adjust the object rotation.
HSlider Controls["Scale"]
Allows the user to adjust the object scaling.
Properties
Prop Preview
Gets the preview Prop. This is the object that follows the user's cursor before it is actually placed. Call confirm to force it to place.
See Prop.
int ActiveLayer
Gets and sets whether the tool's layer.
bool Shadow
Gets and sets whether the tool will place objects with shadows.
bool BlockLight
Gets and sets whether the tool will place objects that block light.
Functions
void Confirm()
Makes real the preview and cycles to a new Preview. Call this method to make the Preview a real object.
void PromoteCustomColor()
Updates the Preview with any changes in custom color.