Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently September 29th, 2024, 1:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: QTVR MouseOverHotspots
PostPosted: May 6th, 2005, 1:44 pm 
Offline
User avatar

Joined: November 4th, 2004, 5:04 pm
Posts: 310
Location: New Zealand
Opus: Evolution 8.5
OS: Windows 7 Professional
System: AMD Phenom(tm) II X6 1055T Processor 2.80GHz
Using the new MouseOverHSCallback facility
I want to show some initially hidden text on screen (not just in the debug trace box as it currently does)
What code do I write in order to facilitate this?

e.g I have a "variable changed" <HotspotID> and a list of conditions
but you have to left click the mouse to action this whereas I'm looking for a rollover reveal prior to left clicking.

Thanks

Pete :oops: :oops:


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 6th, 2005, 1:56 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Just replace the debug output from the help example with a Show() (or Hide()) on the objects you want to appear/disappear. A simple example:
Code:
function MouseOverHSCallback(MOHSObject)
{
   if (MOHSObject.bEntering)
   {
      if (MOHSObject.nID == 1)
      {
         Test1.Show()
      }
   }
   else
   {
      if (MOHSObject.nID == 1)
      {
         Test1.Hide()
      }
   }
}

This would obviously be more complex if your QTVR movie has multiple nodes, since hotspot ids are only unique within each node.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 6th, 2005, 2:28 pm 
Offline
User avatar

Joined: November 4th, 2004, 5:04 pm
Posts: 310
Location: New Zealand
Opus: Evolution 8.5
OS: Windows 7 Professional
System: AMD Phenom(tm) II X6 1055T Processor 2.80GHz
Duncan
AS ever you guys are stars

thanks

I have actually just managed to work it out myself - but not as neatly as this.


Pete


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group