Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (JeyKey II, EvanTJ, alibaba, rht), 8,254 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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