Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Menus #242646
12/24/08 21:16
12/24/08 21:16
Joined: Dec 2008
Posts: 12
T
Thordendal Offline OP
Newbie
Thordendal  Offline OP
Newbie
T

Joined: Dec 2008
Posts: 12
I'm not sure on how I would make menus dis-appear and re-appear. Would I just put them off screen, or change the flags?
Code:
PANEL* menu_pan =
{
digits(100,10,3,*,1, health);
flags = VISIBLE;
}
if (key_w) {
menu_pan.flags = VISIBLE | OVERLAY;
}
if ((key_w) && (menu_pan.flags |= 0)){
menu_pan.flags = 0;
}


Last edited by Thordendal; 12/24/08 21:37.
Re: Menus [Re: Thordendal] #242766
12/25/08 16:31
12/25/08 16:31
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Setting and resetting (switching off) flags in lite-c works as following:
Code:
set(menu_pan,VISIBLE);
...
reset(menu_pan,VISIBLE);


And yes, by turning visibility on and off you can make them appear/disappear.
Based on the menu system you use you might need to activate a mouse too.

Re: Menus [Re: Xarthor] #243450
12/30/08 01:30
12/30/08 01:30
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
you can also use
Code:
toggle(menu_pan, VISIBLE);

hope this helps

Re: Menus [Re: Thordendal] #243451
12/30/08 01:45
12/30/08 01:45
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
Code:
if(is(myPanel,VISIBLE)
   reset(myPanel,VISIBLE);
else
   set(myPanel,VISIBLE;


The is(object,flag) macro is a good tool here for checking flags.


I was once Anonymous_Alcoholic.

Code Breakpoint;

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