Can a MouseYPos GUI remain visible after an icon is selected?

Started by MRollins, Tue 28/04/2009 16:52:30

Previous topic - Next topic

MRollins

Hello,

Is there a way to make a MouseYPos GUI remain visible after an icon is selected? I am using the drop down gui in the old sierra style but I am also incorporating the inventory in the same gui so there is essentially an inventory window in the main gui but I am finding that once I click the "Select" icon to pick an item the gui is disappearing and then I have to mouse back up to make it reappear. Is there a way to eliminate the disappearance?

Thanks in advance.

Matt

Trent R

Change the visibility to 'Normal, initially on' for the gui. Then you'll have to script some code that lets it scroll in in your rep_exec. There was a thread recently that asked this, here.

The behavior you mention is just what happens (AFAIK) with the 'When mouse moves to top of screen' visibility mode.


~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

RickJ

Here is simple example of how to turn such a GUI on when the mouse is over top and off when mouse is away.  It Assumes that hte GUI is at the very to of screen.

Code: ags

*** Global Script ***
function repeatedlt_execute() (

     // Make Y Gui visible
     if (mouse.Y<gMyGui.Height) {
          gMyGui.Visible = true;
     } 
     else {
          gMyGui.Visible = false;
     } 
)


To make it slide in and out of view it wouold be necessary to increment/decrement the Gui's Y position eaqch scan until it got to the desired position.

SMF spam blocked by CleanTalk