以下引用灯笼菜刀王于2008-8-29 15:27:32的发言:
WINDOW COMMAND里
def draw_item(index, color)
self.contents.font.color = color
rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index])
end
这段
红色的部分改为self.contents.draw_text(rect, @commands[index],1)
不过,这样有副作用-。-,所有的菜单都居中对齐了~~
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |