示例#1
0
        public unsafe void RenderTick(uint *bmpAddress, int bmpWidth, int bmpHeight)
        {
            _background.DrawOn(bmpAddress, bmpWidth, bmpHeight, 0, 0, bmpWidth, bmpHeight);

            foreach (PartyMemberButton button in _buttons)
            {
                button.Render(bmpAddress, bmpWidth, bmpHeight);
            }

            _fadeFromTransition?.RenderTick(bmpAddress, bmpWidth, bmpHeight);
            _fadeToTransition?.RenderTick(bmpAddress, bmpWidth, bmpHeight);
        }
示例#2
0
        public unsafe void RenderTick(uint *bmpAddress, int bmpWidth, int bmpHeight)
        {
            if (_partyMenuGUI != null)
            {
                _partyMenuGUI.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                return;
            }

            if (!_isShowingMoves)
            {
                _fightChoices.Render(bmpAddress, bmpWidth, bmpHeight);

                _fadeFromTransition?.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                _fadeToTransition?.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                return;
            }

            _moveChoices.Render(bmpAddress, bmpWidth, bmpHeight);
        }
示例#3
0
        public unsafe void RenderTick(uint *bmpAddress, int bmpWidth, int bmpHeight, int?fps)
        {
            lock (_threadLockObj)
            {
                if (_battleTransition != null)
                {
                    _battleTransition.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                    goto bottom;
                }
                if (_battleGUI != null)
                {
                    _battleGUI.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                    goto bottom;
                }
                _overworldGUI.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                if (_fadeFromTransition != null)
                {
                    _fadeFromTransition.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                    goto bottom;
                }
                if (_fadeToTransition != null)
                {
                    _fadeToTransition.RenderTick(bmpAddress, bmpWidth, bmpHeight);
                    goto bottom;
                }
bottom:
                foreach (MessageBox mb in MessageBoxes.ToArray())
                {
                    mb.Render(bmpAddress, bmpWidth, bmpHeight);
                }
                if (fps.HasValue)
                {
                    Font.Default.DrawString(bmpAddress, bmpWidth, bmpHeight, 0, 0, fps.Value.ToString(), Font.DefaultFemale);
                }
            }
        }