private void ApplyWidgetProperties(MyraUI.Widget widget) { if (widget is MyraUI.Grid grid) { grid.ShowGridLines = Debugging.UIDebugging; } if (widget is MyraUI.TextButton textButton) { if (TranslationManager.Instance.TryTranslate($"{ScreenName}.{textButton.Id}", out var value)) { textButton.Text = value; } } if (widget is MyraUI.Label label) { if (TranslationManager.Instance.TryTranslate($"{ScreenName}.{label.Id}", out var value)) { label.Text = value; } } }
public abstract void RemoveChild(Widget widget);