示例#1
0
    static int ImportSetting(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
                obj.ImportSetting();
                return(0);
            }
            else if (count == 2)
            {
                UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.ImportSetting(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.UI.Extensions.UGUIModel.ImportSetting"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#2
0
 static int SetCameraEffect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.SetCameraEffect(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int OnDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel       obj  = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
 static int UpdateModelShownIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.UpdateModelShownIndex(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
 static int GetModelAt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         ColaFramework.ISceneCharacter o = obj.GetModelAt(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#6
0
 static int IsModelExist(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         int  arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool o    = obj.IsModelExist(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#7
0
    static int set_Model(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2);
            obj.Model = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Model on a nil value"));
        }
    }
示例#8
0
    static int set_onModelClick(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            System.Action <string> arg0             = (System.Action <string>)ToLua.CheckDelegate <System.Action <string> >(L, 2);
            obj.onModelClick = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onModelClick on a nil value"));
        }
    }
示例#9
0
    static int set_cameraHeightOffset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.cameraHeightOffset = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cameraHeightOffset on a nil value"));
        }
    }
示例#10
0
    static int get_Model(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            UnityEngine.Transform ret = obj.Model;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Model on a nil value"));
        }
    }
示例#11
0
    static int get_onModelClick(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            System.Action <string> ret = obj.onModelClick;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onModelClick on a nil value"));
        }
    }
示例#12
0
    static int get_cameraHeightOffset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)o;
            float ret = obj.cameraHeightOffset;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cameraHeightOffset on a nil value"));
        }
    }