hey cj quick suggestion
do you think it would be possible:
when i create a gui and set it to unclickable i can't detect if the mouse is over a Gui Object with GetGUIObjectAt(mouse.x,mouse.y);
any way to make that possible?
love,
eric
Well, you could do it this way:
if(mouse.x > 40) && if(mouse.x <50) && if(mouse.y > 80) && if(mouse.y <90) {
//response if mouse is inside these dimensions
}
And just plug in the coordinates for each side of the button..
The reason for this behaviour is that non-clickable GUIs are assumed to be displaying information only and the user doesn't need to interact with them.
The trouble is, AGS internally uses GetGUIObjectAt to figure out whether the user has clicked on a button and if so run interface_click - so if its behaviour was adjusted, the GUI would effectively become clickable anyway.
Is there a specific reason you need this - perhaps there's another way we can approach it?
there is a way around it but it's long and script heavy [for ghormak not me]
just a suggestion no worries if it can't be done
eric
Well, it could be done with an additional command, GetGUIObjectAtEvenIfItsNotClickable or something, so if you need it then I can add it to my list.
hehehe
no that's ok, the command name isn't long enough and i'd need it for mags anyways so no worries
1:
Don't impose a (non-zero) margin inside the text region of text window guis. We have borders for that.
For maximum versatility, I suggest,
a) Allow user defined margins including negative values.
b) Centre the text area background horizontally before cropping.
This scheme encompasses a lot of design possibilities.
2:
Non-blocking GUIOn(). I may be able to do it with a normally transparent Persistent GUI, or faking it with overlays and such, but ... yuk.
QuoteFor maximum versatility, I suggest,
a) Allow user defined margins including negative values.
b) Centre the text area background horizontally before cropping.
This scheme encompasses a lot of design possibilities.
Sounds reasonable to me, I'll add that to my list.
QuoteNon-blocking GUIOn(). I may be able to do it with a normally transparent Persistent GUI, or faking it with overlays and such, but ... yuk.
I'm not sure what you mean here. GUIOn is not blocking, but if the GUI you switch on is set as Popup Modal, then the game will be paused. If you don't want that, then set the GUI as "Normal".
Quote from: Pumaman on Fri 14/11/2003 09:24:35I'm not sure what you mean here. GUIOn is not blocking, but if the GUI you switch on is set as Popup Modal, then the game will be paused. If you don't want that, then set the GUI as "Normal".
Ok, good.
[edit]I thought I'd tried all the modes already, but ... well, somehow I missed it. All working now, thanks.