Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Change image at Button  (Read 4205 times)

0 Members and 1 Guest are viewing this topic.

chorl41a

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • View Profile
Change image at Button
« on: June 06, 2011, 01:49:47 PM »

Hi Friends.

I write for to ask:

How I change the picture of a button when the cursor of the mouse passed on it?

Without more.

Thanks you very much.

I wait reply.
Logged

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: Change image at Button
« Reply #1 on: June 06, 2011, 09:02:21 PM »

Using script you can use:

Code: WME Script
  1. button.SetHoverImage("path to image");
  2.  

From window editor highlight the button and find the property "Image Hover" (it is under "7 - Appearance Hover") and set the image path there.
Logged

chorl41a

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • View Profile
Re: Change image at Button
« Reply #2 on: June 07, 2011, 01:26:15 PM »

Thank you for his reply.

But the button is a image in a scene
and I need that it change when the mouse it´s on entity region.

Thanks for all.
Logged

anarchist

  • Regular poster
  • ***
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 212
    • View Profile
Re: Change image at Button
« Reply #3 on: June 07, 2011, 08:16:09 PM »

Then you can use Mouse events. More specifically:

Code: WME Script
  1. on "MouseEntry"
  2. {
  3.   set new image
  4. }
  5.  
  6. on "MouseLeave"
  7. {
  8.   set image back to original
  9. }
  10.  
Logged

chorl41a

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
    • View Profile
Re: Change image at Button
« Reply #4 on: June 08, 2011, 09:17:55 AM »

That's what I wanted.

Thank you very very much for your help.
Logged
 

Page created in 0.128 seconds with 24 queries.