Ejemplo n.º 1
0
    public void PreLoadDepend(string wndName)
    {
        var wInfo = new wndShowHideInfo();

        wInfo.name        = wndName;
        wInfo.needVisible = WShowType.preLoad;

        DoCmd(wInfo);
    }
Ejemplo n.º 2
0
 void DoCmd(wndShowHideInfo wInfo)
 {
     m_Cmds.Add(wInfo);
     if (!m_coIsRuning)
     {
         m_coIsRuning = true;
         MonoEX.CoroutineManage.Single.StartCoroutine(coDoCmd());
     }
 }
Ejemplo n.º 3
0
    public void ShowWnd(string wndName, float duration, bool isWithBg)
    {
        var wInfo = new wndShowHideInfo();

        wInfo.name        = wndName;
        wInfo.needVisible = WShowType.show;
        wInfo.duration    = duration;
        wInfo.isWithBg    = isWithBg;
        DoCmd(wInfo);
    }
Ejemplo n.º 4
0
    public void DestroyWnd(string wndName, float duration)
    {
        var wInfo = new wndShowHideInfo();

        wInfo.name        = wndName;
        wInfo.needVisible = WShowType.destroy;
        wInfo.duration    = duration;

        DoCmd(wInfo);
    }
Ejemplo n.º 5
0
    static int get_needVisible(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj = (wndShowHideInfo)o;
            WShowType       ret = obj.needVisible;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index needVisible on a nil value" : e.Message));
        }
    }
Ejemplo n.º 6
0
    static int get_duration(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj = (wndShowHideInfo)o;
            float           ret = obj.duration;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index duration on a nil value" : e.Message));
        }
    }
Ejemplo n.º 7
0
    static int set_isWithBg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj  = (wndShowHideInfo)o;
            bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isWithBg = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isWithBg on a nil value" : e.Message));
        }
    }
Ejemplo n.º 8
0
    static int get_name(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj = (wndShowHideInfo)o;
            string          ret = obj.name;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message));
        }
    }
Ejemplo n.º 9
0
    static int set_PlantfromDetph(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj  = (wndShowHideInfo)o;
            int             arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.PlantfromDetph = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PlantfromDetph on a nil value" : e.Message));
        }
    }
Ejemplo n.º 10
0
    static int set_duration(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj  = (wndShowHideInfo)o;
            float           arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.duration = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index duration on a nil value" : e.Message));
        }
    }
Ejemplo n.º 11
0
    static int set_needVisible(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj  = (wndShowHideInfo)o;
            WShowType       arg0 = (WShowType)ToLua.CheckObject(L, 2, typeof(WShowType));
            obj.needVisible = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index needVisible on a nil value" : e.Message));
        }
    }
Ejemplo n.º 12
0
    static int set_name(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj  = (wndShowHideInfo)o;
            string          arg0 = ToLua.CheckString(L, 2);
            obj.name = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message));
        }
    }
Ejemplo n.º 13
0
    static int get_isWithBg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj = (wndShowHideInfo)o;
            bool            ret = obj.isWithBg;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isWithBg on a nil value" : e.Message));
        }
    }
Ejemplo n.º 14
0
    static int get_PlantfromDetph(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            wndShowHideInfo obj = (wndShowHideInfo)o;
            int             ret = obj.PlantfromDetph;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PlantfromDetph on a nil value" : e.Message));
        }
    }
Ejemplo n.º 15
0
    static int _CreatewndShowHideInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                wndShowHideInfo obj = new wndShowHideInfo();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: wndShowHideInfo.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }