Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 984 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Quick question... #138368
06/27/07 10:24
06/27/07 10:24
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
I have simple question...
I've forgotten how to make (check) if mouse is over the panel?
What function was that?

THX for quick reply

Cheers


Never say never.
Re: Quick question... [Re: tompo] #138369
06/27/07 10:35
06/27/07 10:35
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
You may check the mouse_pos if it is greater than
panel_pos and less than panel_size.

Re: Quick question... [Re: vlau] #138370
06/27/07 10:40
06/27/07 10:40
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline
Member
SurudoiRyu  Offline
Member

Joined: May 2007
Posts: 185
Netherlands
panel mouseover
{
pos_x = 0;
pos_y = 0;
button = 0,0 button_normal,button_clicked,button_over,null,null,button_event;
flags = visible;
}

Think you mean this ?

the button_normal,clicked and over are bitmaps you need to define first


-The Dragon's Eye is alway's watching you!-
Re: Quick question... [Re: SurudoiRyu] #138371
06/27/07 11:06
06/27/07 11:06
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
@vlau, SurudoiRyu I know those metods
but function to check this out exist but I don't remember
function which one is checking if mouse is over the panel

But thanks for replys


Never say never.
Re: Quick question... [Re: tompo] #138372
06/27/07 11:22
06/27/07 11:22
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline
Member
SurudoiRyu  Offline
Member

Joined: May 2007
Posts: 185
Netherlands
Hehe here all the function's

thnx to scorpion

mouse_cursor is the position of the "real" (windows-)cursor(read-only)
mouse_pos is the position of the engine-cursor
mouse_force: this is a variable that contains the movemtn of the mouse for one frame
mouse_map is the picture u want to use for the mouse
mouse mode: if=0 u can't see the (engine-)cursor if 1 or 2 u can see the mouse, but by mouse_mode=2, mouse_force won't be changed
mouse_pointer: this is the windows-cursor over the windows (just in window-mode) if the engine-mousepointer is not visible(that is jsut important if u want to do something in indowmode without a cursor = never)
mouse_range(that could be the solutionfor your problem) that is the range entities will be triggered for event_click
mouse_spot sets the hotsport of the cursor-bmp



So i think you need:
mouse_spot ??

Greetzzz,

Last edited by SurudoiRyu; 06/27/07 11:23.

-The Dragon's Eye is alway's watching you!-
Re: Quick question... [Re: SurudoiRyu] #138373
06/27/07 11:29
06/27/07 11:29
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
mouse_range is parameter if you want touch entitys, it's distance from camera to 3d world the mouse_touch is still working.
So it's not this

mouse_spot is parameter to change center of the mouse_map
by default it's 0,0 of mouse_map but sometimes you want it at center of mouse_map so then you change:
mouse_spot.x = bmap.x /2;
mouse_spot.y = bmap.y /2;

so it's not this

Last edited by tompo; 06/27/07 13:03.

Never say never.
Re: Quick question... [Re: tompo] #138374
06/27/07 11:58
06/27/07 11:58
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline
Member
SurudoiRyu  Offline
Member

Joined: May 2007
Posts: 185
Netherlands
hehe then i can't help you
Lol did my best hoped to help you out with it
Maybe someone else will soon have the info you need.

greetzzzz,


-The Dragon's Eye is alway's watching you!-
Re: Quick question... [Re: SurudoiRyu] #138375
06/27/07 14:36
06/27/07 14:36
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I have go through the manual, search by the keyword "mouse" and
"panel", still can't found any functions that you're described.

I'm just found these 2 functions that are closer to what you
are looking for :

mouse_valid - Indicate whether the mouse pointer is within the engine window.
panel.on_click - left clicking inside the panel bmap.

or is it on the forecast page?

Good luck!

Re: Quick question... [Re: vlau] #138376
06/29/07 22:09
06/29/07 22:09
Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
Dj_Pint Offline
Senior Member
Dj_Pint  Offline
Senior Member

Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
you can make the panel a entity and use this stuff:
event_touch
enable_touch

allright?


if u want to see some stuff i made, go to youTube and search for djpint, not dj pint^^

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