[Resolved] Shrinking an Icon
#4
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.
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?
Reply }


Messages In This Thread
[Resolved] Shrinking an Icon - by Yin - 01-11-2012, 03:07 AM
RE: Shrinking an Icon - by DerVVulfman - 01-11-2012, 04:57 AM
RE: Shrinking an Icon - by Yin - 01-11-2012, 05:12 AM
RE: Shrinking an Icon - by NightOwl - 01-13-2012, 12:00 AM
RE: Shrinking an Icon - by Yin - 01-13-2012, 06:02 PM
RE: Shrinking an Icon - by Victor Sant - 01-13-2012, 09:33 PM
RE: Shrinking an Icon - by Yin - 01-26-2012, 11:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Icon Display 1.0 scripts makes events impossible to go to events, which are passable Djigit 0 3,891 01-03-2015, 09:11 PM
Last Post: Djigit
   [Resolved] DerVVulfman Animated Battlers - Physical attacks result in looping Samven 2 6,258 07-07-2012, 10:56 AM
Last Post: Samven
   Icon next to ennemy name in battle ? mageone 6 9,036 10-09-2009, 04:57 PM
Last Post: mageone
   [Resolved] Equipment Scene Problem Yin 4 7,283 08-29-2009, 11:01 PM
Last Post: Yin



Users browsing this thread: 1 Guest(s)