This may sound like a stupid question but I am having problems using the devices tag. In addition to my iPad 2, I've just purchased a new Acer Iconia Tablet running Android 3.0.1. I've also been using the emulator Klaus has provided to test iphone and ipad. I've created a skin that loads buttons based on the device. I am using device="tablet" which works on ipad's and device="mobile" which works on iphone. Now I've tested this on a android mobile such as an HTC Sensation and the mobile buttons come up as they should. My problem is that the new Acer tablet loads the mobile buttons and not the tablet buttons. Anyone have any ideas as to the proper usage? Thanks, Robert
<!--tablet devices-->
Code
<style name="button_nav" devices="tablet" url="buttons3.png" parent="sidebar_nav" keep="true" />
<plugin name="up" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="20" zorder="10001" style="button_nav" crop="19|10|58|65" ondown="set(vlookat_moveforce,-1);" onup="set(vlookat_moveforce,0);" />
<plugin name="down" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="72" zorder="10001" style="button_nav" crop="80|10|58|65" ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);" />
<plugin name="left" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="124" zorder="10001" style="button_nav" crop= "142|10|58|65" ondown="set(hlookat_moveforce,-1);" onup="set(hlookat_moveforce,0);" />
<plugin name="right" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="176" zorder="10001" style="button_nav" crop="204|10|58|65" ondown="set(hlookat_moveforce,+1);" onup="set(hlookat_moveforce,0);" />
<plugin name="in" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="228" zorder="10001" style="button_nav" crop="267|10|58|65" ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" />
<plugin name="out" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="280" zorder="10001" style="button_nav" crop="328|10|58|65" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />
<plugin name="gyro_button" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="332" zorder="10001" style="button_nav" crop="889|10|58|65" onclick="set(plugin[gyro].enabled,true);set(autorotate.enabled,false);" />
<plugin name="touch" devices="tablet" visible="true" align="topright" scale=".8" x="19" y="384" zorder="10001" style="button_nav" crop="952|10|58|65" ondown="set(plugin[gyro].enabled,false); set(autorotate.enabled,true);" />
<plugin name="help" devices="tablet" visible="true" align="topright" scale=".8" x="20" y="436" zorder="10001" style="button_nav" crop="574|10|58|65" ondown="js(call_help());" />
Alles anzeigen
<!--iphone/mobile devices-->
Code
<style name="idevices" devices="mobile" url="idevices.png" keep="true" />
<plugin name="up" devices="mobile" visible="true" alpha=".70" scale="1.10" align="topcenter" x="0" y="0" zorder="10001" style="idevices" crop="0|0|59|70" ondown="set(vlookat_moveforce,-1);" onup="set(vlookat_moveforce,0);" />
<plugin name="down" devices="mobile" visible="true" alpha=".70" scale="1.10" align="bottomcenter" x="0" y="0" zorder="10001" style="idevices" crop="60|0|59|70" ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);" />
<plugin name="left" devices="mobile" visible="true" alpha=".70" scale="1.10" align="rightcenter" x="0" y="0" zorder="10001" style="idevices" crop= "130|0|59|70" ondown="set(hlookat_moveforce,+1);" onup="set(hlookat_moveforce,0);" />
<plugin name="right" devices="mobile" visible="true" alpha=".70" scale="1.10" align="leftcenter" x="0" y="0" zorder="10001" style="idevices" crop="200|0|59|70" ondown="set(hlookat_moveforce,-1);" onup="set(hlookat_moveforce,0);" />
<plugin name="in" devices="mobile" visible="true" alpha=".70" scale="1.10" align="topright" x="60" y="0" zorder="10001" style="idevices" crop="270|0|59|70" ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" />
<plugin name="out" devices="mobile" visible="true" alpha=".70" scale="1.10" align="topright" x="0" y="0" zorder="10001" style="idevices" crop="330|0|59|70" ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />
<plugin name="help" devices="mobile" visible="true" alpha=".70" scale="1.10" align="bottomright" x="120" y="0" zorder="10001" style="idevices" crop="570|0|59|70" ondown="js(call_help());" />
<plugin name="contact" devices="mobile" visible="true" alpha=".70" scale="1.10" align="bottomright" x="70" y="0" zorder="10001" style="idevices" crop="500|0|59|70" ondown="js(call_contact());" />
<plugin name="about" devices="mobile" visible="true" alpha=".70" scale="1.10" align="bottomright" x="0" y="0" zorder="10001" style="idevices" crop="630|0|59|70" ondown="js(call_about());" />
<plugin name="soundon" devices="mobile" visible="false" alpha=".70" scale="1.10" align="bottomleft" x="5" y="0" zorder="10001" style="idevices" crop="390|0|59|70" ondown="" />
<plugin name="soundoff" devices="mobile" visible="false" alpha=".70" scale="1.10" align="bottomleft" x="5" y="0" zorder="10001" style="idevices" crop="450|0|59|70" ondown="" />
Alles anzeigen