Switch Button updated for 2.0

by m44v

This mod adds 2 buttons that can be toggled with a mouse-click: A switch button that works like a constant combinator and a push button that outputs single-tick circuit network signals.

Utilities
a month ago
2.0
864
Circuit network
Owner:
m44v
Source:
N/A
Homepage:
https://mods.factorio.com/mod/switch-button
License:
MIT
Created:
2 months ago
Latest Version:
0.2.2 (a month ago)
Factorio version:
2.0
Downloaded by:
864 users

This is a fork of Switch Button mod by ShinoHarvest/GalactusX31 updated for Factorio 2.0.

This mod adds 2 buttons that can be toggled with a mouse-click:

  • A switch button that works like a constant combinator.
  • A push button that outputs single-tick circuit network signals.

Note that by default buttons are activated by left-click and the keybind toggle entity is used to open their configuration panel (this keybind is unset by default). This behavior can be changed to work more like constant combinators via mod settings.

Push buttons are craftable from switch buttons so you don't need to carry a stack of each.

Mod Settings

  • Toggle on/off on click [default: enabled]

    If enabled buttons will change its on/off state when clicked on or with the open character screen key, while its configuration panel can be opened with the toggle entity key (by default it has no key set, you need to configure it). If disabled a mouse click will open its configuration panel like a constant combinator, and the toggle entity key will toggle its on/off state.

    In multiplayer games is recommended to leave this setting off since the latency hiding system causes the GUI to show briefly for non-hosting clients.

  • Show signal in alt-info mode [default: enabled]

    Display the configured signal overlay in alt-info mode, like a constant combinator does.

  • Control input "Toggle Entity" [default: unset]

    Allows to either open the button configuration panel or toggle it, depending on "Toggle on/off on click" option described above.

Credits