Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------------------------------------------------------------------------------
- #------------------------------------------------------------------------------
- class Window_VictorySpoils < Window_ItemList
- def item_height
- 24
- end
- def item_width
- 240
- end
- def page_row_max
- 2
- end
- def col_max
- return 2
- end
- def item_rect(index)
- cm = col_max > 0 ? col_max : 1
- rect = Rect.new
- rect.width = item_width
- rect.height = item_height
- rect.x = index % cm * (item_width + spacing)
- rect.y = index / cm * item_height
- rect
- end
- end
- #------------------------------------------------------------------------------
- # Thanks to : "https://www.facebook.com/sakuya.farhan"
- # Add On Tested by : Sawaragi (Me)
- #------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement