Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Questions and Answers >> map- how do I avoid an offset?
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1408288425

Message started by Steve Scott on Aug 17th, 2014, 11:13am

Title: map- how do I avoid an offset?
Post by Steve Scott on Aug 17th, 2014, 11:13am

In the map below, I have a 4x4 adornment and a 4x4 note.  The adornment has a query that finds the Teddy Roosevelt note.  How do I avoid the offset?  I want the Teddy Roosevelt to be directly on top of the adornment.




Thanks,
Steve



Title: Re: map- how do I avoid an offset?
Post by Mark Anderson on Aug 17th, 2014, 12:04pm

How about this in the $OnAdd of the adornment (or as the action of a smart adornment):

$Xpos = $Xpos(adornment);$Ypos = $Ypos(adornment);

Actually, on testing, this does work for a normal adornment but not for a smart adornment (I also tried fiddling with $CleanupAction).

Might I ask why you want the note to snap over the adornment? Is this a workaround for your issue with images in note icons?

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.