Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: MouseEntry/Leave over windows  (Read 2167 times)

0 Members and 1 Guest are viewing this topic.

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
MouseEntry/Leave over windows
« on: July 05, 2008, 08:50:13 AM »

Hi all

Still trying to solve this problem of getting a highlighted cursor when hovering over a window object that may have cause to react to numerous inventory items. The CursorHover in items.items doesn't work with windows.

Next thing I tried was on "MouseEntry" in the window's script, thus:
on "MouseEntry"
  {
  if(Game.SelectedItem == "SlatePart1")
    { 
    self.SetCursor("items\Highlighted\SlatePart1.png");
    }
  if(Game.SelectedItem == "SlatePart2")
    {
    self.SetCursor("items\Highlighted\SlatePart2.png");
    }
  } 

That doesn't work either. Can anybody point out what I'm doing wrong?

Thanks

Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: MouseEntry/Leave over windows
« Reply #1 on: July 07, 2008, 07:44:32 AM »

Define "doesn't work". Is the code called? If you place Game.Msg("mouse entry"); inside, does the game display the message?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.038 seconds with 23 queries.