Overhotspot text needs increased

Started by Ghostlady, Tue 16/07/2024 01:35:58

Previous topic - Next topic

Ghostlady

When the mouse rolls over a hotspot, text is displayed of what the hotspot is.  The text is being truncated.  How do I fix this?

This is in the global script: 
Code: ags
  x = mouse.x + 20;
  y = mouse.y + 20;

//  if (x - gGui9.Width > 320) { 
//      x = 320 - gGui9.Width; }
//  if (y - gGui9.Height > 200) { 
//      y = 200 - gGui9.Height; }
//  gGui9.SetPosition(mouse.x, mouse.y);
  
  if (mouse.y > 240/2) y = mouse.y - 10;
      else y = mouse.y+10;
  if (mouse.x > 320/2) x = mouse.x -10;
      else x = mouse.x+10;
  gGui9.SetPosition(mouse.x, mouse.y);

Here is a sample of the truncation:

https://mysterymanor.net/junk/SampleOverHotSpot.png
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

What is the size of the gui and label? It may be simply that they are not large enough.

Ghostlady

#2
The gui is Height 240 and Width 320.  Can it be the text is larger than the hotspot?
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Eon_Star

Hie. You may resize the label. I had the similar problem. Just increase the label size and it should work.

Ghostlady

That was it! Yikes how did I miss that?  I kept making the gui bigger. Thank you so much.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

SMF spam blocked by CleanTalk