#K2-D2
1 messages · Page 2 of 1
take your time, I won't release a K2D2 soon
I've started the docking and UI is ... quite complex
you don't need to compile it yourself to release it
the GitHub actions do it all for you
@lilac parrot The Dropdown is quite tricky to use as you said
I'd like to listen for in change and... I didn't find the way to have it
And I'd would like to chneg the content on clic on the button (to update the vessel list at the moment the user clic on the comboButton)
I should have missed something I think
I've tried to registerCallbacks to ClickEvent without success.
I've just read the base code : BasePopupField and and It appear that it will be difficult without rewriting many stuff... damnit
RegisterValueChangedCallback
and you can change the values in the dropdown like this:
List<string> myChoices = ["Choice 1", "Choice 2", "Choice 3"];
dropdown.choices = myChoices;
yes, but in my case I need to set up choices on the user clic on the dropdown button
dans this is not possible for the moment
.... when I clic on the button (not on an item on the menu) i receive no Change or no clic event
what button though?
oh, you mean the input itself
ok but why would you need to listen to that?
surely just clicking on it doesn't actually change any data
because it's the best time to list actual near vessels for instance (not in the update loop)
I could in fact find anothers ways to update the list.... i'll think about that rather than rebuilding a new UI control from scratch
I think a good way to do it could be to update the list of vessels whenever the SOI is changed
though there could be a lot of them in some cases I guess
you're right it's quite simple
how about this
it isn't 100% perfect, the focus stays on the dropdown when you select one of the items in the list, but you can listen to the ChangedEvent and then manually call dropdown.Blur(); to lose the focus
that should make it almost bulletproof
yeah you're right, it isn't
but generally this is a pretty uncommon scenario, to be fair
I think it would be ok to just run a periodical check in the Update method (maybe every second or less) only when the docking tab is active and the window is open
that shouldn't cause any performance issues
yes and it's certainly the simpliest solution
I'll just start with that without reinventing the wheel
And the very good thing is that I could check that the vessel or the dock still exists...
Oh that’s right! I’ll try to get that done tonight then. Thanks!
All done. PR merged and 0.10.6 released. Please let me know if this doesn’t fix it for you
@munix I've changed my plan and removed temporary the selection of target and dock from ui
as it can be done from the game itself it is node a needed feature
I'll add it back later when on a future release, when the AR lines and circles will be back
Ok the docking seems to work fine.
I just need a final UI adjust to finish it. the target selection is off for the moment and I'll work on this later
and the last was really easy.
So i'm quite ready. I've just some final tests and adjustments to do for having a final version
i was thinking, could a slightly modified version of this attitude pilot be used to autopilot rovers?
Yes it could be done easily. I'll think about it
playing at last in Explore Mode to test K2D2 I've found few bug but no real kraken for the moment
It's released. I hope there won't be too many bugs to correct.
And I wrote a full user guide here :
The death of imgui is upon us, praise be
Nice job though! that was quite the undertaking.
Amen !
Yes It has been a huge long tunnel mode.
I've worked on it during 4 month long (in the evening and week end)
Now take a well deserved break
Congrats @wraith glen ! This has been an outstanding refactor to see
Thanks @lusty berry
I've also planned to deliver a version of the k2d2 ui controls
It's nearly done and i'll be fully available in the unity uibuilder
Sounds great!
Here it is
I've just finished writting a first documentation in this wiki
The set of controls can be freely used? i've tried to describe the best each control and how to use it
can be used as a full example of how it can be used.
The controls are fully bindable with a set of Settings classes
I use it to bind with user preferences. It was needed to deeply simplified the K2D2 code and I hope it can help other projects too
If you could help me with errors and typos on those pages it would be of great help