Advertisement
dsiver144

Untitled

Jul 22nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. #==============================================================================
  2. # DSI Status Menu
  3. # -- Last Updated: 2017.07.23
  4. # -- Author: dsiver144
  5. # -- Level: Easy
  6. # -- Requires: n/a
  7. #==============================================================================
  8. $imported = {} if $imported.nil?
  9. $imported["DSI-NewStatusMenu"] = true
  10. #==============================================================================
  11. # + Updates
  12. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13. # 2017.07.23 - Finish first version.
  14. #==============================================================================
  15. # + Instructions
  16. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  17. # To install this script, open up your script editor and copy/paste this script
  18. # to an open slot below ?? Materials/?f?? but above ?? Main. Remember to save.
  19. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  20. # Script call: SceneManager.call(Scene_NewStatusMenu) -> Open Status menu
  21. # + change_ass_image(filename)
  22. # + change_pussy_image(filename)
  23. # + change_breasts_image(filename)
  24. # + change_mouth_image(filename)
  25. # -> Use them to change image in squares to another one.
  26. #==============================================================================
  27. module DSIVER144
  28. module STATUS_MENU
  29.  
  30. Graphic_Path = "Graphics/Status Menu"
  31.  
  32. Main_status_var_id = 1
  33.  
  34. P_status_var_id = 20
  35. P_Status_Images = {}
  36. P_Status_Images[1] = "Status_P1"
  37. P_Status_Images[2] = "Status_P2"
  38.  
  39. Breasts_var_id = 63
  40. Oral_var_id = 64
  41. Vaginal_var_id = 65
  42. Anal_var_id = 66
  43.  
  44. Squares_Images = {}
  45. Squares_Images["Breasts"] = "Tits"
  46. Squares_Images["Mouth"] = "Mouth"
  47. Squares_Images["Ass"] = "Ass"
  48. Squares_Images["Pussy"] = "Pussy"
  49.  
  50. Spearm_Status = {} # Don't touch this line please
  51.  
  52. Spearm_Status["Sperm ABS"] = [121,"Status_S_Abs"] # [Switch ID, Pic Name]
  53. Spearm_Status["Sperm Chest"] = [122,"Status_S_Chest"]
  54. Spearm_Status["Sperm Face"] = [123,"Status_S_Face"]
  55. Spearm_Status["Sperm Legs"] = [124,"Status_S_Legs"]
  56. Spearm_Status["Sperm Lips"] = [125,"Status_S_Lips"]
  57. Spearm_Status["Sperm Mouth"] = [126,"Status_S_Mouth"]
  58. Spearm_Status["Sperm Nose"] = [127,"Status_S_Nose"]
  59. Spearm_Status["Sperm Pussy"] = [128,"Status_S_Pussy"]
  60.  
  61. Status_Images = {} # Don't touch this line please
  62.  
  63. Status_Images[100] = "Status_100"
  64. Status_Images[80] = "Status_80"
  65. Status_Images[60] = "Status_60"
  66. Status_Images[40] = "Status_40"
  67. Status_Images[20] = "Status_20"
  68. end # STATUS_MENU
  69.  
  70. end # DSIVER144
  71.  
  72. class Game_Interpreter
  73. #----------------------------------------------------------------------------
  74. # * new method: change_breasts_image
  75. #----------------------------------------------------------------------------
  76. def change_breasts_image(filename)
  77. $game_system.ht_square_images["Breasts"] = filename
  78. end
  79. #----------------------------------------------------------------------------
  80. # * new method: change_breasts_image
  81. #----------------------------------------------------------------------------
  82. def change_mouth_image(filename)
  83. $game_system.ht_square_images["Mouth"] = filename
  84. end
  85. #----------------------------------------------------------------------------
  86. # * new method: change_breasts_image
  87. #----------------------------------------------------------------------------
  88. def change_ass_image(filename)
  89. $game_system.ht_square_images["Ass"] = filename
  90. end
  91. #----------------------------------------------------------------------------
  92. # * new method: change_breasts_image
  93. #----------------------------------------------------------------------------
  94. def change_pussy_image(filename)
  95. $game_system.ht_square_images["Pussy"] = filename
  96. end
  97. end # Game_Interpreter
  98.  
  99. class Game_System
  100. include DSIVER144::STATUS_MENU
  101. attr_accessor :ht_square_images
  102. alias_method(:dsi_ht_square_images_init, :initialize)
  103. def initialize
  104. @ht_square_images = {}
  105. Squares_Images.each_pair do |key,filename|
  106. @ht_square_images[key] = filename
  107. end
  108. dsi_ht_square_images_init
  109. end
  110. end # Game_System
  111.  
  112. class Scene_NewStatusMenu < Scene_Base
  113. include DSIVER144::STATUS_MENU
  114. #----------------------------------------------------------------------------
  115. # * new method: start
  116. #----------------------------------------------------------------------------
  117. def start
  118. super
  119. create_sprites
  120. end
  121. #----------------------------------------------------------------------------
  122. # * new method: create_sprites
  123. #----------------------------------------------------------------------------
  124. def create_sprites
  125. @sprites = {}
  126. @sprites[:bg] = Sprite.new
  127. @sprites[:bg].bitmap = Cache.status("Menu_BG")
  128. @sprites[:bg].z = 0
  129. @sprites[:main] = Sprite.new
  130. case $game_variables[Main_status_var_id]
  131. when 0..20
  132. @sprites[:main].bitmap = Cache.status(Status_Images[20])
  133. when 21..40
  134. @sprites[:main].bitmap = Cache.status(Status_Images[40])
  135. when 41..60
  136. @sprites[:main].bitmap = Cache.status(Status_Images[60])
  137. when 61..80
  138. @sprites[:main].bitmap = Cache.status(Status_Images[80])
  139. when 81..100
  140. @sprites[:main].bitmap = Cache.status(Status_Images[100])
  141. end
  142. @sprites[:main].z = 5
  143. @sprites[:p_status] = Sprite.new
  144. @sprites[:p_status].z = 6
  145. case $game_variables[P_status_var_id]
  146. when 1
  147. @sprites[:p_status].bitmap = Cache.status(P_Status_Images[1])
  148. when 2
  149. @sprites[:p_status].bitmap = Cache.status(P_Status_Images[2])
  150. end
  151. $game_system.ht_square_images.each_pair do |key,filename|
  152. @sprites[key.to_sym] = Sprite.new
  153. @sprites[key.to_sym].z = 6
  154. @sprites[key.to_sym].bitmap = Cache.status(filename)
  155. end
  156. @sprites[:outline] = Sprite.new
  157. @sprites[:outline].bitmap = Cache.status("Squares_Outline")
  158. @sprites[:outline].z = 7
  159. @sprites[:square_var] = Sprite.new
  160. @sprites[:square_var].bitmap = Bitmap.new(Graphics.width,Graphics.height)
  161. @sprites[:square_var].bitmap.font.name = ['Franklin Gothic Heavy']
  162. @sprites[:square_var].z = 8
  163. coors = [[175,78,Breasts_var_id],[520,10,Oral_var_id],[175,330,Vaginal_var_id],[522,250,Anal_var_id]]
  164. coors.each do |pos|
  165. value = $game_variables[pos[2]]
  166. @sprites[:square_var].bitmap.draw_text(pos[0],pos[1],200,24,value)
  167. end
  168. Spearm_Status.each_pair do |key,status|
  169. if $game_switches[status[0]]
  170. @sprites[key.to_sym] = Sprite.new
  171. @sprites[key.to_sym].bitmap = Cache.status(status[1])
  172. @sprites[key.to_sym].z = 7
  173. end
  174. end
  175. end
  176. #----------------------------------------------------------------------------
  177. # * new method: update
  178. #----------------------------------------------------------------------------
  179. def update
  180. super
  181. if Input.trigger?(:B)
  182. return_scene
  183. end
  184. end
  185. #----------------------------------------------------------------------------
  186. # * new method: terminate
  187. #----------------------------------------------------------------------------
  188. def terminate
  189. super
  190. @sprites.values.each do |sprite|
  191. sprite.bitmap.dispose if sprite.bitmap
  192. sprite.dispose
  193. end
  194. end
  195. end # Scene_NewStatusMenu
  196.  
  197. module Cache
  198. #--------------------------------------------------------------------------
  199. # * Get Status Graphic
  200. #--------------------------------------------------------------------------
  201. def self.status(filename)
  202. load_bitmap(DSIVER144::STATUS_MENU::Graphic_Path+"/",filename)
  203. end
  204. end # Cache
  205.  
  206. class Scene_Menu
  207. #----------------------------------------------------------------------------
  208. # * new method: command_status
  209. #----------------------------------------------------------------------------
  210. def command_status
  211. SceneManager.call(Scene_NewStatusMenu)
  212. end
  213. end # Scene_Menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement