SpritePath for upgrade-item/upgrade-planner?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

SpritePath for upgrade-item/upgrade-planner?

Post by moon69 »

I am trying to get the sprites for Quickbar shortcuts, but SpritePath doesn't appear to support all possible LuaItemPrototype types...
So I have trouble with these types:
  • blueprint-book
  • deconstruction-planner
  • item-with-entity-data
  • tool
  • upgrade-item
(I'm sure there are others).

How can I get the sprite to display in my GUI for all types that can be added to the Quickbar?

Cheers.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: SpritePath for upgrade-item/upgrade-planner?

Post by Rseding91 »

moon69 wrote:
Mon Jul 29, 2019 6:29 pm
... How can I get the sprite to display in my GUI for all types that can be added to the Quickbar? ...
You just use "item/*name*" and it works.
Capture.PNG
Capture.PNG (14.79 KiB) Viewed 876 times
Left to right are all of the item types you just listed. They all work correctly.
  • item/blueprint-book
  • item/deconstruction-planner
  • item/tank
  • item/space-science-pack
  • item/upgrade-planner
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding discussion”