Guest User

Untitled

a guest
Jun 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1.  
  2. # Replace the Main script with this one.
  3.  
  4. # put the name of the font here. The font *.ttf file must be located inside
  5. # $partition_letter:\Windows\Fonts directory.
  6. FONT = "MKBritishWriting"
  7. #size of font
  8. FONT_SIZE = 24
  9.  
  10.  
  11. ################################################################################
  12. def FontExist?
  13. unless Font.exist? ( Font.default_name )
  14. print "Unable to find #{Font.default_name} font."
  15. exit
  16. end
  17. end
  18.  
  19. def FontLoad ( fontname, fontsize )
  20. Font.default_name = fontname
  21. Font.default_size = fontsize
  22. FontExist?
  23. end
  24.  
  25.  
  26. #==============================================================================
  27. # ** Main
  28. #------------------------------------------------------------------------------
  29. # After defining each class, actual processing begins here.
  30. #==============================================================================
  31.  
  32. begin
  33. Graphics.freeze
  34. FontLoad ( FONT, FONT_SIZE )
  35. $scene = Scene_Title.new
  36. $scene.main while $scene != nil
  37. Graphics.transition(30)
  38. rescue Errno::ENOENT
  39. filename = $!.message.sub("No such file or directory - ", "")
  40. print("Unable to find file #{filename}.")
  41. end
Add Comment
Please, Sign In to add comment