In my map I have 2 buttons within a single dialog which both do the exact same action.
What I want, is to make it so that when you hover the mouse over one of the buttons (highlighting it), it will also highlight the other button as well.
Is there an event (or other means) to accomplish this?
I've been looking at the Mouse Move event and UI position conditions, but I can't figure out how find (or link) the entire area that the button covers. As the mouse UI position comparison only asks for an X/Y value.
Any ideas on how to trigger that up?
EDIT: Nevermind. Went right past the 'Within Bounds' condition -_-
Still can't seem to find a way to make the button look permanently highlighted with triggers though. Going by some other threads I'm reading, this can only be done by making whole new image asset for the button that only contains 2 highlighted images instead of 1 of each, highlighted and non.
EDIT 2: I managed to hook them up. But for some silly reason the buttons don't highlight in synchronization. The button i have triggered to be highlighted does so just a fraction of a second after the true hovered button highlights. Hmm... now i'm really stuck!
I'm thinking something along the lines of this:
1) Create two new image assets, one highlighted and one normal.
2) Set both buttons' images to the normal
3) Set a trigger to activate when mouse is over either button
4) Trigger changes both images to the highlighted
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
In my map I have 2 buttons within a single dialog which both do the exact same action. What I want, is to make it so that when you hover the mouse over one of the buttons (highlighting it), it will also highlight the other button as well.
Is there an event (or other means) to accomplish this?
I dd not find any native event for this, so only a workaround involving tracking the mouse position comes to my mind.
I've been looking at the Mouse Move event and UI position conditions, but I can't figure out how find (or link) the entire area that the button covers. As the mouse UI position comparison only asks for an X/Y value.
Any ideas on how to trigger that up?
EDIT: Nevermind. Went right past the 'Within Bounds' condition -_-
Still can't seem to find a way to make the button look permanently highlighted with triggers though. Going by some other threads I'm reading, this can only be done by making whole new image asset for the button that only contains 2 highlighted images instead of 1 of each, highlighted and non.
EDIT 2: I managed to hook them up. But for some silly reason the buttons don't highlight in synchronization. The button i have triggered to be highlighted does so just a fraction of a second after the true hovered button highlights. Hmm... now i'm really stuck!
@Syncourt: Go
I'm thinking something along the lines of this:
1) Create two new image assets, one highlighted and one normal.
2) Set both buttons' images to the normal
3) Set a trigger to activate when mouse is over either button
4) Trigger changes both images to the highlighted