Пример #1
0
 private void OnChargeProgressUpdate(object source, BowEventArgs args)
 {
     Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Render, new Action(() =>
     {
         ChargeProgress = Math.Floor(args.ChargeProgress) >= args.MaxChargeLevel ? 1 : args.ChargeProgress % 1;
     }));
 }
Пример #2
0
 private void OnChargeLevelChange(object source, BowEventArgs args)
 {
     Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Render, new Action(() =>
     {
         ChargeLevel = args.ChargeLevel + 1;
     }));
 }
Пример #3
0
        private void UpdateInformation()
        {
            var dummyArgs = new BowEventArgs(Context);

            OnChargeProgressUpdate(this, dummyArgs);
            OnChargeLevelChange(this, dummyArgs);
            OnChargeLevelMaxUpdate(this, dummyArgs);
            OnSafijiivaCounterUpdate(this, new JobEventArgs(Context));
            OnWeaponSheathStateChange(this, new JobEventArgs(Context));
        }