public void Show() { Shown = Visible = true; ShowMenu(StartingMenu); OnShown?.Invoke(); UpdateWindow(); }
public static void Show(IInputWrapper input, string title, Dictionary <string, Action> menuItemMap) { menuView_ = ObjectPoolManager.CreateView <MenuView>(GamePrefabs.Instance.MenuViewPrefab); menuView_.Init(input, title, menuItemMap); OnShown.Invoke(); }
public static void Show(InputDevice inputDevice, IEnumerable <ScrollableMenuItem> items) { if (popup_ != null) { CleanupPopup(); } popup_ = ObjectPoolManager.CreateView <ScrollableMenu>(GamePrefabs.Instance.ScrollableMenuPopupPrefab); popup_.Init(new IInputWrapper[] { new InputWrapperDevice(inputDevice) }, items); popup_.OnRecycled += HandlePopupRecycled; OnShown.Invoke(); }
public void ShowWindow <T>() where T : Window { var window = GetWindow <T>(); if (!ReferenceEquals(_current, null)) { _current.OnHide(); } window.OnShow(); OnShown.Invoke(window); _current = window; }
public override void Show() { Debug.Log($"Popup shown {gameObject.name}"); OnShown?.Invoke(this); }
protected virtual void Shown(EventArgs e) { OnShown?.Invoke(this, e); }