コード例 #1
0
    static int SetGray(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.SetGray");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.LuaUICom obj = (Framework.LuaUICom)ToLua.CheckObject <Framework.LuaUICom>(L, 1);
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.SetGray(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #2
0
    static int SetSliderValue(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.SetSliderValue");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.LuaUICom obj = (Framework.LuaUICom)ToLua.CheckObject <Framework.LuaUICom>(L, 1);
            float arg0             = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.SetSliderValue(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #3
0
    static int AddClick(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.AddClick");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.LuaUICom             obj  = (Framework.LuaUICom)ToLua.CheckObject <Framework.LuaUICom>(L, 1);
            UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2);
            obj.AddClick(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #4
0
    static int SetSprite(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.SetSprite");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 3);
            Framework.LuaUICom obj  = (Framework.LuaUICom)ToLua.CheckObject <Framework.LuaUICom>(L, 1);
            string             arg0 = ToLua.CheckString(L, 2);
            string             arg1 = ToLua.CheckString(L, 3);
            obj.SetSprite(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #5
0
    static int set_LuaUIComName(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.LuaUIComName");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.LuaUICom obj  = (Framework.LuaUICom)o;
            string             arg0 = ToLua.CheckString(L, 2);
            obj.LuaUIComName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaUIComName on a nil value"));
        }
    }
コード例 #6
0
    static int get_LuaUITemplate(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaUICom.LuaUITemplate");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.LuaUICom      obj = (Framework.LuaUICom)o;
            Framework.LuaUITemplate ret = obj.LuaUITemplate;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaUITemplate on a nil value"));
        }
    }