Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hey again ;p

If you get the chance, do you think you could look into a small compatibility fix for this Icon Hue plugin? https://forums.rpgmakerweb.com/index.php?threads/icon-hue.125025/

The plugin lets you adjust the hue of an icon, so you don't need to have duplicate icons for recolors. The hue actually shows up fine on the bottom window where you choose the ingredients to use, but doesn't show up in the window that shows what ingredients you have already picked.

Looks like that plugin works by aliasing the drawItem function of Window_Base, manually changing the hue of the contents of the window, and then drawing the icon.

That window has its own drawItem function, so the alias doesn't do anything for it specifically. I looked at it pretty quick and I think this should work, but I haven't tested it myself. Give it a try and if it causes an error or a crash or something, let me know and I might be able to fix it. 

The main difficulty is that my window doesn't use many of the same properties to draw the items list as a window_base would, so his function might not work correctly here.

Here's a link

Either save that as a js file and import it below your other plugins, or paste that text directly into the icon hue plugin. As long as both plugins exist, it should work. I think.

~Ramza

Thanks for the quick response!

Unfortunately the patch seems to crash when trying to open the crafting menu. For reference, the patch is placed in it's own .js file, and is below both your plugin and the Icon Hue plugin.

Here's the error I'm running into:

K, try this one instead.

click me

It was trying to read an element of an array that didn't yet exist, so I added a check to make sure the ingredient list array was actually initialized before continuing. That should do it... I think.

~Ramza

Works like a charm now, thank you very much! :)