Archeia

Lunatic Backgrounds Redo

Jan 12th, 2015
272
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #==============================================================================
  2. # ■ MenuLuna: Main Menu Lunatic Configuration
  3. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4. # This section modifies the Main Menu Screen. The first menu you see upon
  5. # opening. This is meant to add features that aren't available in the default
  6. # config. This section requires minimal programming knowledge, at least, the
  7. # syntaxes/definitions used in RPG Maker.
  8. #==============================================================================
  9.  
  10. module MenuLuna
  11.   module MainMenu
  12. #==============================================================================
  13. # ■ Lunatic Instructions
  14. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  15. # You need to use a _return array_ which contains all text and bitmap data.
  16. # For example as seen in Lunatic Status Configuration:
  17. # result = [
  18. #       ["NAME BLOCK", [0, 0]],
  19. #   ]  
  20. # There are many different kinds of array. To learn more about them, either
  21. # consult the RPG Maker help file or learn programming basics.
  22. #
  23. #   To Display Text:   
  24. # [Text/"Text", [X, Y], [Width, Align], [FONT R, G, B(, A)],
  25. #       [FontName, FontSize, FontBold, FontItalic], [OUTLINE R, G, B(, A)]],   
  26. #  
  27. # Display Text Example:
  28. # ["Description", [2, 33], [200, 200], [255, 255, 255, 255],
  29. #   ["VLGothic", 24, true, false], [0, 0, 0, 0]],
  30. #  
  31. # You can also use commands like Font.default settings instead of setting them.
  32. #
  33. # You can also display bitmap/images. This setting is very flexible!
  34. # You can set a folder to find the image you wanted to display. For example,
  35. # $bitmap[System, GoldIcon] will search for Graphics/System/GoldIcon.png
  36. #
  37. # In order to display the bitmap, this is the command:
  38. # ["$bitmap[Folder, FileName]", [X, Y], Opacity, offset_x, offset_y, width, height]
  39. #
  40. # You can either draw (display) it like these:
  41. # ["$bitmap[System, GoldIcon]", [128, 0], 255, [0, 0, "bw * 0.5", "bh"]]
  42. # ["$bitmap[System, GoldIcon]", [128, 0], 255, [0, 0, 128, 42]]
  43. #
  44. # If you want to display a solid color, replace the $bitmap[Folder, "Filename"]
  45. # part with $color[R, G, B]. It should look like this:
  46. # [$color[R, G, B], [X, Y], Opacity, offset_x, offset_y, width, height]
  47. #
  48. # If you want to display a horizontal gradient image, this is how you'll do it.
  49. # [$horgrad[R1, G1, B1, R2, G2, B2], [X, Y], Opacity, offset_x, offset_y, width, height]
  50. #
  51. # If you want to display a vertical gradient image, this is how you'll do it.
  52. # [$vergrad[R1, G1, B1, R2, G2, B2], [X, Y], Opacity, offset_x, offset_y, width, height]
  53. #
  54. # If you want to display icons, this is how you'll do it:
  55. # ["$icon[Index]", [X, Y], Opacity]
  56. # An example usage would look like this: ["$icon[10]", [128, 0], 255]
  57. # To find the index of an icon, you can check it in the RPG Maker Database
  58. # while selecting an icon for a skill/item/etc.
  59. #
  60. # If you see "contents" this refers to the window's bitmap contents.
  61. # You can use the example below to draw custom things on window.
  62. #
  63. # result = [ANYTHING HERE]
  64. # if index == 0
  65. #   result.push(ANYTHING HERE)
  66. # end
  67. #
  68. # You can even do a contents.clear to erase all the items and replace it
  69. # completely with your own configurations.
  70. #
  71. # If you are a programmer, you can use Lunatic Common to create your own settings.
  72. # That's all you need to know for Lunatic Configurations!
  73. #
  74. #==============================================================================
  75.  
  76.     # -----------------------------------------------------------------
  77.     # This method allows you to modify Window_Command
  78.     # -----------------------------------------------------------------
  79.     def self.user_command_text(index, contents, item_rect, enable, select)
  80.         # Do your magic here!
  81.     end
  82.     # -----------------------------------------------------------------
  83.     # This method allows you to modify the Window_Status
  84.     # -----------------------------------------------------------------
  85.     def self.user_status_text(index, actor, contents, item_rect, enable, select, formation)
  86.         # Do your magic here!
  87.     end
  88.     # -----------------------------------------------------------------
  89.     # This method allows you to modify the Gold Window
  90.     # -----------------------------------------------------------------
  91.     def self.user_gold_text(contents)
  92.     # -----------------------------------------------------------------
  93.     # This changes how font is displayed in Gold_Window
  94.     # -----------------------------------------------------------------
  95.       result = [
  96.         ["#{$game_party.gold}#{Vocab::currency_unit}",
  97.           [0, 0], [136, 2], [255, 255, 255], ["VL Gothic", 24, false, false]],
  98.       ]
  99.     end
  100.   end
  101. end
RAW Paste Data