-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature : Flip Horizontal/Vertical tools #204
Comments
I like the idea of a toggle button on top of the toolbox. Was adding features to the movement tool to apply to all layers and/or all frames. And I'm noticing some repeating code working on the flip tool. Perhaps 2 check boxes on the top to represent whether or not to apply to all layers, all frames, or all layers and frames? |
Hi ! If you're looking at the flip tool, you can actually check in src/js/snippets.js There's a handy window.flip that I use from a bookmarklet and that performs a flip :) |
Oh wow wish I saw that before rolling my own, I'll definitely use yours! And thanks for the quick reply, hope I didn't wake you up or anything! At the moment I'll try to implement them as a tool with modifiers to control multiple frames and layers. |
Haha, you didn't wake me up don't worry, it's 3pm here. And feel free to change the implementation, you can use mine for reference when it comes to the most obscure parts, such as the events you should trigger after applying the tool.
Sounds perfect, we'll do the toggle later :) Something I thought about is that the flip tool is actually a bit different from the existing tools. For a regular tool, you click on the tool, then you click somewhere on the drawing area, and the tool is applied. Here with the flip, you should simply click on the flip icon and it flips the frame, without having to click on the drawing area. Which behavior do you have in mind ? Ultimately I think we will separate tools (pen, bucket ...) from effects (flip, rotate, hue ...). Regarding the implementation in snippets.jsLooking at the
The proper way to do this is to actually call the The proper way would be :
It will be a bit slower than the dirty one ... but I would still go for the cleaner implementation here. |
Oh phew I'm glad we're on the same page! I was tempted to change the snippet but was unsure if there was some secret code going on in there! :P
I completely agree with you. I don't think the user should be forced to click on the canvas when it's not needed. Do you think that an effect should be completely separate from the tools to where it's separate from the tool list? At the moment I have something like this: Maybe we could have a separate list of effects in a similar layout to the tool list. When a user clicks on something from effect list, it'll just call the effect method. What do you think? |
Nice, you already managed to go quite far !
Yes, I was thinking about having tabs to switch between tools and effects. Regarding the help text for the ALT modifier, by 'Down for Horizontal, Up for Vertical', do you mean : if ALT is pressed : horizontal flip ; if ALT is released : vertical flip ? |
Ah I see what you mean now. That sounds do-able! For now just to make things easier perhaps a gap will do.
Yes sir. I'll definitely change what I have since I'm sure we can both agree that "Pressed" and "Released" sounds a lot better! |
Released in 0.4.0 . |
With modifiers to apply to all layers, to all frames ?
How to switch between the two modes ? Modifier as well ?
Maybe we should have a convention in the tools modifiers :
Might be tedious in the long run. Maybe provide toggle buttons on top of the toolbox that would switch to all-frames/all-layers mode all tools that support it. Such tools would have a small indicator on their icon to highlight that they're affected by the change.
The text was updated successfully, but these errors were encountered: