-
Notifications
You must be signed in to change notification settings - Fork 882
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
Add possibility to paint tilemap with a rectangle selection from the tileset #6977
Conversation
newIDE/app/src/Utils/TileMap.js
Outdated
* B, D, F, H | ||
* given as: | ||
* [A, B, C, D, E, F, G, H] | ||
* - The layout of the tiles rectangle is simple. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be more precise what "simple" means.
1224afd
to
b72794b
Compare
b72794b
to
2de5844
Compare
@@ -211,6 +218,7 @@ const SimpleTileMapEditor = ({ | |||
allowRectangleSelection={false} | |||
onAtlasImageLoaded={onAtlasImageLoaded} | |||
interactive={true} | |||
onScrollY={onScrollY} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment why this is necessary? Not obvious for the reader.
@@ -65,6 +66,14 @@ export default React.forwardRef<Props, ScrollViewInterface>( | |||
); | |||
} | |||
}, | |||
/** | |||
* Scroll the view to the target component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Scroll the view by the offset passed as argument."
if (isTouchDevice) { | ||
if (!touchStartCoordinates) return; | ||
|
||
if (isLongTouch) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment explaining what this does:
"Distinguish between a long touch (to multi select tiles) and a scroll"
(for example)
demo_painting_tiling.mp4