mixes in with ChooseableTool;
Magic Cap defines class RestoresPreviousTool as a mixin for creating tools that remember, then restore, the previous tool. Class RestoresPreviousTool is used exclusively by the Inspector's InspectObjectTool.
Instantiate: never Subclass: rarely Call its methods: never
Although you'll probably never create a class that mixes in class RestoresPreviousTool, you might do so if you wanted a highly specialized tool that remembers and restores the previous tool.
Class RestoresPreviousTool defines the following methods:
Method | Description |
---|---|
BeginTool |
Overridden to save the current tool before setting it to self. |
RestorePreviousTool | Sets the tool to the saved value of the previous tool. |
Class RestoresPreviousTool defines the following fields:
Field | Type | Description |
---|---|---|
Defined by RestoresPreviousTool | ||
previousTool | Tool | Saved value of previous tool |
overrides BeginTool Call: rarely Override: sometimes
Class RestoresPreviousTool overrides BeginTool to record the current tool before setting it to self.
operation RestorePreviousTool() Call: rarely Override: rarely