Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (VoroneTZ, AndrewAMD, 1 invisible), 5,926 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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