#==============================================================================
# ■ Window_Item
#------------------------------------------------------------------------------
# 物品画面、战斗画面、显示浏览物品的窗口。
#==============================================================================
class Window_Item < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(26, 80, 640, 310)
@column_max = 2
refresh
self.index = 0
self.back_opacity = 0
self.opacity = 0
@back = Sprite.new(@view)
@back.x = 0
@back.y = 0
@back.bitmap = RPG::Cache.picture("背包背景.png")
end
#--------------------------------------------------------------------------
# ● 刷新帮助文本
#--------------------------------------------------------------------------
def update_help
@help_window.set_text(item)
#校正帮助窗口位置
@help_window.set_pos(self.x,self.y,self.width,self.oy,self.index,@column_max)
end
end
#==============================================================================
# ■ Window_Item
#------------------------------------------------------------------------------
# 物品画面、战斗画面、显示浏览物品的窗口。
#==============================================================================
class Window_Item < Window_Selectable
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(26, 80, 640, 310)
@column_max = 2
refresh
self.index = 0
self.back_opacity = 0
self.opacity = 0
@back = Sprite.new(@view)
@back.x = 0
@back.y = 0
@back.bitmap = RPG::Cache.picture("背包背景.png")
end
#--------------------------------------------------------------------------
# ● 刷新帮助文本
#--------------------------------------------------------------------------
def update_help
@help_window.set_text(item)
#校正帮助窗口位置
@help_window.set_pos(self.x,self.y,self.width,self.oy,self.index,@column_max)
end
end