<?xml version="1.0" encoding="ISO-8859-1"?>
<head>
<ruleBase>
<rule id="rText1" var="service.currentFocus" value="3" comparator="eq"/>
<rule id="rText2" var="service.currentFocus" value="4" comparator="eq"/>
<rule id="rText3" var="service.currentFocus" value="5" comparator="eq"/>
</ruleBase>
<regionBase>
<region id="backgroundReg" width="100%" height="100%" zIndex="1"/>
<!--Region para mostrar el texto segun la opcion del menu-->
<region id="regTextDesc" width="45%" height="18.5%" left="35%" top="6.7%" zIndex="3" />
<!--Region para cada opcion del menu-->
<region id="menu1Reg" left="25%" top="91.7%" width="11.7%" height="6.51%" zIndex="3"/>
<region id="menu2Reg" left="47.5%" top="91.7%" width="11.7%" height="6.51%" zIndex="3"/>
<region id="menu3Reg" left="70%" top="91.7%" width="11.7%" height="6.51%" zIndex="3"/>
</regionBase>
<descriptorBase>
<descriptor id="backgroundDesc" region="backgroundReg" transIn="trans1"/>
<descriptor id="descTextDesc" region="regTextDesc" transIn="trans1" focusIndex="2" moveRight="3" moveLeft="5"/>
<!--Descriptor para las opciones del menu-->
<descriptor id="menu1Desc" region="menu1Reg" focusIndex="3" moveRight="4" moveLeft="2"/>
<descriptor id="menu2Desc" region="menu2Reg" focusIndex="4" moveRight="5" moveLeft="3"/>
<descriptor id="menu3Desc" region="menu3Reg" focusIndex="5" moveRight="3" moveLeft="4"/>
</descriptorBase>
<connectorBase>
<importBase documentURI="causalConnBase.ncl" alias="conEx"/>
</connectorBase>
</head>
<body>
<port id="entry" component="background"/>
<media id="globalVar" type="application/x-ncl-settings">
<property name="service.currentFocus" value="3"/>
</media>
<media id="background" src="media/background.jpg" descriptor="backgroundDesc">
<area id="segHead" begin="5s"/><!-- Sirve para decir cuando empieza-->
</media>
<!-- Mostramos el menu -->
<port id="pMenu1" component="opcion1"/>
<port id="pMenu2" component="opcion2"/>
<port id="pMenu3" component="opcion3"/>
<media id="texto" src="media/choro.txt" descriptor="descTextDesc" type="text/plain" >
<property name="fontFamily" value="Tiresias"/>
<property name="fontSize" value="30"/>
<property name="fontColor" value="white"/>
<property name="fontWeight" value="bold"/>
</media>
<media id="opcion1" src="media/rock.png" descriptor="menu1Desc"/>
<media id="opcion2" src="media/techno.jpg" descriptor="menu2Desc"/>
<media id="opcion3" src="media/cartoon.gif" descriptor="menu3Desc"/>
<switch id="textos">
<bindRule constituent="texto1" rule="rText1"/>
<bindRule constituent="texto2" rule="rText2"/>
<bindRule constituent="texto3" rule="rText3"/>
<defaultComponent component="texto3"/>
<media id="texto1" src="media/rock.txt" descriptor="descTextDesc" type="text/plain" />
<media id="texto2" src="media/techno.txt" descriptor="descTextDesc" type="text/plain"/>
<media id="texto3" src="media/cartoon.txt" descriptor="descTextDesc" type="text/plain"/>
</switch>
<link id="lHeadText" xconnector="conEx#onBeginStart">
<bind role="onBegin" component="background" interface="segHead"/>
<bind role="start" component="texto"/>
</link>
<link id="lmenu" xconnector="conEx#onKeySelectionSetStartStop">
<bind role="onSelection" component="texto1"/>
<bind role="onSelection" component="texto2"/>
<bind role="onSelection" component="texto3"/>
<bind component="globalVar" interface="service.currentFocus" role="set">
<bindParam name="var" value="5"/>
</bind>
<bind role="stop" component="textos"/>
<bind role="start" component="textos"/>
</link>
</body>
</ncl>