Exemplo n.º 1
0
            }   // end of UpdateObj KeyInput()

            public void Accept()
            {
                parent.Button = TextDialogButtons.Accept;

                if (shared.curString.Length > 0)
                {
                    parent.Deactivate();
                }
                else
                {
                    shared.ResetString();
                }

                if (parent.OnButtonPressed != null)
                {
                    parent.OnButtonPressed(parent);
                }
            }
Exemplo n.º 2
0
        }   // end of DoneLoadingContent()

        public override bool Refresh(List <UpdateObject> updateList, List <RenderObject> renderList)
        {
            bool result = false;

            if (state != pendingState)
            {
                if (pendingState)
                {
                    updateList.Add(updateObj);
                    updateObj.Activate();
                    renderList.Add(renderObj);
                    renderObj.Activate();
                }
                else
                {
                    BokuGame.gameListManager.RemoveObject(this);
                    renderObj.Deactivate();
                    renderList.Remove(renderObj);
                    updateObj.Deactivate();
                    updateList.Remove(updateObj);

                    titleScreen.Deactivate();
                    logonDialog.Deactivate();

                    result = true;
                }

                state = pendingState;
            }

            // call refresh on child list.
            titleScreen.Refresh(updateObj.updateList, renderObj.renderList);
            logonDialog.Refresh(updateObj.updateList, renderObj.renderList);

            return(result);
        }   // end of TitleScreenMode Refresh()