The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: anhhuy28 on December 29, 2006, 02:11:43 AM

Title: Is there anyway to resize the icon? <resolved>
Post by: anhhuy28 on December 29, 2006, 02:11:43 AM
is there anyway you can change the size of the icon to make it fit like the other pre-made icons?

any help from any people is well appreciated. :)
Title: Re: Is there anyway to resize the icon?
Post by: Christina on December 29, 2006, 03:02:10 AM
Quote@item_max = @data.size
    if @item_max > 0
      self.contents = Bitmap.new(width - 32, row_max * 32)
      self.contents.font.name = $defaultfonttype  # "Items" window font
      self.contents.font.size = $defaultfontsize
      for i in 0...@item_max
        draw_item(i)
      end
    end
  end
i believe here right after bitmap.new its in the window.item
but i could be wrong, im not really a good scripter

edit-
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
or that one with the 32 32 thing, i dunno give it a shot
Title: Re: Is there anyway to resize the icon?
Post by: Me™ on December 29, 2006, 10:57:10 AM
Chirstina is right,
rectangle = A Rect (x, y, width, height)
Title: Re: Is there anyway to resize the icon?
Post by: anhhuy28 on December 31, 2006, 10:05:46 PM
ok, im a little confused about where to put that.
Title: Re: Is there anyway to resize the icon?
Post by: Christina on January 01, 2007, 12:31:49 AM
like i said, search it in the window.item section of the script editor. ctrl + f and change 32 x 32 to your different item size
Title: Re: Is there anyway to resize the icon?
Post by: anhhuy28 on January 01, 2007, 09:02:40 PM
ok, thank you for your help! :)