RoofTool
Description
The tool used to edit the roofs.
Accessed by Global.Editor.Tools["RoofTool"].
Properties
Methods
| void | SetShade ( bool value ) | 
| void | UpdateSunlight ( float value ) | 
| void | FinishShape ( ) | 
| void | DrawRect ( Rect2 rect ) | 
Property Descriptions
- int Mode: 
 The mode of the tool. 0 = Quickbox, 1 = Manual.
- int Sorting: 
 Where the next roof will be sorted. Underlying type is an enum. 0 = Over, 1 = Under.
- int Type: 
 Gets or sets the next type of roof created. Underlying type is an enum. 0 = Gable, 1 = Hip, and 2 = Dormer.
- Texture Texture: 
 Gets or sets the next roof's texture/style.
- bool Shade: 
 Toggles if all roofs will be shaded according to sunlight. Call SetShade() as well.
- Vector2 boxBegin: 
 Start coordinates of the box that a user drags.
- Vector2 boxEnd: 
 End coordinates of the box that a user drags.
- bool isDrawing: 
 Whether the user is actively drawing.
- Roof activeRoof: 
 The reference to the current Roof being placed.
Method Descriptions
- void SetShade ( bool value ): 
 Toggles if all roofs will be shaded according to sunlight and also update the sunlight.
- void UpdateSunlight ( float value ): 
 Toggles if all roofs will be shaded according to sunlight and also update the sunlight.
- void FinishShape ( ): 
 Takes the polyline from WorldUI and turns it into a Roof and adds it into the Roofs children. Used by Manual mode.