Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Cursor hides some part of object's name  (Read 3101 times)

0 Members and 1 Guest are viewing this topic.

adventure

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Cursor hides some part of object's name
« on: November 11, 2008, 05:08:43 PM »

So I have self made cursor and it's a little bigger than default cursor. Everything is OK, but when I ride with my mouse over item, cursor hides some part of object's name. (it's on the text)
How can I change coordinates of text a little bit?
And how can I remove that text completely?
And how could I put text in foreground, but cursor in background?

Thanks in advance.  :)
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Cursor hides some part of object's name
« Reply #1 on: November 11, 2008, 06:38:11 PM »

1) For coordinates in "game_daemon.script" look at row 26-27:

Code: [Select]
WinCaption.X = Game.MouseX;
WinCaption.Y = Game.MouseY + 50;

2) To remove the text you can simply change the line 46 (always in "game_daemon.script"):

Code: [Select]
WinCaption.Visible = true;
And set it "false".

Obviously you can also delete the scripts that handle the caption window if you want, but pay attention in what you delete ;)
Logged

mylesblasonato

  • Developer
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 265
  • "Give up is to fail as sacrifice is to succeed"
    • View Profile
    • Royal Wins
Re: Cursor hides some part of object's name
« Reply #2 on: November 12, 2008, 01:21:26 PM »

You can also place the text on the fore ground by using the Window.InGame = true; function.

Hope this helps.

Cheers ::beer
Myles Blasonato.
Logged
Lead Game Designer, Royal Wins.
@mylesblasonato
@royalwins
http://au.linkedin.com/pub/myles-blasonato/26/600/a38

adventure

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Cursor hides some part of object's name
« Reply #3 on: November 12, 2008, 03:40:57 PM »

Thanks guys!  O0
Logged
 

Page created in 0.038 seconds with 23 queries.