Pumamori

Puma's Fontchange

Oct 20th, 2014
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.36 KB | None | 0 0
  1. #=============================================================================#
  2. # Puma's Fontchange                                       Version 0.4         #
  3. # No need to credit me.                                                       #
  4. #=============================================================================#
  5. # Instructions:                                                               #
  6. #-----------------------------------------------------------------------------#
  7. # To change the font ingame, use a script call with the following arguments.  #
  8. #                                                                             #
  9. # puma_fontedit_changefont(name, size, bold, italic, shadow)                  #
  10. #                                                                             #
  11. #  name: For example, "Times New Roman"                                       #
  12. #  size: Size of the text, in pt def: "20"                                    #
  13. #  bold: Want your text to be bold? true/false; def: false                    #
  14. #  italic: Want your text to be italic? true/false; def: false                #
  15. #  shadow: Want to draw a shadow? true/false; def: true                       #
  16. #                                                                             #
  17. #=============================================================================#
  18.  
  19. #---------------------------------------------------#
  20. #Default Settings, these apply when the game starts.#
  21. #---------------------------------------------------#
  22. Font.default_name = "Times New Roman" #Schriftart
  23. Font.default_size = 20 # Font Size
  24. Font.default_bold = false # If true, the font will be printed out bold.
  25. Font.default_italic = false # If true, the font will be printed out italic.
  26. Font.default_shadow = true # If true, the font will be drawn with a shadow.
  27.  
  28. #=============================================================================#
  29. # Changing anything past this point might lead to self-ignition, explosion of #
  30. # vital organs, brain damage or equally bad things. Edit at your own risk.    #
  31. #=============================================================================#
  32.  
  33. #New Method#
  34. def puma_fontedit_changefont(name, size, bold, italic, shadow)
  35.   Font.default_name = name
  36.   Font.default_size = size
  37.   Font.default_bold = bold
  38.   Font.default_italic = italic
  39.   Font.default_shadow = shadow
  40. end
Advertisement
Add Comment
Please, Sign In to add comment