public MapTimelineControlButton(GraphicsPath gpButtonPath, MapTimelineControlButtonType mtbtButtonType) : base(gpButtonPath) { this.ButtonOpacity = 0.0F; this.ButtonType = mtbtButtonType; this.ForegroundColour = Color.White; }
public MapTimelineControlButton(GraphicsPath gpButtonPath, MapTimelineControlButtonType mtbtButtonType) : base(gpButtonPath) { this.ButtonOpacity = 0.0F; this.ButtonType = mtbtButtonType; this.ForegroundColour = Color.White; }
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; }
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; }