self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
self.contents.font.color = normal_color
self.contents.draw_text(x + 28, y, 212, 32, item.name, 0)
self.contents.draw_text(x + 240, y, 16, 32, ":", 1)
self.contents.draw_text(x + 256, y, 24, 32, number.to_s, 2)
end
end
复制代码
x = 4
y = index * 32
注意这两行,y的那32就是间距
其他窗口同理,如果你有找不到的再提问吧-v-
至于update_cursor_rect,建议你去参考一下Window_PartyCommand里的那个def update_cursor_rect
其实它的主体处理就在Window_Selectable里
当然你目前只要看懂并改它的坐标就可以了
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
return
end
self.cursor_rect.set(index * 112, 0, 96, 24) # 注意这一行,其实只要改前两个数,就能改动间距了……后两个是宽和高
end