Vehicle Interiors

by Avlis92

Enter persistent factory interiors inside locomotives, wagons, cars, tanks and Spidertrons. Includes linked chests, exterior camera and ownership tools.

Content
2 months ago
2.1
63
Transportation Logistics Trains Manufacturing Storage

g Icons don't hide with dynamic GUI

2 months ago
(updated 2 months ago)

Hello, love the mod.

The 'Chest' and 'Accumulator' icons don't auto-hide with dynamic GUI.
Not sure if this would be something you can fix or that mod's creator be contacted.

Edit: forgot to ask, any chance of recursive vehicle support? (i.e. vehicle inside a vehicle inside a vehicle)

Thanks!

2 months ago
(updated 2 months ago)

Hi ashlesss_,

I plan to change the positions of the Chest and Accumulator icons—ideally by making them draggable or having them automatically snap to the hotbar and resize accordingly. The buttons themselves can't go directly into the hotbar slots because Factorio doesn't support certain key combinations there.
Would you like to hide the icons?

You can't access a vehicle's interior if it has been placed on top of another vehicle.

Thanks for the feedback. Happy gaming!

2 months ago

Dynamic HUD only hides gui.top/gui.left; put the icons in mod_gui.get_frame_flow or get_button_flow, not gui.screen.

local mod_gui = require("mod-gui")

-- hides with Dynamic HUD "Mods UI: auto-hide left"
mod_gui.get_frame_flow(player).add({
  type = "sprite-button",
  name = "vehicle-interiors-chest",
  sprite = "item/iron-chest",
  style = mod_gui.button_style,
})

-- or top-left cluster: mod_gui.get_button_flow(player).add({ ... })
-- hides with "Mods UI: auto-hide top"

if you make them draggable on gui.screen (or snap near the hotbar with a free position), Dynamic HUD still won’t hide them unless you also sync visibility yourself (e.g. mirror player.gui.left.visible / player.gui.top.visible when Dynamic HUD is active). Easiest path for auto-hide: keep them under mod-gui left or top.

Happy to test a build. Thanks!

2 months ago

I am separating the mod so that the "wooden chest" and "accumulators" shortcuts are in a different mod from Vehicle Interiors. The shortcuts mod will be optional.

a month ago

Oh nice, thanks!

New response