Code: Select all
flow_buttons.add{type = "sprite-button", name = "button_apply", sprite = "virtual-signal/signal-check"}
I tried:
Code: Select all
flow_buttons.button_apply.resize_to_sprite = false
note: added * before 1195 so it doesn't show a broken image icon.1850.734 Error MainLoop.cpp:*1195: Exception at tick 3628951: Error while running command "testgui": Expected sprite.
https://lua-api.factorio.com/latest/LuaGuiElement.html
Why I'm trying to resize the button:resize_to_sprite :: boolean [Read-Write]
Whether should the image widget resize its size according to the sprite in it (true by default)