Inheritance: MonoBehaviour
コード例 #1
0
 private void del_Click(object sender, EventArgs e)
 {
     ClickButtonEvent?.Invoke(this, new DeleteEventArgs(delBox.Text));
     //createHero a = new createHero();
     //int g;
     //if (Int32.TryParse(delBox.Text, out g))
     //{
     //    SwowBox.Text = a.DELETE(g-1);
     //}
     //else
     //{
     //    delBox.Text = "insert mumber";
     //}
 }
コード例 #2
0
ファイル: Popup.cs プロジェクト: lowkemedia/Libraries
 public void Select(string value, bool giveWarning = true)
 {
     for (int i = 0; i < _menuItems.Length; ++i)
     {
         string menuItem = _menuItems[i];
         if (value == menuItem)
         {
             ClickButton      clickButton  = _menuButtons[i];
             ClickButtonEvent onClickEvent = clickButton.onClickEvent;
             onClickEvent?.Invoke(clickButton);
             return;
         }
     }
     if (giveWarning)
     {
         Logger.Warning("Could not select button \"" + value + "\" on popup.");
     }
 }
コード例 #3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     ClickButtonEvent?.Invoke(eventData.pointerPress.name);
 }
コード例 #4
0
 private void All_Click(object sender, EventArgs e)
 {
     ClickButtonEvent?.Invoke(this, new NewWindowEventArgs("ShowAll"));
     //ShowAll S_ALL = new ShowAll();
     //S_ALL.ShowDialog();
 }
コード例 #5
0
 private void Sh_Click(object sender, EventArgs e)
 {
     ClickButtonEvent?.Invoke(this, new NewWindowEventArgs("ShowOne"));
     //Show sh = new Show();
     //sh.ShowDialog();
 }
コード例 #6
0
 private void Del_Click(object sender, EventArgs e)
 {
     ClickButtonEvent?.Invoke(this, new NewWindowEventArgs("Delete"));
     //DelCharacter del = new DelCharacter();
     //del.ShowDialog();
 }
コード例 #7
0
        //public NH RETURN(int i)
        //{
        //    return heros[i];
        //}


        //public int RETURN_col()
        //{
        //    return heros.Count;
        //}
        //public string DELETE(int i)
        //{
        //    if (i >= 0 && i < RETURN_col())
        //    {
        //        string t = "this element was deleted: " + heros[i].input();
        //        heros.RemoveAt(i);
        //        return t;
        //    }
        //    else { return "the Character is not founded"; }
        //}
        //public string SHOW(int i)
        //{
        //    if (i >= 0 && i < RETURN_col())
        //    {
        //        return heros[i].input();
        //    }
        //    else { return "the Character is not founded"; }
        //}


        private void New_Click(object sender, EventArgs e)
        {
            ClickButtonEvent?.Invoke(this, new NewWindowEventArgs("New"));
            //New a = new New();
            //a.ShowDialog();
        }