Get item stack for a filter of the quickbar

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Amuxix
Inserter
Inserter
Posts: 28
Joined: Sat Nov 26, 2016 2:21 pm
Contact:

Get item stack for a filter of the quickbar

Post by Amuxix »

Would it be possible to add a way to get a item stack for a filter of the quick bar?

Right now exist get_quick_bar_slot which returns a item prototype, but that is too generic for my use.

I'm trying to make a mod that swaps the first half of the quick bar with the second half, the problem is when there are blueprint in the bar it will swap them for a generic blueprint and it also seems to break links to the blueprint library(I guess those don't have a prototype)

I believe this should be a simple addition to the API, changing get_quick_bar_slot to return an item stack would also work but I'm not sure that changing existing methods is OK.

Post Reply

Return to “Modding interface requests”