Save Load Quit Gui showing hotspots behind it

Started by Ghostlady, Wed 11/03/2009 00:17:08

Previous topic - Next topic

Ghostlady

My gui that pops up for the save/load/quit etc. catches hotspots behind it and changes the cursor.  Is there anyway around this?
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Ultra Magnus

If you mean actually beneath (through) the Gui, simply put if (GUI.GetAtScreenXY(mouse.x, mouse.y)==null) in your cursor switching code.

If you mean anywhere on the screen when the Gui's open, then make a custom bool variable called something like isguiopen, then put if (isguiopen==false) in your cursor switching code, isguiopen=true in the code when you open the Guis and isguiopen=false when you close them.

At least, that's how I does it.
I don't mean to sound bitter, cold, or cruel, but I am, so that's how it comes out.

I'm tired of pretending I'm not bitchin', a total frickin' rock star from Mars.

Ghostlady

I mean beneath.  I'll try your suggestion.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Khris

Just like the Default game's built-in panel, change the GUI's Visibility to "Pause game when shown".

Ghostlady

It is set to that in the gui properties.  That's why I was somewhat surprised that the hotspots were showing up in the gui.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Khris

In this case, are you using rep_ex_always to change the cursor mode over a hotspot?

Ghostlady

I am using this in the rep_ex:

  if (GetLocationType(mouse.x,mouse.y) > 0) {
     if(Mouse.Mode!=eModeUseinv) mouse.UseModeGraphic(eModePointer);}
  else {
     Mouse.UseDefaultGraphic(); }
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

SMF spam blocked by CleanTalk