示例#1
0
        private HelpProperty GetOtherFuncsHelp()
        {
            HelpProperty answer = GetFuncTypeHelp(FuncType.Other);

            string StartBind = "StartBind() - запускает выполнение скрипта бинда.";

            answer.Add(StartBind);
            AddToGroups("ScriptRuntimeControl", StartBind);

            string Stop = "Stop() - останавливает текущую интерпретацию.";

            answer.Add(Stop);
            AddToGroups("ScriptRuntimeControl", Stop);

            string StopThisBind = "StopThisBind() - останавливает все интерпретации на этом бинде.";

            answer.Add(StopThisBind);
            AddToGroups("ScriptRuntimeControl", StopThisBind);

            string StopAnotherRunsOfThisBind = "StopAnotherRunsOfThisBind() - останавливает все интерпретации на этом бинде, кроме текущей.";

            answer.Add(StopAnotherRunsOfThisBind);
            AddToGroups("ScriptRuntimeControl", StopAnotherRunsOfThisBind);
            return(answer);
        }
示例#2
0
        private HelpProperty GetFuncTypeHelp(FuncType type)
        {
            HelpProperty answer = new HelpProperty(_prefix: "{count}");

            foreach (IInterpreterFunction f in Interpreter.GetFullLibrary().Where(func => func.ReturnType == type))
            {
                answer.Add(f.Description);
            }

            return(answer);
        }
示例#3
0
 private void SetHelpTexts()
 {
     DynamicFuncsHelp    = GetFuncTypeHelp(FuncType.Dynamic);
     ParametersFuncsHelp = GetFuncTypeHelp(FuncType.Parameters);
     BoolFuncsHelp       = GetFuncTypeHelp(FuncType.Boolean);
     DoubleFuncsHelp     = GetFuncTypeHelp(FuncType.Double);
     IntFuncsHelp        = GetFuncTypeHelp(FuncType.Int);
     StringFuncsHelp     = GetFuncTypeHelp(FuncType.String);
     foreach (IInterpreterFunction f in Interpreter.GetFullLibrary())
     {
         AddToGroups(f);
     }
     OtherFuncsHelp    = GetOtherFuncsHelp();
     ConstructionsHelp = GetConstructionsHelp();
     TriggersHelp      = GetTriggersHelp();
 }
示例#4
0
        private HelpProperty GetTriggersHelp()
        {
            HelpProperty answer = new HelpProperty("Триггеры при выполнении сохраняют в своих данных некоторые переменные.\nВсе триггеры передают свои данные (переменные и функции) биндам.\nУ каждого триггера есть следующие переменные по умолчанию:\n", "{count}");

            answer.Add("TriggerName - имя триггера, начавшего выполнение.");
            answer.Add("TriggerScript - скрипт триггера, начавшего выполнение.");
            answer.AllText += "Некоторые типы триггеров имеют дополнительные переменные:\n";
            answer.AllText += Environment.NewLine;

            HelpProperty KeysTriggers = new HelpProperty("Триггеры Keys имеют:\n", "{count}");

            KeysTriggers.Add("Key - название кнопки, начавшей выполнение.");
            answer.AllText += KeysTriggers.AllText;
            answer.AllText += Environment.NewLine;

            HelpProperty MouseTriggers = new HelpProperty("Триггеры Mouse имеют:\n", "{count}");

            MouseTriggers.Add("X, Y - координаты курсора.");
            MouseTriggers.Add("Button - последняя кнопка мыши.");
            answer.AllText += MouseTriggers.AllText;

            return(answer);
        }