|
Re: mouse_ent does not work in my application
[Re: jenGs]
#462303
09/20/16 10:31
09/20/16 10:31
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
just scan it yourself. check mouse_dir3d or something like that on manual.
also mouse_mode is involved in some way for mouse_ent.
Last edited by Quad; 09/20/16 10:34.
3333333333
|
|
|
Re: mouse_ent does not work in my application
[Re: Quad]
#462306
09/20/16 11:24
09/20/16 11:24
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
It used to work for me... I'll check it out. Edit: well, this code works for me.. Maybe I didn't understand your problem?
action cube(){
while(1){
if(is(my, TRANSLUCENT)){
reset(my, TRANSLUCENT);
}
wait(1);
}
}
void main(){
fps_max = 60;
level_load("");
mouse_mode = 4;
ent_create(CUBE_MDL, vector(200, 0, 0), cube);
ent_create(CUBE_MDL, vector(200, -25, 0), cube);
ent_create(CUBE_MDL, vector(200, 25, 0), cube);
while(1){
if(mouse_ent){
set(mouse_ent, TRANSLUCENT);
}
wait(1);
}
}
|
|
|
Re: mouse_ent does not work in my application
[Re: 3run]
#462313
09/20/16 15:28
09/20/16 15:28
|
Joined: Sep 2009
Posts: 991 Budapest
Aku_Aku
OP
User
|
OP
User
Joined: Sep 2009
Posts: 991
Budapest
|
Thanks for the replies to jenGs, Quad and 3run. @jenGs: i remember i had such code that worked, in lite-c. The situation is changed now. @Quad: I don't know how could be involved mouse_dir3d when there are only one panel and one text. I mentioned in the opening post i tried mouse_mode=2 and mouse_mode=4 too. @3run: It is a pity, but your code seems to as a simple lite-c one, processed by the compiler provided by the Gamestudio.
This program is a mix of c++ and lite-c. Compiled with Qt. I would use your advises, but they are not fit into this environment. I thought it is clear for everyone, if this post is here in External Languages chapter, i use the SDK with third party compiler.
I think i misunderstood what is the object of this function. It is ENTITY, but not panel or text. Thanks guys, i am sorry.
Last remark, i recognized, what i was looking for really, is the mouse_panel
Last edited by Aku_Aku; 09/20/16 18:08.
|
|
|
|