Source language: Translate to:

Generate a polygon/hotspot

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Generate a polygon/hotspot

Postby stagmannz » Sat Jan 26, 2013 9:05 pm

Hey,

Anyway to generate a new drag-able object from a script. I.e I want to allow the user to click on a button that creates a drag-able object, they can then move it to a spot on a map and keep doing it. Once finished the user can save a screenshot using another plugin.

Ideas?
stagmannz
 
Posts: 15
Joined: Tue Feb 22, 2011 11:34 pm

Re: Generate a polygon/hotspot

Postby HPW » Sun Jan 27, 2013 1:10 am

Hello,

Object creation is currently not possible by code.
When you only need a known amount of objects, you could create them all out of visible screen and move them in when needed.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Generate a polygon/hotspot

Postby Neosoft Support » Mon Jan 28, 2013 12:31 pm

You can use the SetObjectFilename action to load an image into one of the pre-created polygon objects.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Generate a polygon/hotspot

Postby stagmannz » Tue Jan 29, 2013 12:16 am

Great, cheers guys. Not quite what I was after but might be a good step in the right direction.
stagmannz
 
Posts: 15
Joined: Tue Feb 22, 2011 11:34 pm


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests