01-13-2012, 12:00 AM
I didn't know you edited your post. Last I saw was "gonna figure this out". I woulda come earlier had I known.
Well, you commented out the line that pasted the revised icon and forgot to redo it after the resize. You also performed the resize, but didn't establish it as a new bitmap. I did a little editing as you can see here.
Well, you commented out the line that pasted the revised icon and forgot to redo it after the resize. You also performed the resize, but didn't establish it as a new bitmap. I did a little editing as you can see here.
Code:
if item == nil
return
end
self.contents.font.color = normal_color
bitmap = RPG::Cache.icon(item.icon_name)
newbitmap = bitmap.clone
rect = Rect.new(0, 0, 32, 32)
rect2 = Rect.new(0, 0, 16, 16)
newbitmap = bitmap.stretch_blt(rect, bitmap, rect2)
self.contents.blt(x, y + 4, newbitmap, rect2)
self.contents.draw_text(x + 20, y, width-80, 16, item.name)
DerVVulfman's 'regular Joe' account for testing and permissions use.
Who watches the Watchmen?
Who watches the Watchmen?