NucleoidMC / nucleoid-creator-tools

Tools for working with and creating maps for the Nucleoid ecosystem
GNU Lesser General Public License v3.0
3 stars 8 forks source link

Add region visibility filters #10

Closed haykam821 closed 1 year ago

haykam821 commented 1 year ago

This pull request adds region visibility filters, which aim to solve the problem of overlapping regions not being easily distinguishable.

Region visibility filters can be given with a command such as the following:

give @s nucleoid_creator_tools:region_visibility_filter{Region: ["a", "b"]}

Region visibility filters use the particle outline color of their first region. Their tooltip lists all regions.

Region visibility filter tooltip

Using a region visibility filter will immediately apply it to the current editor. Editors can also clear their current filter by sneaking while using a region visibility filter.

While out of scope and potentially difficult for this initial implementation, a few improvements could be made:

Fixes #8