/// <summary> /// Impl. <see cref="IObserver{T}"/> for UI Scale changes. /// Called from ModUI when UI scale slider in General tab was modified. /// </summary> /// <param name="optionsEvent">New UI scale.</param> public void OnUpdate(ModUI.UIScaleNotification optionsEvent) { // Call resize on all controls and recalculate again UResizer.UpdateControlRecursive(this, null); }
/// <summary>Invoke rescaling handler, because possibly it has the new size now.</summary> /// <param name="previousResolution">Previous.</param> /// <param name="currentResolution">New.</param> protected override void OnResolutionChanged(Vector2 previousResolution, Vector2 currentResolution) { // Call resize on all controls and recalculate again UResizer.UpdateControlRecursive(this, null); }