private async Task OnShowFirstInstance(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { ShowSettingsWindow(); }); }
protected override async Task OnChatClickThroughChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { MakeWindowClickThrought(); }); }
protected void OnPlayerDeath(object sender, BooleanChangeEventArgs args) { if (args.Value == false) { this.AutoTurn = false; this.GameManager.SetNextState(new GameOverState(this.m_Overworld)); } }
protected virtual async Task OnChatAlwaysOnTopChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != this.Topmost) { this.Topmost = ea.NewValue; } }); }
private async Task OnAutoHideChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != AutoHideBox.IsChecked) { AutoHideBox.IsChecked = ea.NewValue; } }); }
private async Task OnHideSettingsToTrayChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != HideToTray.IsChecked) { HideToTray.IsChecked = ea.NewValue; } }); }
private async Task OnChatAlwayOnTopChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != AlwayOnTopBox.IsChecked) { AlwayOnTopBox.IsChecked = ea.NewValue; } }); }
private async Task OnChatClickThroughChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != ClickThroughBox.IsChecked) { ClickThroughBox.IsChecked = ea.NewValue; } }); }
protected virtual async Task OnAutoHideChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { _TextArrivedTime = DateTime.UtcNow; if (ea.NewValue == false) { ShowWindow(); } }); }
private async Task OnDirecMemoryReadingChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != DirectMemoryBox.IsChecked) { DirectMemoryBox.IsChecked = ea.NewValue; } _TataruModel.FFMemoryReader.UseDirectReading = ea.NewValue; }); }
private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == TataruSingleInstance.WM_SHOWFIRSTINSTANCE) { var ea = new BooleanChangeEventArgs(this) { OldValue = false, NewValue = true }; _ShowFirstInstance.InvokeAsync(ea).Forget(); } return(IntPtr.Zero); }
protected virtual async Task OnChatClickThroughChange(BooleanChangeEventArgs ea) { await this.UIThreadAsync(() => { if (ea.NewValue != _IsClickThrought) { _IsClickThrought = ea.NewValue; if (_IsClickThrought) { MakeWindowClickThrought(); } else { MakeWindowClickbale(); } } }); }
protected override async Task OnAutoHideChange(BooleanChangeEventArgs ea) { }
protected override async Task OnChatAlwaysOnTopChange(BooleanChangeEventArgs ea) { }
protected void OnPlayerConsciousChange(object sender, BooleanChangeEventArgs args) { this.AutoTurn = !args.Value; }