示例#1
0
 static int GetObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.UiControlContainer));
         string arg0 = ToLua.CheckString(L, 2);
         UnityEngine.GameObject o = obj.GetObject(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 static int UnRegistObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.UiControlContainer));
         string arg0 = ToLua.CheckString(L, 2);
         bool   o    = obj.UnRegistObject(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_controls(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Assets.Script.Frame.PanelBase          obj = (Assets.Script.Frame.PanelBase)o;
            Assets.Script.Frame.UiControlContainer ret = obj.controls;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controls on a nil value" : e.Message));
        }
    }
示例#4
0
 static int RegistButton(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)ToLua.CheckObject(L, 1, typeof(Assets.Script.Frame.UiControlContainer));
         string arg0 = ToLua.CheckString(L, 2);
         UnityEngine.UI.Button arg1 = (UnityEngine.UI.Button)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.UI.Button));
         bool o = obj.RegistButton(arg0, arg1);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
    static int set_panelbases(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)o;
            System.Collections.Generic.Dictionary <string, Assets.Script.Frame.PanelBase> arg0 = (System.Collections.Generic.Dictionary <string, Assets.Script.Frame.PanelBase>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, Assets.Script.Frame.PanelBase>));
            obj.panelbases = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index panelbases on a nil value" : e.Message));
        }
    }
示例#6
0
    static int get_panelbases(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Assets.Script.Frame.UiControlContainer obj = (Assets.Script.Frame.UiControlContainer)o;
            System.Collections.Generic.Dictionary <string, Assets.Script.Frame.PanelBase> ret = obj.panelbases;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index panelbases on a nil value" : e.Message));
        }
    }