From 267c62975eb1b3857bbefdd2fe523447fcd9879b Mon Sep 17 00:00:00 2001 From: utak3r Date: Fri, 24 Nov 2006 23:42:55 +0000 Subject: [PATCH] Scripter fixes --- 2.10/Source/ScriptForm.pas | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/2.10/Source/ScriptForm.pas b/2.10/Source/ScriptForm.pas index 335dcac..25d8c73 100644 --- a/2.10/Source/ScriptForm.pas +++ b/2.10/Source/ScriptForm.pas @@ -1167,7 +1167,7 @@ begin Scripter.DefineMethod('SaveGradient', 2, tkNone, nil, SaveGradientProc); Scripter.DefineMethod('Variation', 0, tkInteger, nil, GetVariation); Scripter.DefineMethod('SetVariation', 1, tkInteger, nil, SetVariation); - Scripter.DefineMethod('GetVariable', 2, tkFloat, nil, GetVariable); + Scripter.DefineMethod('GetVariable', 1, tkFloat, nil, GetVariable); Scripter.DefineMethod('SetVariable', 2, tkNone, nil, SetVariable); Scripter.DefineMethod('CalculateScale', 0, tkNone, nil, CalculateScale); Scripter.DefineMethod('CalculateBounds', 0, tkNone, nil, CalculateBounds); @@ -2782,25 +2782,25 @@ begin Scripter.AddConstant('V_CURL', 37); Scripter.AddConstant('V_RANDOM', -1); { Variation parameters } - Scripter.AddConstant('RINGS2_VAL', 0); - Scripter.AddConstant('FAN2_X', 1); - Scripter.AddConstant('FAN2_Y', 2); - Scripter.AddConstant('BLOB_LOW', 3); - Scripter.AddConstant('BLOB_HI', 4); - Scripter.AddConstant('BLOB_WAVES', 5); - Scripter.AddConstant('PDJ_A', 6); - Scripter.AddConstant('PDJ_B', 7); - Scripter.AddConstant('PDJ_C', 8); - Scripter.AddConstant('PDJ_D', 9); - Scripter.AddConstant('PERSPECTIVE_ANGLE', 10); - Scripter.AddConstant('PERSPECTIVE_DIST', 11); - Scripter.AddConstant('JULIAN_POWER', 12); - Scripter.AddConstant('JULIAN_DIST', 13); - Scripter.AddConstant('JULIASCOPE_POWER', 14); - Scripter.AddConstant('JULIASCOPE_DIST', 15); - Scripter.AddConstant('RADIALBLUR_ANGLE', 16); - Scripter.AddConstant('CURL_C0', 17); - Scripter.AddConstant('CURL_C1', 18); + Scripter.AddConstant('RADIALBLUR_ANGLE', 0); + Scripter.AddConstant('RINGS2_VAL', 1); + Scripter.AddConstant('FAN2_X', 2); + Scripter.AddConstant('FAN2_Y', 3); + Scripter.AddConstant('BLOB_LOW', 4); + Scripter.AddConstant('BLOB_HI', 5); + Scripter.AddConstant('BLOB_WAVES', 6); + Scripter.AddConstant('PDJ_A', 7); + Scripter.AddConstant('PDJ_B', 8); + Scripter.AddConstant('PDJ_C', 9); + Scripter.AddConstant('PDJ_D', 10); + Scripter.AddConstant('PERSPECTIVE_ANGLE', 11); + Scripter.AddConstant('PERSPECTIVE_DIST', 12); + Scripter.AddConstant('JULIAN_POWER', 13); + Scripter.AddConstant('JULIAN_DIST', 14); + Scripter.AddConstant('JULIASCOPE_POWER', 15); + Scripter.AddConstant('JULIASCOPE_DIST', 16); + Scripter.AddConstant('CURL_C1', 17); + Scripter.AddConstant('CURL_C2', 18); { Variables } Scripter.AddVariable('SelectedTransform', EditForm.SelectedTriangle); Scripter.AddVariable('Compatibility', Compatibility);