642 lines
15 KiB
C#
642 lines
15 KiB
C#
|
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
|
using System;
|
|||
|
|
using LuaInterface;
|
|||
|
|
|
|||
|
|
public class FairyGUI_GTextFieldWrap
|
|||
|
|
{
|
|||
|
|
public static void Register(LuaState L)
|
|||
|
|
{
|
|||
|
|
L.BeginClass(typeof(FairyGUI.GTextField), typeof(FairyGUI.GObject));
|
|||
|
|
L.RegFunction("SetVar", SetVar);
|
|||
|
|
L.RegFunction("FlushVars", FlushVars);
|
|||
|
|
L.RegFunction("HasCharacter", HasCharacter);
|
|||
|
|
L.RegFunction("Setup_BeforeAdd", Setup_BeforeAdd);
|
|||
|
|
L.RegFunction("Setup_AfterAdd", Setup_AfterAdd);
|
|||
|
|
L.RegFunction("New", _CreateFairyGUI_GTextField);
|
|||
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
|
L.RegVar("text", get_text, set_text);
|
|||
|
|
L.RegVar("templateVars", get_templateVars, set_templateVars);
|
|||
|
|
L.RegVar("textFormat", get_textFormat, set_textFormat);
|
|||
|
|
L.RegVar("color", get_color, set_color);
|
|||
|
|
L.RegVar("align", get_align, set_align);
|
|||
|
|
L.RegVar("verticalAlign", get_verticalAlign, set_verticalAlign);
|
|||
|
|
L.RegVar("singleLine", get_singleLine, set_singleLine);
|
|||
|
|
L.RegVar("stroke", get_stroke, set_stroke);
|
|||
|
|
L.RegVar("strokeColor", get_strokeColor, set_strokeColor);
|
|||
|
|
L.RegVar("shadowOffset", get_shadowOffset, set_shadowOffset);
|
|||
|
|
L.RegVar("UBBEnabled", get_UBBEnabled, set_UBBEnabled);
|
|||
|
|
L.RegVar("autoSize", get_autoSize, set_autoSize);
|
|||
|
|
L.RegVar("textWidth", get_textWidth, null);
|
|||
|
|
L.RegVar("textHeight", get_textHeight, null);
|
|||
|
|
L.EndClass();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int _CreateFairyGUI_GTextField(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|
|||
|
|
if (count == 0)
|
|||
|
|
{
|
|||
|
|
FairyGUI.GTextField obj = new FairyGUI.GTextField();
|
|||
|
|
ToLua.PushObject(L, obj);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.GTextField.New");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int SetVar(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)ToLua.CheckObject<FairyGUI.GTextField>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
FairyGUI.GTextField o = obj.SetVar(arg0, arg1);
|
|||
|
|
ToLua.PushObject(L, o);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int FlushVars(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)ToLua.CheckObject<FairyGUI.GTextField>(L, 1);
|
|||
|
|
obj.FlushVars();
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int HasCharacter(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)ToLua.CheckObject<FairyGUI.GTextField>(L, 1);
|
|||
|
|
char arg0 = (char)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
bool o = obj.HasCharacter(arg0);
|
|||
|
|
LuaDLL.lua_pushboolean(L, o);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int Setup_BeforeAdd(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)ToLua.CheckObject<FairyGUI.GTextField>(L, 1);
|
|||
|
|
FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject<FairyGUI.Utils.ByteBuffer>(L, 2);
|
|||
|
|
int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|||
|
|
obj.Setup_BeforeAdd(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int Setup_AfterAdd(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)ToLua.CheckObject<FairyGUI.GTextField>(L, 1);
|
|||
|
|
FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject<FairyGUI.Utils.ByteBuffer>(L, 2);
|
|||
|
|
int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|||
|
|
obj.Setup_AfterAdd(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_text(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
string ret = obj.text;
|
|||
|
|
LuaDLL.lua_pushstring(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index text on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_templateVars(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
System.Collections.Generic.Dictionary<string,string> ret = obj.templateVars;
|
|||
|
|
ToLua.PushSealed(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index templateVars on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_textFormat(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.TextFormat ret = obj.textFormat;
|
|||
|
|
ToLua.PushObject(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index textFormat on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_color(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Color ret = obj.color;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_align(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.AlignType ret = obj.align;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index align on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_verticalAlign(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.VertAlignType ret = obj.verticalAlign;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index verticalAlign on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_singleLine(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
bool ret = obj.singleLine;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index singleLine on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_stroke(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
int ret = obj.stroke;
|
|||
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index stroke on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_strokeColor(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Color ret = obj.strokeColor;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index strokeColor on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_shadowOffset(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Vector2 ret = obj.shadowOffset;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowOffset on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_UBBEnabled(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
bool ret = obj.UBBEnabled;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index UBBEnabled on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_autoSize(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.AutoSizeType ret = obj.autoSize;
|
|||
|
|
ToLua.Push(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoSize on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_textWidth(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
float ret = obj.textWidth;
|
|||
|
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index textWidth on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_textHeight(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
float ret = obj.textHeight;
|
|||
|
|
LuaDLL.lua_pushnumber(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index textHeight on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_text(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.text = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index text on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_templateVars(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
System.Collections.Generic.Dictionary<string,string> arg0 = (System.Collections.Generic.Dictionary<string,string>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<string,string>));
|
|||
|
|
obj.templateVars = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index templateVars on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_textFormat(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.TextFormat arg0 = (FairyGUI.TextFormat)ToLua.CheckObject<FairyGUI.TextFormat>(L, 2);
|
|||
|
|
obj.textFormat = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index textFormat on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_color(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
|
|||
|
|
obj.color = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_align(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.AlignType arg0 = (FairyGUI.AlignType)ToLua.CheckObject(L, 2, typeof(FairyGUI.AlignType));
|
|||
|
|
obj.align = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index align on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_verticalAlign(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.VertAlignType arg0 = (FairyGUI.VertAlignType)ToLua.CheckObject(L, 2, typeof(FairyGUI.VertAlignType));
|
|||
|
|
obj.verticalAlign = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index verticalAlign on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_singleLine(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
obj.singleLine = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index singleLine on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_stroke(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
obj.stroke = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index stroke on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_strokeColor(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
|
|||
|
|
obj.strokeColor = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index strokeColor on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_shadowOffset(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
|
|||
|
|
obj.shadowOffset = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowOffset on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_UBBEnabled(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
obj.UBBEnabled = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index UBBEnabled on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_autoSize(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
FairyGUI.GTextField obj = (FairyGUI.GTextField)o;
|
|||
|
|
FairyGUI.AutoSizeType arg0 = (FairyGUI.AutoSizeType)ToLua.CheckObject(L, 2, typeof(FairyGUI.AutoSizeType));
|
|||
|
|
obj.autoSize = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoSize on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|