private unsafe void RCB_EggHatch(uint *bmpAddress, int bmpWidth, int bmpHeight) { RenderUtils.OverwriteRectangle(bmpAddress, bmpWidth, bmpHeight, RenderUtils.Color(30, 30, 30, 255)); AnimatedImage.UpdateCurrentFrameForAll(); _img.DrawOn(bmpAddress, bmpWidth, bmpHeight, _imgX, _imgY); switch (_state) { case State.FadeIn: case State.FadeToWhite: case State.FadeToHatched: case State.FadeOut: { _fadeTransition.RenderTick(bmpAddress, bmpWidth, bmpHeight); return; } case State.AnEggIsHatchingMsg: case State.PkmnHatchedMsg: { _stringWindow.Render(bmpAddress, bmpWidth, bmpHeight); return; } } }
private unsafe void RCB_RenderTick(uint *bmpAddress, int bmpWidth, int bmpHeight) { RenderUtils.ThreeColorBackground(bmpAddress, bmpWidth, bmpHeight, RenderUtils.Color(215, 231, 230, 255), RenderUtils.Color(231, 163, 0, 255), RenderUtils.Color(242, 182, 32, 255)); AnimatedImage.UpdateCurrentFrameForAll(); _pkmnImage.DrawOn(bmpAddress, bmpWidth, bmpHeight, RenderUtils.GetCoordinatesForCentering(bmpWidth, _pkmnImage.Width, 0.2f), RenderUtils.GetCoordinatesForEndAlign(bmpHeight, _pkmnImage.Height, 0.6f)); _pageImage.DrawOn(bmpAddress, bmpWidth, bmpHeight, 1f - PageImageWidth, 1f - PageImageHeight); }
private unsafe void RCB_Evolution(uint *bmpAddress, int bmpWidth, int bmpHeight) { RenderUtils.OverwriteRectangle(bmpAddress, bmpWidth, bmpHeight, RenderUtils.Color(30, 30, 30, 255)); AnimatedImage.UpdateCurrentFrameForAll(); _img.DrawOn(bmpAddress, bmpWidth, bmpHeight, _imgX, _imgY); switch (_state) { case State.FadeIn: case State.FadeToWhite: case State.FadeToEvo: case State.FadeOut: case State.LearnMove_FadeToSummary: case State.LearnMove_FadeFromSummary: { _fadeTransition.RenderTick(bmpAddress, bmpWidth, bmpHeight); return; } case State.IsEvolvingMsg: case State.EvolvedIntoMsg: case State.CancelledMsg: case State.LearnMove_WantsToLearnMoveMsg: case State.LearnMove_GiveUpLearningMsg: case State.LearnMove_DidNotLearnMsg: case State.LearnMove_ForgotMsg: { _stringWindow.Render(bmpAddress, bmpWidth, bmpHeight); return; } case State.LearnMove_WantsToLearnMoveChoice: case State.LearnMove_GiveUpLearningChoice: { _stringWindow.Render(bmpAddress, bmpWidth, bmpHeight); _textChoicesWindow.Render(bmpAddress, bmpWidth, bmpHeight); return; } } }