Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> How to use Custom icons in ACE?, Not sure.
Lato
post Oct 4 2012, 12:14 PM
Post #1


Infantry for life!
Group Icon

Group: Staff
Posts: 1,709
Type: Artist
RM Skill: Skilled
Rev Points: 155




Ok the title pretty much says it all I guess, anyways im new to ace just like everyone else, I have done a lot of custom icons on a sheet but when I add the sheet to the resource section it doesnt show up in edit mode for me to switch to my custom ones, do I have to delete the default and rename mine the same name?


__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
ZarroTsu
post Oct 11 2012, 04:55 PM
Post #2


Human
Group Icon

Group: Revolutionary
Posts: 189
Type: Developer
RM Skill: Advanced




QUOTE (Lato @ Oct 4 2012, 04:14 PM) *
Ok the title pretty much says it all I guess, anyways im new to ace just like everyone else, I have done a lot of custom icons on a sheet but when I add the sheet to the resource section it doesnt show up in edit mode for me to switch to my custom ones, do I have to delete the default and rename mine the same name?

The name, at the very least, needs to be the same. However, if you're unwilling to change the file name, open up the script editor, and open up the "Window_Base" script.

Look for the function "draw_icon"...
CODE
  def draw_icon(icon_index, x, y, enabled = true)
    bitmap = Cache.system("Iconset")
    rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
    contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
  end

...and change the second line's quoted "Iconset" (the original file name), to whatever your new file name is.

(If you really wanted you could swap around between multiple file names in this fashion, using an IF statement and a variable or switch from the game cache to control when. Although I can't think of an efficient reason to do this.)
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 07:48 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker