示例#1
0
        /// <summary>
        /// Инициализирует анимацию
        /// </summary>
        /// <param name="x_begin">Начальная позиция width</param>
        /// <param name="y_begin">Начальная позиция height</param>
        /// <param name="x_end">Конечная позиция width</param>
        /// <param name="y_end">Конечная позиция height</param>
        /// <param name="x_duration">Скорость по координате X</param>
        /// <param name="y_duration">Скорость по координате Y</param>
        /// <param name="elementUi">UI элемент</param>
        /// <param name="Back">Нужно ли возвражаться к прежней модели</param>
        public void Initialize(float x_begin, float y_begin, float x_end, float y_end,
                               float x_duration, float y_duration, GBaseButton elementUi, bool Back = true)
        {
            this.x_begin         = x_begin;
            this.y_begin         = y_begin;
            this.x_end           = x_end;
            this.y_end           = y_end;
            this.x_duration      = x_duration;
            this.y_duration      = y_duration;
            this.elementUi       = elementUi;
            this.Back            = Back;
            this._Back           = Back;
            this.Buffer_duration = new PointF(x_duration, y_duration);

            x_currentStep = x_begin;
            y_currentStep = y_begin;
        }
示例#2
0
 private void ScreenStart_onClick(GBaseButton button)
 {
     System.Console.WriteLine("button play: click");
 }
示例#3
0
 public void SetElement(GBaseButton element)
 {
     elementUi = element;
 }