Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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