- Joined
- Nov 4, 2012
- Messages
- 69
- Reaction score
- 0
- First Language
- English
- Primarily Uses
def item_rect(index)
rect = Rect.new
rect.width = item_width
rect.height = item_height
rect.x = index % col_max * (item_width + spacing)
rect.y = index / col_max * item_height
rect
end
I'm still learning and would like to understand why the "/" in the rect.y line throws the formatting off for the rest of the script in notepad ++.
rect = Rect.new
rect.width = item_width
rect.height = item_height
rect.x = index % col_max * (item_width + spacing)
rect.y = index / col_max * item_height
rect
end
I'm still learning and would like to understand why the "/" in the rect.y line throws the formatting off for the rest of the script in notepad ++.

