see the comment
[pre lang="ruby" line="1"]
class Window_TitleCommand < Window_Command
# the instance variable of Window_TitleCommand
# it will last forever, unless the class Window_TitleCommand is destroyed
@img_the_story = {}
@img_the_story["oi"] = Cache.img_titlecommand("Option.png")
@img_the_story = Cache.img_titlecommand("Option.png")
# 函数体
def img_rect_test
# the instance variable of an instance of Window_TitleCommand
# it will exist as long as the instance exists
@img_the_story["hl"] = (Cache.img_titlecommand("Option_hl.png"))
contents.blt(x,y,@img_the_story["oi"],@img_the_story["oi"].rect)
end