PatternShapeTool
Extends: ShapeTool < Tool < Object
Description
The tool used to edit pattern shapes. Use World.Level.PatternShapes if you want to create pattern shapes instead.
Accessed by Global.Editor.Tools["PatternShapeTool"]
.
Properties
OptionButton | LayerMenu |
int | ActiveLayer |
Texture | Texture |
Color | Color |
Range | Rotation |
bool | Outline |
GridMenu | textureMenu |
Button | EditPoints |
bool | isDragging |
Methods
void | SetLayer ( int index ) |
void | ChangeColor ( Color color, String name ) |
Property Descriptions
- OptionButton LayerMenu:
The reference to the layer menu in the Pattern Shape Tool when it is active.
- int ActiveLayer:
The layer the next shape will be placed. Read only. Set with SetLayer() instead.
- Texture Texture:
Gets or sets a new shape's texture.
- Color Color:
Gets or sets a new shape's color if applicable.
- bool Outline:
Gets or sets whether the shapes will have an outline.
- GridMenu textureMenu:
The menu that selects textures for this tool. DO NOT MODIFY.
- Button EditPoints:
The UI control that determines if the user is editing existing points instead of creating new shapes.
- bool isDragging:
Is the user actively dragging a point on an existing shape.
Method Descriptions
- void SetLayer ( int index ):
Set layer that the next pattern shape created by the tool will belong to.
- void ChangeColor ( Color color, String name ):
Changes the pattern shape color. Param name is not used.