Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.83 KB | None | 0 0
  1. #------------------------------------------------------------------------------
  2. #------------------------------------------------------------------------------
  3. class Window_VictorySpoils < Window_ItemList
  4.   def item_height
  5.     24
  6.   end
  7.   def item_width
  8.     240
  9.   end
  10.   def page_row_max
  11.     2
  12.   end
  13.   def col_max
  14.     return 2
  15.   end
  16.   def item_rect(index)
  17.     cm = col_max > 0 ? col_max : 1
  18.     rect = Rect.new
  19.     rect.width = item_width
  20.     rect.height = item_height
  21.     rect.x = index % cm * (item_width + spacing)
  22.     rect.y = index / cm * item_height
  23.     rect
  24.   end
  25. end
  26.  
  27. #------------------------------------------------------------------------------
  28. # Thanks to : "https://www.facebook.com/sakuya.farhan"
  29. # Add On Tested by : Sawaragi (Me)
  30. #------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement