<?xml version="1.0" encoding="UTF-8"?>
<actor PGFVersion="0.19" id="id679663" GSCVersion="0.10.4.1"><attributes><text id="name">PauseMenu Camera</text><real id="time">0</real><point id="position"><real id="x">0</real><real id="y">0</real></point><size id="size"><real id="width">20</real><real id="height">20</real></size><angle id="rotation">0</angle><color id="color"><real id="red">1</real><real id="green">1</real><real id="blue">1</real><real id="alpha">1</real></color><image id="image"></image><text id="tags"></text><boolean id="preloadArt">false</boolean></attributes><behaviors><behavior id="id547306" class="ControlCameraBehavior" enabled="true"><attributes><text id="name">Control Camera</text><text id="bundleName">ControlCamera.behavior</text></attributes></behavior><behavior id="id894158" class="NoteBehavior" enabled="true"><attributes><text id="name">Note</text><text id="bundleName">Note.behavior</text><text id="note">In the expression below for the  interpolate, the ( game.Screen.Size.Width / game.Screen.Size.Height ) ratio will give you the aspect ratio of the current device. 320 is the height of the existing iPhone project (576x320) to figure out the relative width seen for the cropped project. Dividing by 2 will give half that size so the camera knows to go that far.
</text></attributes></behavior><behavior enabled="true" id="id131358" class="RuleBehavior"><attributes><text id="name">Rule: Use Crop instead of letterbox to bring the menu in correctly</text><text id="bundleName">Rule.behavior</text><real id="compoundConditionKind">0</real></attributes><conditions><condition id="id517310" pluginPredicateTypeIndex="0" eventType="mouse position"><attributes><index id="conditionType">1</index><text id="subjectAttribute">game.attributes.id401479</text></attributes><predicate type="boolean"><attributes><index id="RHS">1</index></attributes></predicate></condition></conditions><behaviors><behavior id="id610590" class="InterpolateBehavior" enabled="true"><attributes><text id="name">Interpolate: Slide in the Pause Menu by moving this actor which controls the camera. For cropped/overscan presentation on other devices.</text><text id="bundleName">Interpolate.behavior</text><boolean id="runToCompletion">true</boolean><text id="targetAttribute">self.attributes.position.x</text><real id="finalValue"><expression><string>100+(</string><reference keypath="game.devices.screen.size.width"/><string>/</string><reference keypath="game.devices.screen.size.height"/><string>)*320/2</string></expression></real><real id="duration">0.5</real><index id="easing">0</index></attributes></behavior></behaviors><elseBehaviors><behavior id="id952955" class="InterpolateBehavior" enabled="true"><attributes><text id="name">Interpolate: Slide in the Pause Menu by moving this actor which controls the camera. For letterbox view, this is a hard coded value</text><text id="bundleName">Interpolate.behavior</text><boolean id="runToCompletion">true</boolean><text id="targetAttribute">self.attributes.position.x</text><real id="finalValue">390</real><real id="duration">0.5</real><index id="easing">0</index></attributes></behavior></elseBehaviors></behavior><behavior enabled="true" id="id307948" class="RuleBehavior"><attributes><text id="name">Rule: Hide the menu.</text><text id="bundleName">Rule.behavior</text><real id="compoundConditionKind">0</real></attributes><conditions><condition id="id566692" eventType="mouse button"><attributes><index id="conditionType">1</index><text id="subjectAttribute">game.attributes.id733446</text></attributes><predicate type="number"><attributes><text id="operator">=</text><real id="RHS">0</real></attributes></predicate></condition></conditions><behaviors><behavior id="id194677" class="InterpolateBehavior" enabled="true"><attributes><text id="name">Interpolate</text><text id="bundleName">Interpolate.behavior</text><boolean id="runToCompletion">true</boolean><text id="targetAttribute">self.attributes.position.x</text><real id="finalValue">550</real><real id="duration">0.5</real><index id="easing">0</index></attributes></behavior><behavior enabled="true" id="id468118" class="RuleBehavior"><attributes><text id="name">Rule: Unpause the game once menu is completely hidden</text><text id="bundleName">Rule.behavior</text><real id="compoundConditionKind">0</real></attributes><conditions><condition id="id914396" eventType="mouse button"><attributes><index id="conditionType">1</index><text id="subjectAttribute">self.attributes.position.x</text></attributes><predicate type="number"><attributes><text id="operator">=</text><real id="RHS">550</real></attributes></predicate></condition></conditions><behaviors><behavior id="id463076" class="UnpauseGameAction" enabled="true"><attributes><text id="name">Unpause Game</text><text id="bundleName">UnpauseGame.behavior</text></attributes></behavior></behaviors><elseBehaviors/></behavior></behaviors><elseBehaviors/></behavior></behaviors><aspects><graphics><attributes><boolean id="visible">false</boolean><enumeration id="blendingMode">0</enumeration><enumeration id="horizontalWrap">0</enumeration><enumeration id="verticalWrap">0</enumeration><enumeration id="horizontalAnchor">0</enumeration><enumeration id="verticalAnchor">0</enumeration><boolean id="flipHorizontally">false</boolean><boolean id="flipVertically">false</boolean><integer id="tileWidth">20</integer><integer id="tileHeight">20</integer></attributes></graphics><motion><attributes><point id="linearVelocity"><real id="x">0</real><real id="y">0</real></point><real id="angularVelocity">0</real><real id="maxSpeed">0</real><boolean id="applyMaxSpeed">false</boolean></attributes></motion><physics><attributes><real id="density">1</real><real id="friction">3</real><real id="restitution">1</real><boolean id="fixedRotation">false</boolean><boolean id="movable">false</boolean><enumeration id="collisionShape">0</enumeration><real id="drag">0</real><real id="angularDrag">0</real></attributes></physics></aspects></actor>
