コード例 #1
0
 public MapTimelineControlButton(GraphicsPath gpButtonPath, MapTimelineControlButtonType mtbtButtonType)
     : base(gpButtonPath)
 {
     this.ButtonOpacity    = 0.0F;
     this.ButtonType       = mtbtButtonType;
     this.ForegroundColour = Color.White;
 }
コード例 #2
0
 public MapTimelineControlButton(GraphicsPath gpButtonPath, MapTimelineControlButtonType mtbtButtonType)
     : base(gpButtonPath)
 {
     this.ButtonOpacity = 0.0F;
     this.ButtonType = mtbtButtonType;
     this.ForegroundColour = Color.White;
 }
コード例 #3
0
ファイル: MapTimelineControl.cs プロジェクト: eaceaser/PRoCon
        private void mtbButton_TimelineControlButtonClicked(MapTimelineControlButton sender, MapTimelineControlButtonType ButtonType)
        {
            if (this.SelectedButtonType == ButtonType && ButtonType == MapTimelineControlButtonType.FastForward) {
                if (this.m_flControlChangeSpeed < 512.0F) {
                    this.m_flControlChangeSpeed = this.m_flControlChangeSpeed * 2.0F;
                }
            }
            else if (this.SelectedButtonType == ButtonType && ButtonType == MapTimelineControlButtonType.Rewind) {
                if (this.m_flControlChangeSpeed < 512.0F) {
                    this.m_flControlChangeSpeed = this.m_flControlChangeSpeed * 2.0F;
                }
            }
            else if (ButtonType == MapTimelineControlButtonType.FastForward || ButtonType == MapTimelineControlButtonType.Rewind) {
                this.m_flControlChangeSpeed = 2.0F;
            }

            foreach (MapTimelineControlButton mtbButton in this.TimelineButtons) {
                if (mtbButton == sender) {
                    mtbButton.ForegroundColour = Color.LightSeaGreen;
                }
                else {
                    mtbButton.ForegroundColour = Color.White;
                }
            }

            this.SelectedButtonType = ButtonType;
        }
コード例 #4
0
        private void mtbButton_TimelineControlButtonClicked(MapTimelineControlButton sender, MapTimelineControlButtonType ButtonType)
        {
            if (this.SelectedButtonType == ButtonType && ButtonType == MapTimelineControlButtonType.FastForward)
            {
                if (this.m_flControlChangeSpeed < 512.0F)
                {
                    this.m_flControlChangeSpeed = this.m_flControlChangeSpeed * 2.0F;
                }
            }
            else if (this.SelectedButtonType == ButtonType && ButtonType == MapTimelineControlButtonType.Rewind)
            {
                if (this.m_flControlChangeSpeed < 512.0F)
                {
                    this.m_flControlChangeSpeed = this.m_flControlChangeSpeed * 2.0F;
                }
            }
            else if (ButtonType == MapTimelineControlButtonType.FastForward || ButtonType == MapTimelineControlButtonType.Rewind)
            {
                this.m_flControlChangeSpeed = 2.0F;
            }

            foreach (MapTimelineControlButton mtbButton in this.TimelineButtons)
            {
                if (mtbButton == sender)
                {
                    mtbButton.ForegroundColour = Color.LightSeaGreen;
                }
                else
                {
                    mtbButton.ForegroundColour = Color.White;
                }
            }

            this.SelectedButtonType = ButtonType;
        }