text.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //
  2. // Copyright (c) 2009, Wei Mingzhi <whistler_wmz@users.sf.net>.
  3. // All rights reserved.
  4. //
  5. // This file is part of SDLPAL.
  6. //
  7. // SDLPAL is free software: you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public License as published by
  9. // the Free Software Foundation, either version 3 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // This program is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. //
  20. #ifndef _TEXT_H
  21. #define _TEXT_H
  22. typedef enum tagDIALOGPOSITION
  23. {
  24. kDialogUpper = 0,
  25. kDialogCenter,
  26. kDialogLower,
  27. kDialogCenterWindow
  28. } DIALOGLOCATION;
  29. #define PAL_ADDITIONAL_WORD_FIRST 10000
  30. INT
  31. PAL_InitText(
  32. VOID
  33. );
  34. VOID
  35. PAL_FreeText(
  36. VOID
  37. );
  38. LPCSTR
  39. PAL_GetWord(
  40. WORD wNumWord
  41. );
  42. LPCSTR
  43. PAL_GetMsg(
  44. WORD wNumMsg
  45. );
  46. VOID
  47. PAL_DrawText(
  48. LPCSTR lpszText,
  49. PAL_POS pos,
  50. BYTE bColor,
  51. BOOL fShadow,
  52. BOOL fUpdate
  53. );
  54. VOID
  55. PAL_DialogSetDelayTime(
  56. INT iDelayTime
  57. );
  58. VOID
  59. PAL_StartDialog(
  60. BYTE bDialogLocation,
  61. BYTE bFontColor,
  62. INT iNumCharFace,
  63. BOOL fPlayingRNG
  64. );
  65. VOID
  66. PAL_ShowDialogText(
  67. LPCSTR szText
  68. );
  69. VOID
  70. PAL_ClearDialog(
  71. BOOL fWaitForKey
  72. );
  73. VOID
  74. PAL_EndDialog(
  75. VOID
  76. );
  77. BOOL
  78. PAL_IsInDialog(
  79. VOID
  80. );
  81. BOOL
  82. PAL_DialogIsPlayingRNG(
  83. VOID
  84. );
  85. #endif