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
Creating DrawPanel
UI
#599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #599 +/- ##
==========================================
+ Coverage 87.93% 87.98% +0.04%
==========================================
Files 62 62
Lines 13126 13342 +216
Branches 1322 1355 +33
==========================================
+ Hits 11543 11739 +196
- Misses 1206 1216 +10
- Partials 377 387 +10
|
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.
Hi @ganimtron-10,
Thank you for this feature. This is really nice! see below for some comments.
it would be also good :
- if you could add the erase functionality
- To add an option to tell if
DrawPanel
is movable or not - When we start, we see mode selection, but nothing happens when we click the drawer panel, it is confusing. it will be good to do something.
- it would be good to use the on/off capabilities of button2D to know which tool we are using
Hello @ganimtron-10 ,
2022-06-09.23-26-21.mp4
|
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.
Hi @ganimtron-10, This feature is really nice and everything is working fine. There are a few runtime warnings I encountered, Look at my comment below.
Thanks.
Hello @ganimtron-10! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-06-30 16:10:30 UTC |
…nto DrawPanel_UI
Hello @Garyfallidis @nasimanousheh @skoudoro , The tests are failing because I have separated the code for the fetcher function which fetches new icons required for the Thanks! |
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.
Hi @ganimtron-10,
This first version looks really good.
we can not test this tutorial because the fetcher is missing. Since the fetcher PR has been merged, Can you merge master or rebase this PR?
After that, and few other fixes, it should be ready to be merged. Thanks for this clean work
self.canvas.background.on_left_mouse_button_pressed = self.left_button_pressed | ||
self.canvas.background.on_left_mouse_button_dragged = self.left_button_dragged | ||
|
||
mode_data = { |
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 note this somewhere as a future new feature
} | ||
|
||
padding = 5 | ||
mode_panel_size = (len(mode_data) * 35 + 2 * padding, 40) |
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 note this somewhere as a future new feature
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.
ok, LGTM! thanks @ganimtron-10!
This is ready to go. I will wait for another review until Wednesday. if no other review, I will go ahead and merge it.
I found one small bug but I think, this fix or any new features should be done in a new PR.
Good job!
Hi @ganimtron-10. Great job! you fixed the boundary issue and by moving the shape, it doesn't go out of the canvas boundary.
|
Hello @nasimanousheh ,
When I use my external mouse single click with the dragging works pretty fine, but when I use my trackpad mouse I have to double click and then drag.
There was an issue with the positioning of the element in the panel which is now fixed using relative positioning. PTAL. Thanks! |
Great job @ganimtron-10 ! Merging. Bring forth the titans aka next PRs! |
This UI would help us to create various shapes and transform them.
Currently, it supports
Demo