Jibble

Author Topic: MODULE: Floating Hotspot Label  (Read 1973 times)

Calin Leafshade

  • Long live King Cat!
    • I can help with making music
    • I can help with voice acting
    • Calin Leafshade worked on one or more games that won an AGS Award!
    •  
    • Calin Leafshade worked on one or more games that was nominated for an AGS Award!
MODULE: Floating Hotspot Label
« 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.  
« Last Edit: 11 Feb 2014, 17:17 by Calin Leafshade »

Monsieur OUXX

  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot
« Reply #1 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.
 

Snarky

  • Global Moderator
  • Private Insultant
    • Best Innovation Award Winner 2018, for his numerous additions to the AGS open source ecosystem including the new Awards Ceremony client and modules
    • Snarky worked on one or more games that won an AGS Award!
    •  
    • Snarky worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot
« Reply #2 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"?

Calin Leafshade

  • Long live King Cat!
    • I can help with making music
    • I can help with voice acting
    • Calin Leafshade worked on one or more games that won an AGS Award!
    •  
    • Calin Leafshade worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot
« Reply #3 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.

Dualnames

  • Local Moderator
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot Label
« Reply #4 on: 11 Feb 2014, 20:30 »
"should do the sexy slide in animation" mhhhh...this module sounds hot. Regardless, thanks for sharing.
No more military army stuff. I'm alive and back.

cat

  • Mittens Baronet
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot Label
« Reply #5 on: 21 May 2019, 20:26 »
The link is down. Does anyone have a mirror? Or is there a similar module around?

Slasher

  • slasher
    • I can help with AGS tutoring
    • Lifetime Achievement Award Winner
    • I can help with scripting
    • I can help with story design
    • Slasher worked on one or more games that won an AGS Award!
    •  
    • Slasher worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot Label
« Reply #6 on: 21 May 2019, 20:36 »
« Last Edit: 23 May 2019, 15:54 by Slasher »

cat

  • Mittens Baronet
    • cat worked on one or more games that won an AGS Award!
    •  
    • cat worked on one or more games that was nominated for an AGS Award!
Re: MODULE: Floating Hotspot Label
« Reply #7 on: 22 May 2019, 21:04 »
Thanks!