コード例 #1
0
        public static IButtonModel NewButtonModel(this IModelFactory factory, string id,
                                                  ClickedEventHandler handler, IImageObject image, bool isEnabled = true, bool isVisible = true)
        {
            var model = factory?.NewButtonModel(id, isEnabled, isVisible).SetImage(image);

            model.Clicked += handler;
            return(model?.Attach(id));
        }
コード例 #2
0
    public void Show(object msg, ClickedEventHandler callback = null)
    {
        gameObject.SetActive(true);

        stack.Push(new MsgInfo(null, msg, callback));

        textTitle.text = string.Empty;
        textMsg.text   = msg.ToString();
    }
コード例 #3
0
 void OnEnable()
 {
     Log.d(TAG, "OnEnable");
     controlled_object.SetActive(true);
     MenuButtonClicked   += new ClickedEventHandler(MenuButtonClickedHandler);
     MenuButtonUnclicked += new ClickedEventHandler(MenuBottonUnClickedHandler);
     PadTouched          += new ClickedEventHandler(PadTouchedHandler);
     PadClicked          += new ClickedEventHandler(PadClickedHandler);
 }
コード例 #4
0
 public MsgInfo(string t, object m, ClickedEventHandler c)
 {
     title    = t;
     msg      = m;
     callback = c;
 }
コード例 #5
0
ファイル: Button.cs プロジェクト: julfoi/warfrare_irontouch
 public Button(string txt, ClickedEventHandler eventAction)
 {
     text = txt;
     Clicked += new ClickedEventHandler(eventAction);
 }