WallTool - Megasploot/Dungeondraft GitHub Wiki
Overview
The tool used to edit walls. Inherits from Tool.
See WorldUI.
The WallTool builds a polyline using WorldUI before creating the wall after user confirmation.
Accessed by Global.Editor.Tools["WallTool"]
.
Controls
Controls are UI elements that can be accessed by indexing Controls[id].
GridMenu Controls["Texture"]
Menu control that allows the user to select the style of wall being drawn.
ColorPickerButton Controls["Color"]
Allows the user to adjust the multiplied color of the next wall.
CheckButton Controls["Bevel"]
Allows the user to toggle the bevel of the next wall.
Properties
Texture Texture
Gets and sets the texture used for the next wall drawn.
Color Color
Gets or sets the next wall's multiplied color.
bool Shadow
Gets and sets whether the wall has a shadow below it.
bool Bevel
Gets and sets whether the next wall should have beveled corners.
Functions
void Confirm()
Takes the polyline from WorldUI and turns it into a Wall and adds it into the Walls children.