<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by alex (mmlab) -->
<rmml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="L:\collaborative-nir\program\Cscl3DWS\rmml\RMML.xsd">
	<include src="resimage.xml" />
	<composition   _name="CViewportHint" _class="CResizablePaper" _depth="-105" >
		<script>
			this.hintText="";
		</script>
		<image _name="lt" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(0,0,8,8);</script>
		</image>
		<image _name="ct" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(1,0,8,8);</script>
		</image>
		<image _name="rt" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(8,0,8,8);</script>
		</image>
		<image _name="lc" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(0,1,8,1);</script>
		</image>
		<image _name="cc" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(1,1,8,1);</script>
		</image>
		<image _name="rc" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(8,1,8,1);</script>
		</image>
		<image _name="lb" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(0,8,8,8);</script>
		</image>
		<image _name="cb" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(1,8,8,8);</script>
		</image>
		<image _name="rb" src="eval(ENVRPATH+'viewporthint.png')">
			<script>this.crop(8,8,8,8);</script>
		</image>
		<text _name="tHint" style="stlHint" _depth="-1" _x="3" _y="3"/>

		<script><![CDATA[
			function	setHintText(txt)
			{
				tHint.value = txt;
				this.hintText = txt;
				var nw = tHint.getMediaSize().width+6;
				var nh = tHint.getMediaSize().height+6;
				if( nw < 20)	nw = 20;
				if( nh < 20)		nh = 20;
				this.resize(nw, nh);
			}
		]]></script>
	</composition>

	<viewport _name="CHintViewport">
		<script event="onShowHint"><![CDATA[
			if( scene.hint == null)	exit();
			var s=Event.hint;
			if( Event.object!=null && typeof(Event.object)!="undefined" &&
				Event.object.hint!=null && typeof(Event.object.hint)!="undefined")
			{
				s = Event.object.hint;
			}
			if( s == "")		exit();
			scene.hint.setHintText(s);
			scene.hint.x = Event.x + 16 - scene.x;
			scene.hint.y = Event.y + 16 - scene.y;
			if( scene.hint.x+scene.hint.width > 790)
				scene.hint.x = 790 - scene.hint.width;
			if( scene.hint.y+scene.hint.height > Player.UI.tools.y - Player.UI.tools.height)
				scene.hint.y = Player.UI.tools.y - scene.hint.height - Player.UI.tools.height;
			if( scene.hint.y+scene.hint.height < Player.UI.location.height)
				scene.hint.y = Player.UI.location.height;
			scene.hint.visible=true;
			if( scene.onShowHint != undefined && scene.onShowHint!=null)
				scene.onShowHint(Event.hint);
		]]></script>
		<script event="onHideHint">
			trace("HideHint");
			if( scene.hint == null)	exit();
			scene.hint.visible=false;
		</script>
	</viewport>
</rmml>
