Skip to content

WallTool

Extends: Tool < Object

Description

The tool used to edit walls.

Accessed by Global.Editor.Tools["WallTool"].

Properties

int Sorting
Texture Texture
Color Color
bool Shadow
bool Bevel
bool isDrawing

Methods

void Confirm ( )
void EndWall ( bool loop )
void SetShadow ( bool value )
Color GetWallColor ( Texture texture = null )
void SetWallColor ( Color color )

Property Descriptions

  • int Sorting:
    Where the next wall will be sorted. Underlying type is an enum. 0 = Over, 1 = Under.

  • Texture Texture:
    Gets or sets the next wall's texture.

  • 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.

  • bool isDrawing:
    Whether the user is actively drawing.

Method Descriptions

  • void Confirm ( ):
    Takes the polyline from WorldUI and turns it into a Wall and adds it into the Walls children. Automagically determines if it needs to loop or add new points. Calls EndWall().

  • void EndWall ( bool loop ):
    Takes the polyline from WorldUI and turns it into a Wall and adds it into the Walls children. Better to call Confirm() rather than this directly.



  • void SetWallColor ( Color color ):
    Set the current selected wall style's color if applicable.