RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Icons In Menu

0 Members and 1 Guest are viewing this topic.

*******
Rep:
Level 90
Returned from the dead.
Ever wanted icons in your menu?
Just either:
1) Make a new script, call it Window_Icons and paste this code into it
Or
2) Paste this code at the top of your menu script

Code: [Select]
class Window_Icons < Window_Base
  def initialize
    super(0, 0, 160, 196)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  def refresh
    self.contents.clear
    bitmap = RPG::Cache.icon("034-Item03")
    self.contents.blt(100, 4, bitmap, Rect.new(0, 0, 24, 24), 160)
    bitmap = RPG::Cache.icon("044-Skill01")
    self.contents.blt(100, 36, bitmap, Rect.new(0, 0, 24, 24), 160)
    bitmap = RPG::Cache.icon("013-Body01")
    self.contents.blt(100, 68, bitmap, Rect.new(0, 0, 24, 24), 160)
    bitmap = RPG::Cache.icon("Status")
    self.contents.blt(100, 100, bitmap, Rect.new(0, 0, 24, 24), 160)
    bitmap = RPG::Cache.icon("037-Item06")
    self.contents.blt(100, 132, bitmap, Rect.new(0, 0, 24, 24), 160)
    bitmap = RPG::Cache.icon("039-Item08")
    self.contents.blt(100, 164, bitmap, Rect.new(0, 0, 24, 24), 160)
  end
end

Before the line that says
Code: [Select]
@command_window = Window_Command.new
Paste this:
Code: [Select]
@icon_window = Window_Icons.new
@icon_window.x = !!!
@icon_window.y = !!!!
Change the !!! to the x co-ordinates of your command windowand change !!!! to the y co-ordinates of it

Then where it says all the crap like:
Code: [Select]
@command_window.dispose
Insert:
Code: [Select]
@icon_window.dispose
Then find:
Code: [Select]
@command_window.update
And add:
Code: [Select]
@icon_window.update

If you need any help on re-arranging the icons just ask me ;)

Status Icon is attatched to this post if anyone needs it...
(Quick paint job, I apologise for the quality)
« Last Edit: March 04, 2008, 10:00:28 PM by Rune »
Sincerely,
Your conscience.

***
Rep:
Level 87
Master of Stepmania
Neat. Think i'll use this.

Should i credit you, or as long as i don't say i maked it.....?
Does 2+2 equal a peanut?

*******
Rep:
Level 90
Returned from the dead.
Up to you... just don't say it was by you... :D
Sincerely,
Your conscience.

***
Rep:
Level 88
Any screenshots?



*******
Rep:
Level 90
Returned from the dead.
This was some time ago :D I'll see if I can whip one up ;)
Sincerely,
Your conscience.