예제 #1
0
 public ButtonInfo(string text, GameObject visualizer, Action shortcutKey, UnityAction onClick, HoverCallback onHover = null, object userData = null)
 {
     this.text        = text;
     this.shortcutKey = shortcutKey;
     this.onClick     = onClick;
     this.onHover     = onHover;
     this.visualizer  = visualizer;
     this.userData    = userData;
     uibutton         = null;
 }
예제 #2
0
 public ButtonInfo(string text = null, UnityAction on_click = null, Action shortcut_key = Action.NumActions, HoverCallback on_hover = null, string tool_tip = null, GameObject visualizer = null, bool is_enabled = true, string[] popup_options = null, Action <string> on_popup_click = null, Func <string[]> on_populate_popup = null)
 {
     this.text       = text;
     shortcutKey     = shortcut_key;
     onClick         = on_click;
     onHover         = on_hover;
     this.visualizer = visualizer;
     toolTip         = tool_tip;
     isEnabled       = is_enabled;
     uibutton        = null;
     popupOptions    = popup_options;
     onPopupClick    = on_popup_click;
     onPopulatePopup = on_populate_popup;
 }