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, The_Judge, Grant), 898 guests, and 5 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
A question about menu buttons #394042
02/09/12 14:40
02/09/12 14:40
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
I wrote a simple menu code
and I want to get this buttons from down to their (x,y) coordinates, for example the button that runs the "loadinggame" function, has got 19,249 coordinate but I want to get it from (19,500) coordinate to (19,249) smoothly and sliding.But how???



Code:
PANEL* pan_00 =
 {
     
     pos_x=0;
     pos_y=0;
     bmap= "menu";
     layer=1;
 
     button(19,249,newmenu1o.tga,newmenu1.tga,newmenu1o.tga,loadinggame,NULL,cursolses);
     button(19,310,newmenu3o.tga,newmenu3.tga,newmenu3o.tga,credits,NULL,cursolses);
     button(19,371,newmenu2o.tga,newmenu2.tga,newmenu2o.tga,howtoplay,NULL,cursolses);
     button(19,432,newmenu4o.tga,newmenu4.tga,newmenu4o.tga,quit,NULL,cursolses);
 
     flags= SHOW ;
 
 }



Re: A question about menu buttons [Re: gamers] #394061
02/09/12 17:46
02/09/12 17:46
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
any answer ???

Re: A question about menu buttons [Re: gamers] #394062
02/09/12 17:55
02/09/12 17:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Be patient!!
You are looking for pan_setbutton(...) (see manual).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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