def set_command(command)
self.contents.clear
if self == Scene_Title.new
case command
when 0
draw_item(0, normal_color)
when 1
draw_item(1, normal_color)
when 2
draw_item(2, normal_color)
end
end
if self == Scene_Menu.new
case command
when 0
draw_item(0, normal_color)
when 1
draw_item(1, normal_color)
when 2
draw_item(2, normal_color)
when 3
draw_item(3, normal_color)
when 4
draw_item(4, normal_color)
when 5
draw_item(5, normal_color)
end
end
end
我把命令窗口改成
def set_command(command)
self.contents.clear
case command
when 0
draw_item(0, normal_color)
when 1
draw_item(1, normal_color)
when 2
draw_item(2, normal_color)
end
end
end
结果标题窗口能实现字体浮现功能,而菜单窗口字体不能浮现了,我把这个程序改成上面的样子,为什么标题窗口和菜单窗口都不能浮现字体了,改怎么改才能实现两个窗口都浮现字体?