Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Tue 16/07/2024 01:35:58

Title: Overhotspot text needs increased
Post by: Ghostlady on Tue 16/07/2024 01:35:58
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:    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
Title: Re: Overhotspot text needs increased
Post by: Crimson Wizard on Tue 16/07/2024 04:11:50
What is the size of the gui and label? It may be simply that they are not large enough.
Title: Re: Overhotspot text needs increased
Post by: Ghostlady on Tue 16/07/2024 17:09:49
The gui is Height 240 and Width 320.  Can it be the text is larger than the hotspot?
Title: Re: Overhotspot text needs increased
Post by: Eon_Star on Tue 16/07/2024 17:42:37
Hie. You may resize the label. I had the similar problem. Just increase the label size and it should work.
Title: Re: Overhotspot text needs increased
Post by: Ghostlady on Wed 17/07/2024 04:01:06
That was it! Yikes how did I miss that?  I kept making the gui bigger. Thank you so much.