Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Caption window  (Read 2654 times)

0 Members and 1 Guest are viewing this topic.

Birdline

  • Supporter
  • Occasional poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 57
    • View Profile
    • Birdline Web Site
Caption window
« on: November 28, 2008, 08:42:07 PM »

Hi all,
I have a problem with caption window.
My captions are shown at the top of the screen and they have a background image.
They appear each time the mouse is over an interactive object (default behavior).

The problem is this.
When the mouse is over the inventory, the caption window is always visible.
I mean that if there is an item, I see the item's name and the background image (normal),
but if there is no item (empty slot), I see only the background image (not very nice).
I would like the caption window to be hidden (no text no image) if the mouse is over an empty slot in the inventory.
How can I do this?

BTW, I had the same problem with buttons in some other windows,
but I solved that by checking if the active object is a "button" and then hide the caption.
I tried to do the same with inventory, but I don't know how to check if a slot is empty or not.

Best regards,
Spyros

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Caption window
« Reply #1 on: November 28, 2008, 08:48:14 PM »

If you're over an empty slot, you're actually pointing to the inventory window itself. So checking of the type is "button" or "window" should do the trick for you, I think.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Birdline

  • Supporter
  • Occasional poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 57
    • View Profile
    • Birdline Web Site
Re: Caption window
« Reply #2 on: November 28, 2008, 09:00:56 PM »

Yes, it is a "window"
Now it works  :D ,
Thank you very much Mnemonic

Spyros
 

Page created in 0.053 seconds with 19 queries.