FairyGUI.Window.ShowModalWait C# (CSharp) Method

ShowModalWait() public method

Display a modal waiting sign in the front. 显示一个等待标志在最前面。等待标志的资源可以通过UIConfig.windowModalWaiting。等待标志组件会设置为屏幕大小,请内部做好关联。 还可以设定一个requestingCmd作为等待的命令字,在CloseModalWait里传入相同的命令字ModalWait将结束,否则CloseModalWait无效。
public ShowModalWait ( int requestingCmd ) : void
requestingCmd int
return void
        public void ShowModalWait(int requestingCmd)
        {
            if (requestingCmd != 0)
                _requestingCmd = requestingCmd;

            if (UIConfig.windowModalWaiting != null)
            {
                if (_modalWaitPane == null)
                {
                    _modalWaitPane = UIPackage.CreateObjectFromURL(UIConfig.windowModalWaiting);
                    _modalWaitPane.SetHome(this);
                }

                LayoutModalWaitPane();

                AddChild(_modalWaitPane);
            }
        }

Same methods

Window::ShowModalWait ( ) : void

Usage Example

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

            if (count == 1)
            {
                FairyGUI.Window obj = (FairyGUI.Window)ToLua.CheckObject <FairyGUI.Window>(L, 1);
                obj.ShowModalWait();
                return(0);
            }
            else if (count == 2)
            {
                FairyGUI.Window obj  = (FairyGUI.Window)ToLua.CheckObject <FairyGUI.Window>(L, 1);
                int             arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                obj.ShowModalWait(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Window.ShowModalWait"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.Window::ShowModalWait