Skip to content
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

Code editor: area/virtual editor non rectangle selection #291

Open
icewolfz opened this issue Sep 1, 2024 · 1 comment
Open

Code editor: area/virtual editor non rectangle selection #291

icewolfz opened this issue Sep 1, 2024 · 1 comment
Labels
Code editor Code editor related issues enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required

Comments

@icewolfz
Copy link
Owner

icewolfz commented Sep 1, 2024

Allow different selection shapes for more odd ball selection of rooms

this is limited buy the canvas tool and how i can detect if a room is in the shape,
in theory should be able to do circle and paths to match stuff but not sure how hard with out more testing

@icewolfz icewolfz added enhancement A new feature or way to improve a current feature to make it better or offer more uses Code editor Code editor related issues wishlist Wanted but not required labels Sep 1, 2024
@icewolfz
Copy link
Owner Author

icewolfz commented Sep 3, 2024

This will probably not happen, i have been testing oval selection and its not very good due to rooms being square and it ends up selecting nearly the same as square selection if not worse, i have tried a few different ways to test room in circle to try and limit, but it still is never 100% right as its a pain and a lot of complex math just to see if a rectangle intersects an oval, there is experimental code in place that can be enabled on a per editor base using dev tools:

  1. make sure the active tab is the area designer you want it enabled on
  2. type in manager.active.editor.SelectionRegionType = 1

type 0 is standard rectiangle and 1 is Ellipse, 2 is polygon but nothing has been enabled for that and will default back to rectangle, the selection draws nicely the main issue is how to detect which rooms it selects as even if just a little piece is in the circle it gets selected so acts more like a rectangle selection in those cases

So for now this idea is going to not happen as it is not worth the effect, while a cool idea on most maps unless super large weird shapes can be map by selection rooms 1 at a time quicker then weird selection layouts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code editor Code editor related issues enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required
Projects
None yet
Development

No branches or pull requests

1 participant