Aha - thanks for the idea! I've been fighting the RMB all night, but it was as simple as updating the pushed graphic in the on_event.
I think the problem stems from trying to make a hybrid Sierra/LucasArts GUI. I wanted the RMB to only cycle through cursors, while allowing the LMB to interact freely with the GUI, but the GUI wanted to treat both buttons as the same. Now that I have one button working, I can probably make something more global with this.
Code: ags
Thanks again!
I think the problem stems from trying to make a hybrid Sierra/LucasArts GUI. I wanted the RMB to only cycle through cursors, while allowing the LMB to interact freely with the GUI, but the GUI wanted to treat both buttons as the same. Now that I have one button working, I can probably make something more global with this.
function on_event(EventType event, int data) {
if (mouse.IsButtonDown(eMouseLeft)) { {
btnWalk.PushedGraphic = 99; // Set the button to pushed
}
if (mouse.IsButtonDown(eMouseRight)) {
btnWalk.PushedGraphic = 98; // Set the button to normal
}
}
Thanks again!