private string FindFirst(ParamNode node)
 {
     if (node.Param != null)
     {
         return(node.Param);
     }
     return(this.FindFirst(node.Nodes));
 }
Exemple #2
0
 public static ParamNode[] Count(int start, int count, string format)
 {
     ParamNode[] paramNodeArray = new ParamNode[count];
     for (int index = 0; index < count; ++index)
     {
         paramNodeArray[index] = new ParamNode(string.Format(format, (object)(1 + index)), index.ToString());
     }
     return(paramNodeArray);
 }
Exemple #3
0
 public GParamMenu(ParamNode param, ActionHandler handler, Action action)
     : base(param.Name)
 {
     this.m_Param   = param;
     this.m_Handler = handler;
     this.m_Action  = action;
     if (this.m_Action == null)
     {
         this.Tooltip = (ITooltip) new Tooltip(string.Format("Click here to add the instruction:\n{0} {1}", (object)handler.Name, (object)param.Name), true);
     }
     else
     {
         this.Tooltip = (ITooltip) new Tooltip("Click here to change the parameter", true);
     }
     this.Tooltip.Delay = 3f;
 }