Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,555 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
removing button #413578
12/15/12 14:54
12/15/12 14:54
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi all,

how can you remove (or similar) a button from a panel? I am making a quest accept button and I want to remove it after the player pressed it.

Thanks for taking the time!

Re: removing button [Re: Reconnoiter] #413587
12/15/12 16:37
12/15/12 16:37
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Does using pan_setbutton with invisible dummy bitmaps and all functions set to NULL do the trick for you?

http://www.conitec.net/beta/pan_setbutton.htm


Always learn from history, to be sure you make the same mistakes again...
Re: removing button [Re: Uhrwerk] #413593
12/15/12 17:39
12/15/12 17:39
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
pan_removebutton would surely be a usefull feature!

Re: removing button [Re: PadMalcom] #413597
12/15/12 17:52
12/15/12 17:52
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
@PadMalcom +1

For a project (a todo-list-tool) I'm using buttons for every entry and I always have to remove the panel, create an empty one and add all buttons again when changing something.

Well... it actually is not slow but would be easier to script with a button-remove-feature

Last edited by Kartoffel; 12/15/12 18:02.

POTATO-MAN saves the day! - Random
Re: removing button [Re: Kartoffel] #413601
12/15/12 18:33
12/15/12 18:33
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Thanks guys.

I was thinking that pan_setbutton would might do the trick, and so far it works well (with a 100% alpha image).


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1