Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (NnamueN, Akow, 1 invisible), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
multi buttons #190485
03/27/08 11:43
03/27/08 11:43
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Hi,

I have game in which i have 9 buttons in one panel(main_pan).
I want When user click on button ,after click button will be
disapper.
How can i do that?

Please help
Thanx

Re: multi buttons [Re: harry3174] #190486
03/27/08 15:01
03/27/08 15:01
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Make one Main Panel without Buttons.
Then make 9 Panels with one Button, so you can set / reset every Button (Panel)

Re: multi buttons [Re: harry3174] #190487
03/27/08 15:09
03/27/08 15:09
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
You could use

pan_setpos(PANEL*, var type, var num, VECTOR* xy)

to move the buttons out of the screen, so they won´t be visible.


no science involved
Re: multi buttons [Re: fogman] #190488
03/27/08 15:20
03/27/08 15:20
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Or remove the bitmap and the functions of the button so it's not visible anymore.
pan_setbmap
pan_setevent


Click and join the 3dgs irc community!
Room: #3dgs
Re: multi buttons [Re: Joozey] #190489
03/27/08 16:24
03/27/08 16:24
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I would just disable the function and change the bitmaps to "used" ... somehow

Re: multi buttons [Re: PadMalcom] #190490
03/27/08 19:43
03/27/08 19:43
Joined: Mar 2008
Posts: 17
Kärnten, Austria
T
Tarandur Offline
Newbie
Tarandur  Offline
Newbie
T

Joined: Mar 2008
Posts: 17
Kärnten, Austria
make the bmapOn image which is displayed if the user clicks it complete black,i think it should be transparent then. I also recommend you to use some kind of boolean var to check if the functionOn has already been executed.

( button(x, y, bmapOn, bmapOff, bmapOver, functionOn, functionOff, functionOver); )


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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