Index is the index of the icon in the specified file.įor example, suppose I have the following icon sheet called “CustomIcons”Īfter looking up the icon index, I want to assign it to my Potion item Name is the exact filename of the icon sheet, without extensions Now that you have set up your icon sheets, you can begin using them. You must also include the default icon sheet to use, Icon_Sheets hash and the width and height of the icons for those sheets. In the configuration below, add the filenames (without extensions) to the Place any custom icon sheets in your Graphics/System folder. Place this script below Materials and above Main. The icon index utility I use in the example below can be found here Installation You can even specify different icon sizes for different sheets. Separate your icons into separate files, then load them by name and index! This allows you to organize your icons so that you don’t need to load one large iconset just to draw one icon. This script allows you to designate which icon sheet you want to draw your icon from.
0 Comments
Leave a Reply. |