Page 1 of 1

SpritePath for upgrade-item/upgrade-planner?

Posted: Mon Jul 29, 2019 6:29 pm
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.

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

Posted: Wed Jul 31, 2019 2:05 pm
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 967 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