すくすくゴートうちゃん 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.

68 lines
1.1 KiB

  1. #include "./modules/dialogue.mod.hsp"
  2. #include "./modules/my_button.mod.hsp"
  3. #include "./modules/keyboard.mod.hsp"
  4. #include "./modules/char.mod.hsp"
  5. #include "./modules/user.mod.hsp"
  6. #ifndef __NAME_DIALOGUE__
  7. #define __NAME_DIALOGUE__
  8. #module \
  9. NameDialogue
  10. #const DIALOGUE_TOP DIALOGUE_TOP@Dialogue
  11. #const DIALOGUE_BOTTOM DIALOGUE_BOTTOM@Dialogue
  12. #const DIALOGUE_LEFT DIALOGUE_LEFT@Dialogue
  13. #const DIALOGUE_RIGHT DIALOGUE_RIGHT@Dialogue
  14. #deffunc local \
  15. Show
  16. ButtonOk = New@MyButton (DISPLAY_WIDTH / 2, DIALOGUE_BOTTOM@Dialogue - 132, BUFFER_BUTTON_OK, *Ok)
  17. Char = New@Char (DIALOGUE_LEFT + 168, DIALOGUE_TOP + 272, "")
  18. size@Char.Char = 64
  19. Show@Keyboard
  20. bufferId@Dialogue = BUFFER_NAME_DIALOGUE
  21. Show@Dialogue
  22. Return
  23. #deffunc local \
  24. Hide
  25. Destroy@MyButton ButtonOk
  26. Destroy@Char Char
  27. Hide@Keyboard
  28. Hide@Dialogue
  29. Return
  30. #deffunc local \
  31. Interval
  32. GetChar@Keyboard
  33. text@Char.Char = text@Keyboard
  34. Return
  35. #deffunc local \
  36. Draw
  37. Draw@Dialogue
  38. Draw@MyButton
  39. Interval
  40. Return
  41. *Ok
  42. Hide
  43. Create@User text@Keyboard
  44. Return
  45. #global
  46. #endif ; not __NAME_DIALOGUE__