すくすくゴートうちゃん Android 版(黒歴史)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
829 B

  1. #ifndef __DIALOGUE__
  2. #define __DIALOGUE__
  3. /**
  4. * ダイアログ・ウィンドウ
  5. *
  6. * @property bool showing
  7. */
  8. #module \
  9. Dialogue
  10. #const DIALOGUE_WIDTH 840
  11. #const DIALOGUE_HEIGHT 600
  12. #const DIALOGUE_TOP 360
  13. #const DIALOGUE_BOTTOM (DIALOGUE_TOP + DIALOGUE_HEIGHT)
  14. #const DIALOGUE_LEFT ((DISPLAY_WIDTH - DIALOGUE_WIDTH) / 2)
  15. #const DIALOGUE_RIGHT ((DISPLAY_WIDTH + DIALOGUE_WIDTH) / 2)
  16. /**
  17. * ダイアログを表示する.
  18. *
  19. * @return void
  20. */
  21. #deffunc local \
  22. Show
  23. showing = True
  24. Return
  25. /**
  26. * ダイアログを隠す.
  27. *
  28. * @return void
  29. */
  30. #deffunc local \
  31. Hide
  32. showing = False
  33. Return
  34. /**
  35. * ダイアログを描画する.
  36. *
  37. * @return void
  38. */
  39. #deffunc local \
  40. Draw
  41. If showing = False {
  42. Return
  43. }
  44. Pos DIALOGUE_LEFT, DIALOGUE_TOP
  45. CelPut bufferId
  46. Return
  47. #global
  48. #endif ; not __DIALOGUE__