#K2-D2

1 messages · Page 2 of 1

late bane
#

I’ll get that PR sorted tonight but I might need a hand getting it compiled so I can release it

wraith glen
#

take your time, I won't release a K2D2 soon

#

I've started the docking and UI is ... quite complex

lilac parrot
wraith glen
lilac parrot
#

the GitHub actions do it all for you

wraith glen
#

@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

lilac parrot
#

and you can change the values in the dropdown like this:

List<string> myChoices = ["Choice 1", "Choice 2", "Choice 3"];
dropdown.choices = myChoices; 
wraith glen
#

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

lilac parrot
#

I don't understand why not

#

also I'm not sure I understand the use case

wraith glen
#

.... when I clic on the button (not on an item on the menu) i receive no Change or no clic event

lilac parrot
#

what button though?

wraith glen
lilac parrot
#

oh, you mean the input itself

wraith glen
#

the drop down field buton

#

yes

lilac parrot
#

ok but why would you need to listen to that?

#

surely just clicking on it doesn't actually change any data

wraith glen
#

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

lilac parrot
#

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

wraith glen
#

you're right it's quite simple

lilac parrot
#

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

wraith glen
#

excellent but . i'm not sure it is called before the menu is shown....

#

I'll try it

lilac parrot
#

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

wraith glen
#

yes and it's certainly the simpliest solution

#

I'll just start with that without reinventing the wheel

wraith glen
#

And the very good thing is that I could check that the vessel or the dock still exists...

late bane
late bane
#

All done. PR merged and 0.10.6 released. Please let me know if this doesn’t fix it for you

wraith glen
#

@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

wraith glen
#

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

wraith glen
#

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

chrome lintel
#

i was thinking, could a slightly modified version of this attitude pilot be used to autopilot rovers?

wraith glen
#

Yes it could be done easily. I'll think about it

wraith glen
#

playing at last in Explore Mode to test K2D2 I've found few bug but no real kraken for the moment

wraith glen
#

It's released. I hope there won't be too many bugs to correct.

#

And I wrote a full user guide here :

edgy river
#

The death of imgui is upon us, praise be

Nice job though! that was quite the undertaking.

wraith glen
#

Yes It has been a huge long tunnel mode.

#

I've worked on it during 4 month long (in the evening and week end)

edgy river
#

Now take a well deserved break

wraith glen
#

thanks, I'll

#

The Drone and Autostaging is missing but I'll go back to them later

lusty berry
wraith glen
#

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

lusty berry
#

Sounds great!

wraith glen
#

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