Beispiel #1
0
    public void LoadPreviousFrame()
    {
        // Check if history has enough frames
        if (FrameHistory.Count < 2)
        {
            return;
        }

        OpenFrame(FrameHistory[FrameHistory.Count - 2], false);
        FrameHistory.RemoveAt(FrameHistory.Count - 1);
    }
        public RepresentedVelocityTracker(ValkyrieSprite host) : base(host)
        {
            FrameHistories = new CircularSelector <FrameHistory>(FrameHistoryLength);

            for (int i = 0; i < FrameHistoryLength; i++)
            {
                FrameHistory history = new FrameHistory();
                history.Reset(Vector3.zero);
                FrameHistories.Add(history);
            }
        }
        void SetText()
        {
            UkName.Text = Settings.MobileSettings.main_name;


            Color hexColor = (Color)Application.Current.Resources["MainColor"];

            // IconViewLogin.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            //IconViewTech.SetAppThemeColor(IconView.ForegroundProperty, hexColor, Color.White);
            //LabelTech.SetAppThemeColor(Label.TextColorProperty, hexColor, Color.White);
            FrameSaldo.SetAppThemeColor(MaterialFrame.BorderColorProperty, hexColor, Color.FromHex("#494949"));
            FrameHistory.SetAppThemeColor(MaterialFrame.BorderColorProperty, hexColor, Color.White);
        }