mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Finished tooltorials
This commit is contained in:
@ -1,9 +1,24 @@
|
||||
/** TODO
|
||||
* - Move the selection only if the user started dragging inside of it
|
||||
*/
|
||||
class LassoSelectionTool extends SelectionTool {
|
||||
currentPixels = [];
|
||||
|
||||
constructor (name, options, switchFunc, moveTool) {
|
||||
super(name, options, switchFunc, moveTool);
|
||||
Events.on('click', this.mainButton, switchFunc, this);
|
||||
|
||||
this.resetTutorial();
|
||||
this.addTutorialTitle("Lasso selection tool");
|
||||
this.addTutorialKey("Q", " to select the lasso selection tool");
|
||||
this.addTutorialKey("Left drag", " to select an area");
|
||||
this.addTutorialKey("Left drag", " to move a selection");
|
||||
this.addTutorialKey("Esc", " to cancel a selection")
|
||||
this.addTutorialKey("Click", " outside the selection to cancel it")
|
||||
this.addTutorialKey("CTRL+C", " to copy a selection")
|
||||
this.addTutorialKey("CTRL+V", " to paste a selection")
|
||||
this.addTutorialKey("CTRL+X", " to cut a selection")
|
||||
this.addTutorialImg("lassoselect-tutorial.gif");
|
||||
}
|
||||
|
||||
onStart(mousePos, mouseTarget) {
|
||||
|
Reference in New Issue
Block a user