26 lines
No EOL
1.1 KiB
Ruby
26 lines
No EOL
1.1 KiB
Ruby
#==============================================================================
|
|
# ■ Window_ShopStatus
|
|
#------------------------------------------------------------------------------
|
|
# ショップ画面で、アイテムの所持数やアクターの装備を表示するウィンドウです。
|
|
#==============================================================================
|
|
|
|
class Window_ShopStatus < Window_Base
|
|
#--------------------------------------------------------------------------
|
|
# ● オブジェクト初期化
|
|
#--------------------------------------------------------------------------
|
|
def initialize(x, y, width, height)
|
|
super(x, y, width, height)
|
|
@item = nil
|
|
@page_index = 0
|
|
refresh
|
|
end
|
|
#--------------------------------------------------------------------------
|
|
# ● リフレッシュ
|
|
#--------------------------------------------------------------------------
|
|
def refresh
|
|
contents.clear
|
|
draw_category(4, 0)
|
|
draw_possession(200, 0)
|
|
draw_equip_info(4, line_height * 2) if @item.is_a?(RPG::EquipItem)
|
|
end
|
|
end |