public Theme(IThemeWindow window, IControlPanel controls, ThemeType type) { this.Window = window; this.Controls = controls; this.Type = type; this.Active = false; }
public SessionTimer(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; this.Active = false; this.Mode = SessionMode.LapMode; this.State = SessionTimerState.Normal; }
public LapTimerLeft(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; canUpdate = false; gapVisible = false; posVisible = false; }
public LapsRemainingWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; coolDown = new Timer(CD_MS_INTERVAL); showed = new bool[5] { false, false, false, false, false }; coolDown.Elapsed += TimerElapsed; }
public BattleElement(IThemeWindow parent, SideBarWidget widget, LiveStandingsModule module) { this.InitializeComponent(); this.ParentWindow = parent; this.widget = widget; this.module = module; this.mode = BattleElementMode.Default; cooldownTimer = new System.Timers.Timer(5000); cooldownTimer.AutoReset = false; cooldownTimer.Elapsed += cooldownTimer_Elapsed; }
public ResultsWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; pageIndex = 0; pageTimer = new Timer(); pageTimer.Elapsed += SwitchPage; pageCooldown = new Timer(PAGE_SWITCH_COOLDOWN); pageCooldown.Elapsed += FadeNewPageIn; }
public RevMeter(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; canUpdateGear = true; pushToPass = false; prevPushToPass = false; prevGear = -1; currentGear = 0; neutralCooldown = new Timer(250); neutralCooldown.Elapsed += neutralCooldown_Elapsed; }
public RaceBar(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; Live = false; pageIndex = 0; oldPageIndex = 0; pageTimer = new Timer(PAGE_DURATION_MS); pageTimer.Elapsed += SwitchPage; pageCooldown = new Timer(PAGE_SWITCH_COOLDOWN); pageCooldown.Elapsed += FadeNewPageIn; Mode = RaceBarMode.Gap; }
public F1ControlTabs(IThemeWindow window, API api) { ThemeWindow = window; f1Window = window as F1TVOverlay; this.api = api; this.autoCommit = true; this.driverUpdate = true; this.cameraUpdate = true; this.canUpdateDO1 = true; this.canUpdateDO2 = true; this.canUpdateFp = true; InitializeComponent(); CameraModule = api.FindModule("CameraModule") as CameraModule; DriverModule = api.FindModule("DriverModule") as DriverModule; }
public SpeedCompareWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; canUpdateGear1 = true; canUpdateGear2 = true; pushToPass1 = false; pushToPass2 = false; prevPushToPass1 = false; prevPushToPass2 = false; prevGear1 = -1; prevGear2 = -1; currentGear1 = 0; currentGear2 = 0; neutralCooldown1 = new Timer(250); neutralCooldown1.Elapsed += neutralCooldown1_Elapsed; neutralCooldown2 = new Timer(250); neutralCooldown2.Elapsed += neutralCooldown2_Elapsed; }
public JoinTheConversation(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; }
public DriverOverviewStops(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; }
public WeatherWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; }
public WECRaceTicker(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; }
public SideBarWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; elements = new List <ISideBarElement>(); }
public TeamRadio(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; Active = false; }
public SpeedElement(IThemeWindow parent, SpeedElementMode Mode) { this.InitializeComponent(); this.ParentWindow = parent; this.Mode = Mode; }
public LapTimeElement(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; }
public LiveTimingWidget(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; canUpdateButtons = true; dummyActive = false; PageSwitcherInnerDummy.Visibility = Visibility.Hidden; pageIndex = 0; nextPageCd = new Timer(pageCd); nextPageCd.Elapsed += LoadNextPage; prevPageCd = new Timer(pageCd); prevPageCd.Elapsed += LoadPrevPage; leaderPageCd = new Timer(pageCd); leaderPageCd.Elapsed += LoadLeaderPage; neutralizeTimer = new Timer(200); neutralizeTimer.Elapsed += NeutralizePage; changeModeTimer = new Timer(300); changeModeTimer.Elapsed += changeMode; /*Controls tvoC = TMTVO.Controller.TMTVO.Instance.Controls; * prevPageButton = tvoC.TimingPrevPage; * nextPageButton = tvoC.TimingNextPage; * leaderPageButton = tvoC.TimingLeaderPage;*/ Items = new LinkedList <LiveTimingItem>(); Dummies = new LinkedList <LiveTimingItem>(); int i = 1; LiveTimingItem item = Item1; item.Flag.Visibility = Visibility.Hidden; item.InPit.Visibility = Visibility.Hidden; if (item.Name != "Item1") { item.NumberLeader.Visibility = Visibility.Hidden; item.BackgroundLeader.Visibility = Visibility.Hidden; item.BackgroundLeader1.Visibility = Visibility.Hidden; } item.Position.Text = (i++).ToString(); Items.AddLast(item); foreach (UIElement elem in PageSwitcherInner.Children) { item = (LiveTimingItem)elem; item.Flag.Visibility = Visibility.Hidden; item.InPit.Visibility = Visibility.Hidden; item.Position.Text = (i++).ToString(); Items.AddLast(item); } foreach (UIElement elem in PageSwitcherInnerDummy.Children) { item = (LiveTimingItem)elem; item.Flag.Visibility = Visibility.Hidden; item.InPit.Visibility = Visibility.Hidden; item.Position.Text = (i++).ToString(); Dummies.AddLast(item); } }
public SideBarTitle(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; }
public DriverInfo(IThemeWindow parent) { this.InitializeComponent(); this.ParentWindow = parent; mode = DriverInfoMode.NameOnly; }