Part 1: How can I give a tab focus and make its contents show up on start. I have three tabs and nothing shows up in the content till I click on them. Tried adding .focus() to various parts of the chain but so far hasn't worked. Thanks!
Part 2:
I've managed to be able to set the item filters of a storage unit in my control script - same as if you had middle-scroll-clicked them. So woot there.
Now I'm trying to set a filter on an item. I only want this item to be placeable in specific entity storages - hoping to keep players from hauling my peeps in cattle wagons etc. Looking at the item prototype, I tried this and I got no errors - it let me add the 'item-filter' line to the item definition, but it didn't prevent the item from being placed in any storage. I did see an ultra old post about this not being supported but the prototype makes it look like it should be possible?
Please help and thanks!
Code: Select all
{
type = "item",
name = "k2cp-passenger",
icon = "__CityPeeps__/graphics/icons/citypeep.png",
icon_size = 48,
icon_mipmaps = 4,
category = "k2cp-city-products",
subgroup = "k2cp-citizens",
order = "a",
stackable = false,
item_filter = {"k2cp-passenger-wagon","k2cp-depot"},
stack_size = 1
},