Example #1
0
        // Save Setting values to the App storage alotted for Pilot37_RCCar
        private void SavePress(Button b)
        {
            Globals._localSettings.Values["fastForwardSetting"] = Globals._fastForwardSetting;
            Globals._localSettings.Values["slowForwardSetting"] = Globals._slowForwardSetting;
            Globals._localSettings.Values["reverseSetting"]     = Globals._reverseSetting;
            Globals._localSettings.Values["sharpTurnSetting"]   = Globals._sharpTurnSetting;
            Globals._localSettings.Values["softTurnSetting"]    = Globals._softTurnSetting;

            Globals._localSettings.Values["fastForwardValue1"] = Convert.ToString(Globals.FAST_SPEED_1);
            Globals._localSettings.Values["fastForwardValue2"] = Convert.ToString(Globals.FAST_SPEED_2);
            Globals._localSettings.Values["slowForwardValue1"] = Convert.ToString(Globals.SLOW_SPEED_1);
            Globals._localSettings.Values["slowForwardValue2"] = Convert.ToString(Globals.SLOW_SPEED_2);
            Globals._localSettings.Values["reverseValue1"]     = Convert.ToString(Globals.REVERSE_SPEED_1);
            Globals._localSettings.Values["reverseValue2"]     = Convert.ToString(Globals.REVERSE_SPEED_2);
            Globals._localSettings.Values["sharpRightValue1"]  = Convert.ToString(Globals.SHARP_RIGHT_1);
            Globals._localSettings.Values["sharpRightValue2"]  = Convert.ToString(Globals.SHARP_RIGHT_2);
            Globals._localSettings.Values["sharpLeftValue1"]   = Convert.ToString(Globals.SHARP_LEFT_1);
            Globals._localSettings.Values["sharpLeftValue2"]   = Convert.ToString(Globals.SHARP_LEFT_2);
            Globals._localSettings.Values["softRightValue1"]   = Convert.ToString(Globals.SOFT_RIGHT_1);
            Globals._localSettings.Values["softRightValue2"]   = Convert.ToString(Globals.SOFT_RIGHT_2);
            Globals._localSettings.Values["softLeftValue1"]    = Convert.ToString(Globals.SOFT_LEFT_1);
            Globals._localSettings.Values["softLeftValue2"]    = Convert.ToString(Globals.SOFT_LEFT_2);

            FadeStoryboard.Begin();
        }
Example #2
0
 private void LightningLookHandler(object sender, StateChangedEventArgs e)
 {
     if (damaged)
     {
         FadeStoryboard.Resume();
         //damage the Entity
         //ALso, there is a timer on the XAML for the duration of the animation, might want to set the seconds (third row) to however long is needed for damage health(like 1 damage per second)
     }
     else
     {
         FadeStoryboard.Begin();
         //Damage the Entity at this Point
         //ALso, there is a timer on the XAML for the duration of the animation, might want to set the seconds (third row) to however long is needed for damage health(like 1 damage per second)
         //this is just so the animation can be paused and stopped for the fading
         damaged = true;
     }
 }