public static Button CreateUIButton(this HMUI.ViewController parent, string name, string buttonTemplate, Vector2 anchoredPosition, Vector2 sizeDelta, UnityAction onClick = null, string buttonText = "BUTTON") { var btn = UIHelper.CreateUIButton(name, parent.rectTransform, buttonTemplate, anchoredPosition, sizeDelta, onClick, buttonText); return(btn); }
protected override void BackButtonWasPressed(HMUI.ViewController topViewController) { BeatSaberUI.MainFlowCoordinator.DismissFlowCoordinator(this); base.BackButtonWasPressed(topViewController); }