Page 1 of 1

GUI for object

Posted: Tue Oct 18, 2016 3:05 pm
by Parallel
Hello everyone!
Itrying to make lamp, that can work from fuel.

Code: Select all

energy_source =
			{
			type = "burner",
			effectivity = 1,
			emissions = 0.02,
			fuel_inventory_size = 1,
			smoke =
				{
					{
					  name = "smoke",
					  deviation = {0.1, 0.1},
					  frequency = 5,
					  position = {0.0, -0.8},
					  starting_vertical_speed = 0.08,
					  starting_frame_deviation = 60
					}
				}
			},
But in game, when I try to add fuel to it i see this
Image

How can I add burner's interface to it, like biler's interface?
Image

Re: GUI for object

Posted: Tue Oct 18, 2016 3:52 pm
by aubergine18

Re: GUI for object

Posted: Tue Oct 18, 2016 4:49 pm
by Parallel
Thx. Interesting solution, but there are 3 entities of diferent type and unlimited fuel. I need to get access to object's GUI, so i coud create my own interface. so in future i coud make objects of not standard classes

Re: GUI for object

Posted: Wed Oct 19, 2016 9:36 pm
by Rseding91
Parallel wrote:
Thx. Interesting solution, but there are 3 entities of diferent type and unlimited fuel. I need to get access to object's GUI, so i coud create my own interface. so in future i coud make objects of not standard classes
You can't. We don't support defining custom GUIs for entities.

Re: GUI for object

Posted: Wed Oct 19, 2016 10:41 pm
by Supercheese
Rseding91 wrote:You can't. We don't support defining custom GUIs for entities.
To follow up, while this is true, there are still workarounds available, as evidenced in the Torch mod et al.