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)); }
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(); }
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); }
public MsgInfo(string t, object m, ClickedEventHandler c) { title = t; msg = m; callback = c; }
public Button(string txt, ClickedEventHandler eventAction) { text = txt; Clicked += new ClickedEventHandler(eventAction); }