GUI Help( kind of)

Started by Candle, Sun 07/05/2006 11:31:07

Previous topic - Next topic

Candle

I'm using SSH Module 'CombinationLock and I want to have a button on the page they can click to go back to the same room.
But it seems when the lock gui is on the page showing and buttons or hotspots won't work.
How can I send them back to the last room if they can't due to the gui lock showing in the window.

Ashen

Is the GUI set to 'Popup modal'? If so, one way around this would be to set it to 'Normal', which will allow you to click on the screen behind the GUI. However, that would also allow the player to run any other interactions in the room, which might get a bit annoying. You could add an on_mouse_click function to the room script,  to intercept clicks when the Lock GUI is on, and only allow clicks on the hotspot you want.

Alternatively, it may be easier to just add a button to the Lock GUI to allow the player to turn it off and get at the screen behind (or one that'll take them back automatically).
I know what you're thinking ... Don't think that.

Candle

Thank you for the help/ I think the button on the gui will work.

SMF spam blocked by CleanTalk