Search found 3 matches

by EthanKing
Wed Mar 13, 2019 7:59 am
Forum: Modding help
Topic: What GUI element dose the production statistics panel use?
Replies: 2
Views: 1049

Re: What GUI element dose the production statistics panel use?

Thanks Bilka a lot. And I have another question: Can I access the pale version of pictures of items in control.lua or there is a style to set about it?
by EthanKing
Tue Mar 12, 2019 6:06 am
Forum: Modding help
Topic: What GUI element dose the production statistics panel use?
Replies: 2
Views: 1049

What GUI element dose the production statistics panel use?

I'm creating my first mod for factorio and I want a button that is exact the same as the 'button' production statistics panel uses.
It looks like color.PNG pale.PNG
The exact functions I need are:
1. Displaying pictures
2. Clickable
3. Able to change the picture when clicked

I understand that I ...
by EthanKing
Tue Feb 19, 2019 3:36 pm
Forum: Modding help
Topic: How to access properties of a prototype in control.lua
Replies: 3
Views: 2049

How to access properties of a prototype in control.lua

I'm making my first mod recently, and I need to access properties of a prototype which is not listed in the properties of a LuaEntityPrototype.

For example, I need too know the energy_consumption of a boiler (see https://wiki.factorio.com/Prototype/Boiler ), but data.raw["boiler"]["boiler ...

Go to advanced search