FairyGUI.Window.CloseModalWait C# (CSharp) Method

CloseModalWait() public method

Close modal waiting. If rquestingCmd is equal to the value you transfer in ShowModalWait, mowal wait will be closed. Otherwise, this function has no effect. 关闭模式等待。如果requestingCmd和ShowModalWait传入的不相同,则这个函数没有任何动作,立即返回。
public CloseModalWait ( int requestingCmd ) : bool
requestingCmd int
return bool
        public bool CloseModalWait(int requestingCmd)
        {
            if (requestingCmd != 0)
            {
                if (_requestingCmd != requestingCmd)
                    return false;
            }
            _requestingCmd = 0;

            if (_modalWaitPane != null && _modalWaitPane.parent != null)
                RemoveChild(_modalWaitPane);

            return true;
        }

Same methods

Window::CloseModalWait ( ) : bool

Usage Example

    static int CloseModalWait(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Window)))
            {
                FairyGUI.Window obj = (FairyGUI.Window)ToLua.ToObject(L, 1);
                bool            o   = obj.CloseModalWait();
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Window), typeof(int)))
            {
                FairyGUI.Window obj  = (FairyGUI.Window)ToLua.ToObject(L, 1);
                int             arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                bool            o    = obj.CloseModalWait(arg0);
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Window.CloseModalWait"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.Window::CloseModalWait