2
0
Эх сурвалжийг харах

Fix Text3D::SetFont AS binding bug.

aster 11 жил өмнө
parent
commit
e9b1ba7cde

+ 2 - 2
Source/Engine/Script/UIAPI.cpp

@@ -370,8 +370,8 @@ static void RegisterText(asIScriptEngine* engine)
 static void RegisterText3D(asIScriptEngine* engine)
 {
     RegisterDrawable<Text3D>(engine, "Text3D");
-    engine->RegisterObjectMethod("Text3D", "bool SetFont(const String&in, int, bool)", asMETHODPR(Text3D, SetFont, (const String&, int, bool), bool), asCALL_THISCALL);
-    engine->RegisterObjectMethod("Text3D", "bool SetFont(Font@+, int, bool)", asMETHODPR(Text3D, SetFont, (Font*, int, bool), bool), asCALL_THISCALL);
+    engine->RegisterObjectMethod("Text3D", "bool SetFont(const String&in, int, bool=false)", asMETHODPR(Text3D, SetFont, (const String&, int, bool), bool), asCALL_THISCALL);
+    engine->RegisterObjectMethod("Text3D", "bool SetFont(Font@+, int, bool=false)", asMETHODPR(Text3D, SetFont, (Font*, int, bool), bool), asCALL_THISCALL);
     engine->RegisterObjectMethod("Text3D", "void SetAlignment(HorizontalAlignment, VerticalAlignment)", asMETHOD(Text3D, SetAlignment), asCALL_THISCALL);
     engine->RegisterObjectMethod("Text3D", "Font@+ get_font() const", asMETHOD(Text3D, GetFont), asCALL_THISCALL);
     engine->RegisterObjectMethod("Text3D", "int get_fontSize() const", asMETHOD(Text3D, GetFontSize), asCALL_THISCALL);