RS117 / RLHD

BSD 2-Clause "Simplified" License
150 stars 62 forks source link

Add tile info overlay for development #292

Closed aHooder closed 2 years ago

aHooder commented 2 years ago

Adds the following overlay to help with modifying tile overlays, underlays and materials. Currently it's toggled by the hard-coded keybind Ctrl F3, and it only works while in developer mode.

image

image

image

This also restricts shader hot-swapping to developer mode.

Mark7625 commented 2 years ago

Love u

aHooder commented 2 years ago

This should be good to go now :+1:

image

sosodev commented 2 years ago

Could we break the key listener bits out into its own class?

aHooder commented 2 years ago

That'd be fine with me. Do you have anything in particular in mind? Maybe a devtools class?

sosodev commented 2 years ago

No idea in particular. I'd just like to keep trying to slim down what functionality we put into the main HD plugin class.

aHooder commented 2 years ago

Sounds good. I suppose in the future we'll inevitably add more dev tools, so it might be good to move logic for managing that to a separate class.

Mark7625 commented 2 years ago

Sounds good. I suppose in the future we'll inevitably add more dev tools, so it might be good to move logic for managing that to a separate class.

I do have a hotkey class in my dev panel thing maybe can just go into that one it's in

aHooder commented 2 years ago

I've moved both shader hotswapping and tile info into a separate class for managing devtools. On second thought though, should we perhaps keep shader hotswapping for non-developers in case we want to try fixing shader bugs through the support channel?

Mark7625 commented 2 years ago

I've moved both shader hotswapping and tile info into a separate class for managing devtools. On second thought though, should we perhaps keep shader hotswapping for non-developers in case we want to try fixing shader bugs through the support channel?

Not sure how I feel about that what if we add a enable debug in config Panel off by default ?