Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Joey, flink, AndrewAMD), 1,226 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Tell if a mouse is over a pan #243266
12/29/08 04:34
12/29/08 04:34
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
I have a var than changes to one when it is over an entity and 0 when it isn't. How would i tell if my mouse is over a panel? I need this so it doesn't de select the player when i click over a panel.

Re: Tell if a mouse is over a pan [Re: upsidedownman] #243267
12/29/08 04:37
12/29/08 04:37
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
It shouldn't select the entity when it is over a panel any way should it?

Try it


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Tell if a mouse is over a pan [Re: Blade280891] #243269
12/29/08 04:40
12/29/08 04:40
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
No it ignores the pan thats why i am looking for a way to tell if the mouse is over a pan.

Re: Tell if a mouse is over a pan [Re: upsidedownman] #243271
12/29/08 04:43
12/29/08 04:43
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
O ok, you should of said that.


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Tell if a mouse is over a pan [Re: Blade280891] #243273
12/29/08 05:04
12/29/08 05:04
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Ok i got it just had to look through the manual some more.

Re: Tell if a mouse is over a pan [Re: upsidedownman] #243518
12/30/08 14:46
12/30/08 14:46
Joined: Dec 2008
Posts: 1
Europe
S
SirPinguin Offline
Guest
SirPinguin  Offline
Guest
S

Joined: Dec 2008
Posts: 1
Europe
I got the same problem but i added the mouse_mode it just doesnt do anything.

Quote:

var video_mode = 7;
var video_depth = 32;
var mouse_mode = 4;


and i also tried like this:

Quote:

function main()
{
mouse_mode = 4;
screen_color.blue = 150;
}


i started using panels today and this is really stopping my progress D:

edit: hmm mouse_mode = 0; doesnt make the mouse invisible either so i must be placing the code at the wrong place?

edit: Solved! i had to put a bitmap ase mouse_map ^^ thanx anyway.

Last edited by SirPinguin; 12/30/08 18:40.
Re: Tell if a mouse is over a pan [Re: SirPinguin] #243535
12/30/08 16:32
12/30/08 16:32
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
to tell if the mouse is over a panel you can use mouse_panel its a built in pointer that is null when it is not over a panel and when it is over a panel it is set to that panel.


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: Tell if a mouse is over a pan [Re: GamerX] #243628
12/31/08 00:12
12/31/08 00:12
Joined: Mar 2004
Posts: 71
Scotland
westray Offline
Junior Member
westray  Offline
Junior Member

Joined: Mar 2004
Posts: 71
Scotland
Can't find a command called mouse_panel in Lite_c

Re: Tell if a mouse is over a pan [Re: westray] #243631
12/31/08 00:23
12/31/08 00:23
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
mouse_panel?? what ??

I think thats a beta feature , or not in beta yet

Re: Tell if a mouse is over a pan [Re: MMike] #243638
12/31/08 01:26
12/31/08 01:26
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
its not a beta feature 1.because i don't use the beta and 2. because i use it in my projects and just used it the other day.

here

Last edited by GamerX; 12/31/08 01:29.

"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Page 1 of 2 1 2

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