|
remove buttons
#348125
11/22/10 21:38
11/22/10 21:38
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
It's very convenient to be able to add buttons to a PANEL on the fly with pan_setbutton, but is there a way to dynamically remove buttons?
I couldn't find anything in the manual, and the only alternative I can think of is removing and re-building the PANEL manually without the button I want to remove, but that's really ugly.
Does anyone have any better ideas?
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: remove buttons
[Re: Lukas]
#348127
11/22/10 21:55
11/22/10 21:55
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Sorry for off-topic, but LBGUI is really awesome!  The functionality, the individual flags and the manual are all very nice and well done! I've just built a simple editor using LBGUI (which I will release soon), it's so easy with your header. 
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: remove buttons
[Re: Lukas]
#348128
11/22/10 21:56
11/22/10 21:56
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
I definitely considered using LBGUI for my game, but I can't remember why I decided against it. I think it was just that I wanted to stick with something I'm already familiar with. Or, create a system that stores which buttons you still need on a panel and which you don't. You can hide the obsolete ones by giving them emtpy bitmaps and NULL-pointers as function. Then, when you create a new button, just overwrite an obsolete one. Ah yes. That's pretty straight-forward. Thanks  Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
|