class Window_Grathe_unused < Window_Base
def initialize(x,y)
super(320, 244, 320, 236)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
@llega = 0
refresh(x,y)
end
def refresh(a,b)
self.contents.clear
if b == 0 #action
c = 83 #Note 1
d = 103 #Note 2
else #a redirect
c =105 #Note 3
d =125 #Note 4
end
if !$choosing_line
bitmap = RPG::Cache.picture('Highlighter')
self.contents.blt(-19,-164, bitmap, Rect.new(0, 0, 640, 640))
end
if b #drawing actions, items 83-103
draw_item_name($data_items[a], 64, 96)
self.contents.draw_text(16,96,64,32, $game_party.item_number(a).to_s)
if a-1>=c # Ensures it doesn't draw an item that isn't of the right type.
draw_item_name($data_items[a-1], 64, 48)
self.contents.draw_text(16,48,64,32, $game_party.item_number(a-1).to_s)
if a-2>=c
draw_item_name($data_items[a-2], 64, 16)
self.contents.draw_text(16,16,64,32, $game_party.item_number(a-2).to_s)
end
end
if a+1<=d
draw_item_name($data_items[a+1], 64, 144)
self.contents.draw_text(16,144,64,32, $game_party.item_number(a+1).to_s)
if a+2<=d
draw_item_name($data_items[a+2], 64, 176)
self.contents.draw_text(16,176,64,32, $game_party.item_number(a+2).to_s)
end
end
end
end
end