protected virtual void OnMenuItemClicked()
 {
     if (MenuItemClicked != null)
     {
         MenuItemClicked.Invoke();
     }
 }
Beispiel #2
0
    private void Instance_OnMenuItemClicked(object sender, MenuItemClicked gameEvent)
    {
        switch (gameEvent.MenuItemName)
        {
        case MenuNames.movebtn:
            IsReadyForSetGoal = true;
            break;

        case MenuNames.runefire:
            RuneForSet = PrefabNames.RuneFire;
            break;

        default:
            break;
        }
    }
Beispiel #3
0
 public void PublichItemClicked(string url)
 {
     MenuItemClicked?.Invoke(this, new MenuItemClickedEventArgs(url));
 }
Beispiel #4
0
 protected virtual void OnMenuItemClicked(string name)
 {
     MenuItemClicked?.Invoke(this, name);
 }
Beispiel #5
0
 public BackMenu(MenuBar Menu, string id,  MenuItemClicked clickedEvent)
 {
     OnMenuClicked = clickedEvent;
     this.Menu = Menu;
 }
 public void MenuClicked(object sender, MenuItemClicked mic)
 {
     OnMenuItemClicked(sender, mic);
 }
 private void MenuItem_Click(object sender, EventArgs e) => MenuItemClicked?.Invoke(sender, e);
 protected virtual void OnMenuItemClicked(MenuItemClickedEventArgs e)
 {
     MenuItemClicked?.Invoke(this, e);
 }
Beispiel #9
0
 public void Handle(MenuItemClicked message) => ActivateAreaDetails(message.AreaID);
 public void Handle(MenuItemClicked message) => ActivateItem(Info);
Beispiel #11
0
 public void Handle(MenuItemClicked message) => UpdateDetails(message.AreaID);
Beispiel #12
0
 private void MenuItem_ItemClicked(object sender, EventArgs e)
 {
     MenuItemClicked?.Invoke(sender, e);
 }
Beispiel #13
0
 public async Task ExecuteMenuItemCommand()
 {
     MenuItemClicked?.Invoke(null, SelectedMenuItem);
 }