示例#1
0
 public GActionMenu(GMacroEditorPanel panel, Macro macro, Action action)
     : base(action.Handler.Name)
 {
     this.m_Panel  = panel;
     this.m_Macro  = macro;
     this.m_Action = action;
     this.Tooltip  = (ITooltip) new Tooltip("Click here to edit this action", true);
 }
示例#2
0
 public GNewActionMenu(GMacroEditorPanel panel, Macro macro, ActionHandler action)
     : base(action.Name)
 {
     this.m_Panel  = panel;
     this.m_Macro  = macro;
     this.m_Action = action;
     if (this.m_Action.Params != null && this.m_Action.Params.Length > 0)
     {
         this.Tooltip = (ITooltip) new Tooltip("Choose a parameter from the menu to the right, or just click here to add the instruction with a default parameter.", false, 200);
     }
     else
     {
         this.Tooltip = (ITooltip) new Tooltip("Click here to add this instruction.", false, 200);
     }
     this.Tooltip.Delay = 2f;
 }