Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Store the Last Selected Object

Author
Message
Hanne
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location:
Posted: 13th May 2012 00:59
Hi guys.

I have got four Planets (spheres), they are listed in a TopGUI-Window with guiLabels. I want to highlight them by Increasing their Size.

But of course do i have to decrease it again when i switch to the next Planet.

That is only possible when i store the Last Selected Planet..
How do i store that?



Thats the current code for selecting a planet.
the selected planet is currently cartoonshaded in the mainloop.

thanks in advance.
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 13th May 2012 21:02 Edited at: 13th May 2012 21:07
Hi.

Edit: I may not have understood the question clearly; but you can store the last selected object and decrease the size of it when it is about to be deselected.



Hanne
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location:
Posted: 14th May 2012 22:34
lol... i didnt know, that there is such a function

thanks

Login to post a reply

Server time is: 2024-11-22 00:34:31
Your offset time is: 2024-11-22 00:34:31