class Scene_Title alias create_command_window_fro_alignment create_command_window def create_command_window create_command_window_fro_alignment class << @command_window def draw_item(index, enabled = true) rect = item_rect(index) rect.x += 4 rect.width -= 8 self.contents.clear_rect(rect) self.contents.font.color = normal_color self.contents.font.color.alpha = enabled ? 255 : 128 self.contents.draw_text(rect, @commands[index], 1) end end @command_window.refresh end end
class Scene_Title
alias create_command_window_fro_alignment create_command_window
def create_command_window
create_command_window_fro_alignment
class << @command_window
def draw_item(index, enabled = true)
rect = item_rect(index)
rect.x += 4
rect.width -= 8
self.contents.clear_rect(rect)
self.contents.font.color = normal_color
self.contents.font.color.alpha = enabled ? 255 : 128
self.contents.draw_text(rect, @commands[index], 1)
end
end
@command_window.refresh
end
end
插入默认脚本之下、Main之上
|