Request:
Add an optional string parameter "label" for adding string inside GUIElement sprite-button.
So we can make something like the item count buttons in vanilla Factorio if we enter a number in "label":
(I keep thinking I have made this request, but I couldn't find the post after some advanced searches.)
I have tried making the item count buttons in my mod before, but it didn't end well.
First, I have add nested label style inside the sprite button style, but either I have set the wrong values, or this simply isn't support, the label wasn't shown properly.
Second, the label blocked mouse interaction of the button. It's the main reason why I stopped doing it.
Allow adding label inside sprite-button
Re: Allow adding label inside sprite-button
You might have seen this related one: quantity on sprite button [Modding help]Mooncat wrote:I keep thinking I have made this request, but I couldn't find the post after some advanced searches.
Re: Allow adding label inside sprite-button
Oh, yes! That's exactly what I want. Thanks!daniel34 wrote:You might have seen this related one: quantity on sprite button [Modding help]Mooncat wrote:I keep thinking I have made this request, but I couldn't find the post after some advanced searches.
Tho it is still not solved yet.