Exemplo n.º 1
0
 public override void FixedUpdate()
 {
     if (!m_isLoaded)
     {
         return;
     }
     if (Type == ActorType.enFollow)
     {
         if (MainAnim != null)
         {
             if (IsState_Fight)
             {//战斗时和非战斗时的animation的cullingType是不一样的
                 MainAnim.cullingType = AnimationCullingType.AlwaysAnimate;
             }
             else
             {
                 MainAnim.cullingType = AnimationCullingType.BasedOnRenderers;
             }
         }
     }
     base.FixedUpdate();
     if (null != WTF)
     {
         WTF.Tick();
     }
 }
Exemplo n.º 2
0
 public override void OnAddWill(WillToFight.ENAddWillType type, float[] paramList)
 {
     base.OnAddWill(type, paramList);
     if (null != WTF)
     {
         WTF.AddWill(type, paramList);
     }
 }
Exemplo n.º 3
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs _e)
        {
#if !DEBUG
            WTF.SuppressScriptErrors(true);
            WTF.Navigate(App.Current.Resources["urlApiStatistics"].ToString());
#endif

#if ENABLE_BLUR
            UIHelper.SetOwnerTransparency(Config.BackgroundA);
            //开启Blur透明效果
            BlurHelper.EnableBlur(this);
            AllowsTransparency = true;
#endif
            //刷新一下界面
            Reset();

            //开始获取公告
            new MOTDGetter().RunAsync((r) =>
            {
                textBoxGG.Text = r.Header + r.Separator + r.Message;
            });

            //检测更新
            new UpdateChecker().RunAsync((r) =>
            {
                if (r.NeedUpdate)
                {
                    new UpdateNoticeWindow(r)
                    {
                        Owner = this
                    }.ShowDialog();
                }
            });

            //哦,如果是第一次启动本软件,那么就显示一下提示吧!
            Task.Run(() =>
            {
                Thread.Sleep(1000);
                Dispatcher.Invoke(() =>
                {
                    if (Properties.Settings.Default.IsFirstLaunch)
                    {
                        var aboutPanel = new FastPanel(this.GridMain, new AboutPanel());
                        aboutPanel.Display();
                    }
                });
            });
#if PAID_VERSION
            BtnDonate.Content = App.Current.Resources["btnAccountInfo"];
            LanguageHelper.LanguageChanged += (s, e) =>
            {
                BtnDonate.Content = App.Current.Resources["btnAccountInfo"];
            };
#endif
        }