• Pointshop 1 (Icon path not working)
    6 replies, posted
Greetings, The following question might be dumb and something super simple that I am neglecting. But I am trying to set a custom path to an icon in the "_category.lua" file. Nevertheless, it shows up as purple and won't work. I have tried: CATEGORY.Icon = 'materials/icons/accessory.png' But it just wont work for me. Therefore I assume it does not work placing a path there, and therefore won't recognize it? If that's the case, how do I make it so that I will be able to set a path and for it to accept it as a path? I would value any advice that I can ge. But again it might be a silly question.
I am pretty sure you gotta leave out "materials" from the string path
Hmm, I have tried both; and CATEGORY.Icon = 'icons/accessory.png' Does not work either.
this is how pointshop1 computes your icon 'icon16/' .. CATEGORY.Icon .. '.png' the icon must be in the icon16 folder you would only have to put the name of the png in after putting your icon inside icon16, you might just rename your folder to that CATEGORY.Icon = 'accessory'
I tried to do this, renamed the folder and removed the .png in the name. But still won't work, starting to get super annoying. Also, the "icon16" folder does not exist in the "material" folder from the start, correct? Because I also tried creating an "icon16" folder in the main "materials" folder, but no success. Are you 100% sure the above is, correct? I even tried to change all the "icon16/" in the "DPointShopMenu" to 'icons/' .. CATEGORY.Icon .. '.png' But wont work either. It's really strange.
Idk what to tell you, look at the source code maybe you will figure it out pointshop/DPointShopMenu.lua at 74fa43a4cf33ae26c752eeb8bb89eacd..
I am not able to figure it out, does anyone else have any idea?
Sorry, you need to Log In to post a reply to this thread.