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
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 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
mouse mode not working #119277
03/24/07 18:03
03/24/07 18:03
Joined: Sep 2006
Posts: 4
W
Wouter Offline OP
Guest
Wouter  Offline OP
Guest
W

Joined: Sep 2006
Posts: 4
At my school project I am making the RTS-like game. We want an interface with buttons and functions, etc on it. We are trying to use Gamestudio's standard setup for displaying different buttons when you go over the button with your mouse and for functions.

But none of these functions work... They dont respond at all. And I do have mouse mode set on 1. In fact we had buttons in our last project and they did changed when we would hover over them.

But that was version 6.22! We have 6.40.5 now, do you know if anything here changed?

Thanks in advance

Re: mouse mode not working [Re: Wouter] #119278
03/24/07 19:12
03/24/07 19:12
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
-are the buttons in the range of the bmp from the panel?
-do they have a layer?
-did u defined a mouse_map?
-are there diffrent bmps for every panel state?

Last edited by Scorpion; 03/24/07 19:13.
nope that's not it [Re: Scorpion] #119279
03/25/07 00:07
03/25/07 00:07
Joined: Sep 2006
Posts: 4
W
Wouter Offline OP
Guest
Wouter  Offline OP
Guest
W

Joined: Sep 2006
Posts: 4
-are the buttons in the range of the bmp from the panel?
Don't know exactly what you mean, but the buttons are visible

-do they have a layer?
Yes, I even have different layers for different option cards

-did u defined a mouse_map?
mouse_map = 0; => no effect that I can see
mouse_map = 1; => crash
mouse_map = 2; => crash

-are there diffrent bmps for every panel state?
Yes but neither the different bmaps or the functions work, so I get the feeling its something with the mouse detection.

Thanks for help so far, please help me solve this!

Re: nope that's not it [Re: Wouter] #119280
03/25/07 00:11
03/25/07 00:11
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
it must be :

mouse_map = your_mouse.bmp;
mouse_mode=2;

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: nope that's not it [Re: rvL_eXile] #119281
03/25/07 13:38
03/25/07 13:38
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
That's not correct. It must be:
Code:
bmap BmpMouseMap = "yourfile.bmp";
function examplefunction()
{
mouse_mode = 1;
mouse_map = BmpMouseMap;
[...]
}




Always learn from history, to be sure you make the same mistakes again...
Re: nope that's not it [Re: Uhrwerk] #119282
03/25/07 16:01
03/25/07 16:01
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Wouter!

Try this ....for the mouse

Code:
 bmap younameitbmp = <"drawing.pcx">; //dessin corel draw 


function my_mouse_fction ()
{
enable_mouse = on;
mouse_mode = 1;
MOUSE_MAP = younameitbmp;

mouse_range= 1500; // only near Entities are clickable

MOUSE_spot.x = bmap_width(cross)/2; // hot spot in the middle
MOUSE_spot.y = bmap_height(cross)/2; // hot spot in the middle


while (MOUSE_MODE > 0) // move it over the screen
{
MOUSE_POS.X = POINTER.X;
MOUSE_POS.Y = POINTER.Y;
wait(1);
}
}



Try this for the panel...

Code:
 bmap door__y = <console_door__yellow.pcx>;
bmap door__g = <console_door__green.pcx>;

panel door_menu
{
pos_x = 725;
pos_y = 500;
layer = 4;
alpha = 100;
button = 0,0,door__y,door__y,door__g,m_door_,null, null;
flags = overlay;
}



Hope this helps. :0


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
thanks a lot guys [Re: Ottawa] #119283
03/27/07 20:58
03/27/07 20:58
Joined: Sep 2006
Posts: 4
W
Wouter Offline OP
Guest
Wouter  Offline OP
Guest
W

Joined: Sep 2006
Posts: 4
Ok I tried all your suggestions and it finally works now!

Although I have 1 thing left: The new arrow is shown over the system arrow, so I got two arrows, and the arrow I made myself won't leave the screen...

Anyway thanks for all the help so far!

Re: thanks a lot guys [Re: Wouter] #119284
03/28/07 12:17
03/28/07 12:17
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
mouse_pointer=0;

(see signa...)


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