Flow Configuration


More control over pipes. Similar results as Flow Control, but with the GUI and hotkeys of Inserter Configuration instead of unique items per bend. Run pipes with different fluids next to each other!

Utilities
11 days ago
1.1 - 2.0
2.66K
Logistics Fluids

b Error Clicking on Toggle text

a month ago

When I click on the toggle text in the UI, I receive this error:

The mod Flow Configuration (2.0.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event flow-config::on_gui_click (ID 1)
Expected sprite button or sprite.
stack traceback:
[C]: in function 'index'
__flow-config
/control.lua:173: in function 'on_button_toggle'
flow-config/control.lua:283: in function <flow-config/control.lua:279>

a month ago

I'm not super familiar with Lua, but changing line 282 of control.lua fixes this:

if event.element.parent == gui_instance.toggle_content and event.element.type =="sprite-button" then

a month ago

Oh I had no idea you could get an event from clicking on a GUI Label, hah!
Fixed this by removing the label entirely cus it looks better imho (but ty for sharing your fix!)
Also updated the toggle button's design while I was looking at it, it'd been bothering me for a while anyway.

a month ago

Thanks for the fix. The button looks much better!

This thread has been locked.