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
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 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
I need help once more #399421
04/15/12 08:42
04/15/12 08:42
Joined: Apr 2012
Posts: 8
Karyu Offline OP
Newbie
Karyu  Offline OP
Newbie

Joined: Apr 2012
Posts: 8
I've got another question:

A panel should appear, if I click on a model/entity and it should appear everytime I click on that model/entity, even if I clicked the "NO"-button before.

How should I do that?


Si tacuisses, philosophus mansisses.
Re: I need help once more [Re: Karyu] #399423
04/15/12 09:31
04/15/12 09:31
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
add ENABLE_CLICK to model eflags, make an EVENT_CLICK event that sets the panel's SHOW flag.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: I need help once more [Re: sivan] #399424
04/15/12 09:46
04/15/12 09:46
Joined: Apr 2012
Posts: 8
Karyu Offline OP
Newbie
Karyu  Offline OP
Newbie

Joined: Apr 2012
Posts: 8
how to do that?
i'm sorry, i'm a beginner with lite-c

i have this entity:

Beere1 = ent_create("Beere.mdl", vector(0, -200, 0), NULL);

and this panel:

PANEL* essen1_pan =
{
bmap = "Beere_essen_bmp";
pos_x = 550;
pos_y = 15;
button (15, 40, "Ja.bmp", "Ja.bmp", "Ja.bmp", Beere1_essen, NULL, NULL);
flags = OVERLAY | SHOW;
button (85, 40, "Nein.bmp", "Nein.bmp", "Nein.bmp", nein1, NULL, NULL);
flags = OVERLAY | SHOW;
}



Please help me.


Si tacuisses, philosophus mansisses.
Re: I need help once more [Re: Karyu] #399425
04/15/12 10:43
04/15/12 10:43
Joined: Jul 2005
Posts: 187
L
lostzac Offline
Member
lostzac  Offline
Member
L

Joined: Jul 2005
Posts: 187
PANEL* essen1_pan =
{
bmap = "Beere_essen_bmp";
pos_x = 550;
pos_y = 15;
button (15, 40, "Ja.bmp", "Ja.bmp", "Ja.bmp", Beere1_essen, NULL, NULL);
flags = OVERLAY | SHOW;
button (85, 40, "Nein.bmp", "Nein.bmp", "Nein.bmp", nein1, NULL, NULL);
flags = OVERLAY | SHOW;
}

function event_function()
{
if(event_type == EVENT_CLICK)
{
set(essen1_pan,SHOW);
}
}

function beere1_func()
{
my.emask |= ENABLE_CLICK;
my.event = event_function;
}

Beere1 = ent_create("Beere.mdl", vector(0, -200, 0), beere1_func);


John C Leutz II

Re: I need help once more [Re: lostzac] #399435
04/15/12 12:10
04/15/12 12:10
Joined: Apr 2012
Posts: 8
Karyu Offline OP
Newbie
Karyu  Offline OP
Newbie

Joined: Apr 2012
Posts: 8
thank you, it works grin

something more:
at the moment, the panel is here from the beginning
it should appear first if I click on the model

how to do that?


Si tacuisses, philosophus mansisses.
Re: I need help once more [Re: Karyu] #399438
04/15/12 12:46
04/15/12 12:46
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
just remove the SHOW flags from panel definition.
moreover, one line of "flags = OVERLAY;" is enough, because it is definition for the panel, not for the buttons.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: I need help once more [Re: sivan] #399439
04/15/12 12:50
04/15/12 12:50
Joined: Apr 2012
Posts: 8
Karyu Offline OP
Newbie
Karyu  Offline OP
Newbie

Joined: Apr 2012
Posts: 8
Thank you very much!


Si tacuisses, philosophus mansisses.

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