GFXFADE.cpp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #include "GFXFADE.h"
  2. #include "GFXRENDER.h"
  3. #include "CFE.h"
  4. #include "XMATH.h"
  5. #include "FTTColour.h"
  6. #include "FESU.h"
  7. #include "FE2D.h"
  8. #include "FTTFont.h"
  9. #include "LOCstring.h"
  10. bool bool_457968 = false;
  11. MYSTATIC uchar tick_byte_33EFC8 = 20;
  12. MYSTATIC EFadeType EFadeType_45796C;
  13. //-------------------------------------------------------------------------------------------------
  14. //0018433E
  15. void GFXFADE_SetUpWithoutFade() {
  16. //empty
  17. }
  18. //-------------------------------------------------------------------------------------------------
  19. //00184340
  20. bool GFXFADE_FadeOut(EFadeType eType) {
  21. bool bret = true;
  22. return bret;
  23. }
  24. //-------------------------------------------------------------------------------------------------
  25. //00184374
  26. void GFXFADE_FadeIn(EFadeType eType) {
  27. }
  28. //-------------------------------------------------------------------------------------------------
  29. //001843B0
  30. bool GFXFADE_IsFadingOut() {
  31. return bool_457968;
  32. }
  33. //-------------------------------------------------------------------------------------------------
  34. //001843BC
  35. bool GFXFADE_IsFadingIn() {
  36. int dr2 = 0;
  37. if (tick_byte_33EFC8 < 0x14u)
  38. dr2 = 1;
  39. return (bool_457968 ^ 1) & dr2;
  40. }
  41. //-------------------------------------------------------------------------------------------------
  42. //001843E0
  43. uchar GFXFADE_GetFadeTick() {
  44. return tick_byte_33EFC8;
  45. }
  46. //-------------------------------------------------------------------------------------------------
  47. //001843EC
  48. bool GFXFADE_IsFadedOut() {
  49. uchar v0 = 0;
  50. if (tick_byte_33EFC8 > 0x13u)
  51. v0 = 1;
  52. return bool_457968 & v0;
  53. }
  54. //-------------------------------------------------------------------------------------------------
  55. //00184410
  56. bool GFXFADE_IsFading() {
  57. uchar v0 = 0;
  58. if (tick_byte_33EFC8 < 0x14u)
  59. v0 = 1;
  60. return (bool_457968 | v0) & 1;
  61. }
  62. //-------------------------------------------------------------------------------------------------
  63. //00184438
  64. void GFXFADE_Init() {
  65. }
  66. //-------------------------------------------------------------------------------------------------
  67. //0018445C
  68. void GFXFADE_Reset() {
  69. }
  70. //-------------------------------------------------------------------------------------------------
  71. //00184480
  72. void GFXFADE_Kill() {
  73. //empty
  74. }
  75. //-------------------------------------------------------------------------------------------------
  76. //00184484
  77. void GFXFADE_Update(bool a1) {
  78. LOGE("GFXFADE_Update%x",a1);
  79. }
  80. //-------------------------------------------------------------------------------------------------
  81. //00184508 //^_- 经过单元测试,功能正常
  82. void GFXFADE_Render() {
  83. LOGI("GFXFADE_Render End");
  84. }
  85. //-------------------------------------------------------------------------------------------------