April 24, 2024, 03:22:43 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
IRC channel - server:
waelisch.de
channel:
#wme
(
read more
)
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Change image at Button
« previous
next »
Pages: [
1
]
Print
Author
Topic: Change image at Button (Read 4212 times)
0 Members and 1 Guest are viewing this topic.
chorl41a
Lurker
Karma: 0
Offline
Posts: 19
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
Gender:
Posts: 212
Re: Change image at Button
«
Reply #1 on:
June 06, 2011, 09:02:21 PM »
Using script you can use:
Code: WME Script
button.
SetHoverImage
(
"path to image"
)
;
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
Posts: 19
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
Gender:
Posts: 212
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
on
"MouseEntry"
{
set
new
image
}
on
"MouseLeave"
{
set image back to original
}
Logged
chorl41a
Lurker
Karma: 0
Offline
Posts: 19
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
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Change image at Button