|
|
@@ -335,8 +335,8 @@ static void RegisterText(asIScriptEngine* engine)
|
|
|
engine->RegisterEnumValue("TextEffect", "TE_STROKE", TE_STROKE);
|
|
|
|
|
|
RegisterUIElement<Text>(engine, "Text");
|
|
|
- engine->RegisterObjectMethod("Text", "bool SetFont(const String&in, int, bool=false)", asMETHODPR(Text, SetFont, (const String&, int, bool), bool), asCALL_THISCALL);
|
|
|
- engine->RegisterObjectMethod("Text", "bool SetFont(Font@+, int, bool=false)", asMETHODPR(Text, SetFont, (Font*, int, bool), bool), asCALL_THISCALL);
|
|
|
+ engine->RegisterObjectMethod("Text", "bool SetFont(const String&in, int)", asMETHODPR(Text, SetFont, (const String&, int), bool), asCALL_THISCALL);
|
|
|
+ engine->RegisterObjectMethod("Text", "bool SetFont(Font@+, int)", asMETHODPR(Text, SetFont, (Font*, int), bool), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("Text", "void SetSelection(uint, uint arg1 = M_MAX_UNSIGNED)", asMETHOD(Text, SetSelection), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("Text", "void ClearSelection()", asMETHOD(Text, ClearSelection), asCALL_THISCALL);
|
|
|
engine->RegisterObjectMethod("Text", "Font@+ get_font() const", asMETHOD(Text, GetFont), asCALL_THISCALL);
|
|
|
@@ -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=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", "bool SetFont(const String&in, int)", asMETHODPR(Text3D, SetFont, (const String&, int), bool), asCALL_THISCALL);
|
|
|
+ engine->RegisterObjectMethod("Text3D", "bool SetFont(Font@+, int)", asMETHODPR(Text3D, SetFont, (Font*, int), 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);
|