RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Is there anyway to resize the icon? <resolved>

Started by anhhuy28, December 29, 2006, 02:11:43 AM

0 Members and 1 Guest are viewing this topic.

anhhuy28

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. :)
YOUR SIGNATURE WAS GINOURMOUS! - RMRK Sig Police

Christina

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

Me™

Chirstina is right,
rectangle = A Rect (x, y, width, height)
ALL HAIL ME™

anhhuy28

ok, im a little confused about where to put that.
YOUR SIGNATURE WAS GINOURMOUS! - RMRK Sig Police

Christina

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

anhhuy28

YOUR SIGNATURE WAS GINOURMOUS! - RMRK Sig Police