Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Resolved] Shrinking an Icon
#3
I'm sorry, I sort of understand but how would I use this?

resize("icon name", true)

How does it know what size to switch to?

NVM let me figure this out! :) I've been trying to teach myself.

Thank you!

Ok, so I've been here... trying to figure this out. This is the new method.

Code:
if item == nil
      return
    end
    self.contents.font.color = normal_color
    #self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 16, 16))
    bitmap = RPG::Cache.icon(item.icon_name)
    rect = Rect.new(0, 0, 16, 16)
    icon = Rect.new(0, 0, 16, 16)
    bitmap.stretch_blt(rect, bitmap,icon)
    self.contents.draw_text(x + 20, y, width-80, 16, item.name)

It just comes up blank now.
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,659 01-03-2015, 09:11 PM
Last Post: Djigit
   [Resolved] DerVVulfman Animated Battlers - Physical attacks result in looping Samven 2 5,809 07-07-2012, 10:56 AM
Last Post: Samven
   Icon next to ennemy name in battle ? mageone 6 8,185 10-09-2009, 04:57 PM
Last Post: mageone
   [Resolved] Equipment Scene Problem Yin 4 6,712 08-29-2009, 11:01 PM
Last Post: Yin



Users browsing this thread: