Akianzax

Akián~RGSS3 Choice Style VX

May 30th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.33 KB | None | 0 0
  1. #===============================================================================
  2. #                                          
  3. # Este Script permite que las ventanas para elegir sean como en
  4. # RPGMaker Vx
  5. # Centrandolas abajo en vez de a la derecha arriba.
  6. #===============================================================================
  7. class Window_ChoiceList < Window_Command
  8. #===============================================================================
  9. # ▼ Actualización de la posición de la ventana.
  10. #===============================================================================
  11.   def update_placement
  12.     self.width = 544                    
  13.     self.width = 544                    
  14.     self.height = fitting_height(3)      
  15.     if $game_message.face_name.empty?    
  16.       self.x = 0
  17.     else
  18.       self.x = 112
  19.       self.width -= 112
  20.     end
  21.     if @message_window.y >= Graphics.height / 2
  22.       self.y = @message_window.y + 24 # Altura
  23.     else
  24.       self.y = @message_window.y + 24 # Altura
  25.     end
  26.     self.z = 201
  27.     self.opacity = 0
  28.  
  29.   end
  30. end
  31.  
  32. #===============================================================================
  33. #
  34. #                               ▼ Fin
  35. #                                          
  36. #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment