|
|
I need help once more
#399421
04/15/12 08:42
04/15/12 08:42
|
Joined: Apr 2012
Posts: 8
Karyu
OP
Newbie
|
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: sivan]
#399424
04/15/12 09:46
04/15/12 09:46
|
Joined: Apr 2012
Posts: 8
Karyu
OP
Newbie
|
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
lostzac
Member
|
Member
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
OP
Newbie
|
OP
Newbie
Joined: Apr 2012
Posts: 8
|
thank you, it works  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.
|
|
|
|