Adventure Game Studio | Forums

AGS Support => Modules & Plugins => Topic started by: Calin Leafshade on 09 Feb 2014, 10:08

Title: MODULE: Floating Hotspot Label
Post by: Calin Leafshade on 09 Feb 2014, 10:08
I made a little module a while ago and lots of people have PMed me because the link went dead.

It shows a label next to the mouse cursor whenever the player hovers over an interactive space (hotspot/object/character).

I found it in Murder on the Titania so here it is: https://dl.dropboxusercontent.com/u/27247158/Modules/FloatingHotspot.scm

Here's the header. It's fair self explanatory.

SetSlideIn sets whether the hotspot should do the sexy slide in animation. On by default.
SetSpring sets whether or not the hotspot label should dampen the mouse movement. On by default.
I forget exactly what SetVerticalOffset does but I assumes its how much lower than the mouse the label should display. -5 by default.

Code: Adventure Game Studio
  1. managed struct FloatingHotspot
  2. {
  3.   import static void SetMaxWidth(int width);
  4.   import static void SetFont(FontType font);
  5.   import static void SetColor(int color);
  6.   import static void SetSlideIn(bool on);
  7.   import static void SetSpring(bool on);
  8.   import static void SetVerticalOffset(int offset);
  9.   import static void UseGui(GUI *toUse);
  10.   import static void UseOverlay();
  11. };
  12.  
Title: Re: MODULE: Floating Hotspot
Post by: Monsieur OUXX on 11 Feb 2014, 16:26
OK but what does it do? What do you mean by "floating"?
In my head I picture a hotspot levitating up and down up in the air.
Title: Re: MODULE: Floating Hotspot
Post by: Snarky on 11 Feb 2014, 16:48
Yes, wtf is a floating hotspot? And AGS hotspots are not visible, so what does it mean that it "slides in"?
Title: Re: MODULE: Floating Hotspot
Post by: Calin Leafshade on 11 Feb 2014, 17:16
Err yea, sorry. I forgot that without the context of the original thread this makes literally no sense.

what i mean is that there is a floating hotspot *label* that follows the cursor when the mouse is over a hotspot/object/character.

I will update the OP.
Title: Re: MODULE: Floating Hotspot Label
Post by: Dualnames on 11 Feb 2014, 20:30
"should do the sexy slide in animation" mhhhh...this module sounds hot. Regardless, thanks for sharing.
Title: Re: MODULE: Floating Hotspot Label
Post by: cat on 21 May 2019, 20:26
The link is down. Does anyone have a mirror? Or is there a similar module around?
Title: Re: MODULE: Floating Hotspot Label
Post by: Slasher on 21 May 2019, 20:36
Here you go

FloatingHotspot Module...

http://www.mediafire.com/file/us7deqbaarkni9v/FloatingHotspot.scm
Title: Re: MODULE: Floating Hotspot Label
Post by: cat on 22 May 2019, 21:04
Thanks!