Search found 2 matches

by Ugge
Sun Aug 18, 2019 12:02 pm
Forum: Not a bug
Topic: [0.17.60] LuaGuiElement of type 'slider' property 'value' can be set on add
Replies: 2
Views: 633

Re: [0.17.60] LuaGuiElement of type 'slider' property 'value' can be set on add

The docs i was referring to was:
How much this progress bar is filled. It is a value in range [0, 1].
Can only be used if this is progressbar
https://lua-api.factorio.com/latest/LuaGuiElement.html#LuaGuiElement.value

And:
The value of this slider element.

Can only be used if this is slider ...
by Ugge
Sun Aug 18, 2019 10:22 am
Forum: Not a bug
Topic: [0.17.60] LuaGuiElement of type 'slider' property 'value' can be set on add
Replies: 2
Views: 633

[0.17.60] LuaGuiElement of type 'slider' property 'value' can be set on add

When adding a gui element of type slider the property value must be set in order to have a starting value for the slider, slider_value doesnt work. But later value cannot be accessed at all. You have to use slider_value which actually has the value previously set using the property value . This is ...

Go to advanced search