Gamestudio Links
Zorro Links
Newest Posts
Blind Zorro Window
by Martin_HH. 09/13/26 13:20
Parent/child object
by 3run. 09/11/26 06:21
ZorroGPT
by TipmyPip. 09/09/26 14:35
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, bigsmack), 1,795 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
speedx, liop, Bauer097, riggi89, shuhari
19233 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Show and hide panel on key click #250105
02/05/09 22:50
02/05/09 22:50
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline OP
Member
Darkyyes  Offline OP
Member
D

Joined: Jun 2007
Posts: 152
Norway
Show and hide panel on key click
how to make a toogle function to show and hide a panel on lets say the key k,

//main inventory
PANEL* test_panel =
{
bmap = test_panel;
layer = 0;
flags = SHOW;
}


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7
Re: Show and hide panel on key click [Re: Darkyyes] #250107
02/05/09 22:54
02/05/09 22:54
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Code:
function toogle_the_panel(){
  toggle(test_panel,SHOW);
}


or

Code:
function toogle_the_panel(){
  if(is(test_panel,SHOW))
  {
     reset(test_panel,SHOW);
  }
  else{
     set(test_panel,SHOW); 
  }
}


and in your main fucniton before the while:

on_k = toggle_the_panel;

OR

in your main while

if(key_k) toggle_the_panel();


3333333333
Re: Show and hide panel on key click [Re: Quad] #250111
02/05/09 23:20
02/05/09 23:20
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline OP
Member
Darkyyes  Offline OP
Member
D

Joined: Jun 2007
Posts: 152
Norway
Thank you very much smile


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7

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