public static GObject NewObject2(ObjectType type, string name) { GObject ret = NewObject(type); GComponent com = ret as GComponent; if (com != null && LuaUIHelper.gcomponentCreator != null) { LuaUIHelper.gcomponentCreator(com, name); } return(ret); }
static int _CreateFairyGUI_LuaUIHelper(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { FairyGUI.LuaUIHelper obj = new FairyGUI.LuaUIHelper(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.LuaUIHelper.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public override void ConstructFromXML(XML xml) { base.ConstructFromXML(xml); Lua = LuaUIHelper.ConnectLua(this); }