TraceImage
Description
The tool used to edit the trace image.
Accessed by Global.Editor.Tools["TraceImage"].
Properties
| Range | Scale |
| Range | Opacity |
| bool | isDragging |
Methods
| Dictionary | Save ( bool copy = false ) |
| void | Load ( Dictionary data ) |
| void | OnFileSelected ( String property, String path ) |
| void | OnFileCleared ( String property ) |
| void | SetScale ( float value ) |
| void | SetOpacity ( float value ) |
| void | Center ( ) |
Property Descriptions
- Range Scale:
Gets the Range representing the Trace Image scale. Call SetScale() to set instead.
- Range Opacity:
Gets the Range representing the Trace Image opacity. Call SetOpacity() to set instead.
- bool isDragging:
Gets if the user is dragging. DO NOT MODIFY.
Method Descriptions
- Dictionary Save ( bool copy = false ):
Save the Trace Image into the save file format and return it as a Dictionary. The param copy is only used by copy-pasting feature of Dungeondraft.
- void Load ( Dictionary data ):
Load a saved Trace Image data. Used by a saved map file to load.
- void OnFileSelected ( String property, String path ):
Called when a file a selected. Call be called set a new image file. Param property is not used.
- void OnFileCleared ( String property ):
Called when a file is cleared. Call be called manually. Param property is not used.
- void SetOpacity ( float value ):
Sets the Trace Image opacity.
- void Center ( ):
Centers the image on the canvas.