|
@@ -180,6 +180,20 @@ namespace NTERA.Engine.Runtime.Base
|
|
|
runtime.Console.PrintBar();
|
|
|
}
|
|
|
|
|
|
+ [Keyword("CUSTOMDRAWLINE", true)]
|
|
|
+ public static void CustomDrawLine(EraRuntime runtime, StackFrame context, ExecutionNode node)
|
|
|
+ {
|
|
|
+ if (node.SubNodes.Length == 1)
|
|
|
+ {
|
|
|
+ var value = runtime.ComputeExpression(context, node.Single());
|
|
|
+ runtime.Console.printCustomBar(value.ToString());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ throw new ArgumentException("Missing argument to CUSTOMDRAWLINE");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
[Keyword("DRAWLINEFORM", true, true)]
|
|
|
public static void DrawLineForm(EraRuntime runtime, StackFrame context, ExecutionNode node)
|
|
|
{
|