Micrologist / MicroEngineer

MIT License
4 stars 4 forks source link

[FEATURE] Rearrange, insert & remove params from windows #4

Closed Falki-git closed 1 year ago

Falki-git commented 1 year ago

Would be nice to have what KER has, ability to arrange window information as you want

Micrologist commented 1 year ago

This is planned but requires some major rewriting before doing it.

Falki-git commented 1 year ago

@Micrologist, if you don't have immediate plans to tackle this, I'd like to try it, if that's ok with you.

Was thinking on working on rearranging, adding/removing items in a window, as well as having an ability to create custom windows.

Micrologist commented 1 year ago

Got busy with real life for a bit, sorry. What I had in mind was abstracting the sections/windows into a class that holds the relevant information like title, popoutstate / popout position and a list of entries (where each entry has a name and a reference to the value it should display). Also the whole value gathering and calculating should be moved to Update since OnGUI might be called multiple times per frame and there is no situation where recalculating readouts multiple times is a useful thing to do.

Falki-git commented 1 year ago

Nice, that's exactly what I had in mind as well :) I've created a draft PR so you can take a look at what I've made so far. It's not done yet.

I like this mod a lot and would like to help out with it, if that's fine with you.