From 071b2ea4f205ea99346a5cf73afdd50f7ccc95ed Mon Sep 17 00:00:00 2001 From: Nathan Warden Date: Fri, 20 Feb 2015 13:05:21 -0500 Subject: [PATCH 1/2] Updated the internal documention for the GDScript class. --- doc/base/classes.xml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 35de0106b5f..7c5530682ee 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -257,13 +257,14 @@ - + - + - + + Linear interpolates between two values by a normalized value. @@ -276,6 +277,7 @@ + Decreases time by a specified amount. @@ -421,6 +423,7 @@ + Returns a reference to the specified function @@ -475,6 +478,7 @@ + Print one or more arguments to the console with a tab between each argument. @@ -499,6 +503,24 @@ Print one or more arguments to strings in the best way possible to console. No newline is added at the end. + + + + + + + Converts the value of a variable to a String. + + + + + + + + + Converts the value of a String to a variable. + + @@ -544,6 +566,7 @@ + Hashes the variable passed and returns an integer. From bfad3923878aa9b485f90a37bc04944828e35f27 Mon Sep 17 00:00:00 2001 From: Nathan Warden Date: Fri, 20 Feb 2015 16:28:48 -0500 Subject: [PATCH 2/2] Updated the variable in the lerp function to be weight instead of percent. --- doc/base/classes.xml | 2 +- modules/gdscript/gd_functions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 7c5530682ee..8271c5f7b67 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -261,7 +261,7 @@ - + Linear interpolates between two values by a normalized value. diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index b616d8f228d..f37b2f645af 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -1101,7 +1101,7 @@ MethodInfo GDFunctions::get_info(Function p_func) { return mi; } break; case MATH_LERP: { - MethodInfo mi("lerp",PropertyInfo(Variant::REAL,"a"),PropertyInfo(Variant::REAL,"b"), PropertyInfo(Variant::REAL,"c")); + MethodInfo mi("lerp",PropertyInfo(Variant::REAL,"from"),PropertyInfo(Variant::REAL,"to"), PropertyInfo(Variant::REAL,"weight")); mi.return_val.type=Variant::REAL; return mi; } break;