private void OnZoneChange(object source, EventArgs args) { PlayerLocationEventArgs e = (PlayerLocationEventArgs)args; Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() => { if (Context.ZoneID != 0) { WidgetHasContent = ((PlayerHealthComponent)Settings).HideHealthInVillages ? !e.InHarvestZone : true; } else { WidgetHasContent = false; } ChangeVisibility(); })); }
private void OnZoneChange(object source, EventArgs args) { PlayerLocationEventArgs e = args as PlayerLocationEventArgs; Dispatcher.InvokeAsync(() => { if (e.ZoneId != 0) { if (settings.HideHealthInVillages) { WidgetHasContent = !e.InHarvestZone; } else { WidgetHasContent = true; } } else { WidgetHasContent = false; } ChangeVisibility(); }); }
private void OnZoneChangeCallback(object source, EventArgs args) { PlayerLocationEventArgs nArgs = (PlayerLocationEventArgs)args; this.Log($"You're now in {nArgs.ZoneName}"); }