Change label text when mouse cursor is over a button

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
Peppigno
Thug
Posts: 20
Joined: Mon Jan 14, 2008 5:35 pm

Change label text when mouse cursor is over a button

Post by Peppigno »

Hi people. I need help with code... again :giggle:.

I have two label text with two buttons, as this:

Code: Select all

var localized string mylabel1;
var localized string mylabel2;

var MenuUIActionButtonWindow	button1;
var MenuUIActionButtonWindow	button2;
So, in the default properties I've set a default text for labels... but I would it appears the mylabel1's text when the player move the cursor or select button1, and viceversa... button2->mylabel2 text.

What's the ideal code to do this? Anyway if there's a simplest way is really appreciate :mrgreen:.
Peppigno
Post Reply