Page 1 of 1

Possible UI Customisation

Posted: Sun May 06, 2018 11:45 pm
by Monsterbolt101
Is there any way currently to make a custom ui for a machine such as a assembling machine? For example i'm currently making a bee mod based off of Minecraft's Forestry Mod. Here is the ui of the apiary for context:
apiary_gui.png
apiary_gui.png (8.81 KiB) Viewed 1664 times
I hope if there is not a way currently then its a near future idea since we as modders are restricted when things are hard coded, and as a fellow programmer I do know that its a more efficient way when hard coding but factorio is in my opinion its modularization phase or nearing it in which the game needs to be more dynamic in its assets.
Thank you,
Monsterbolt101

Re: Possible UI Customisation

Posted: Mon May 07, 2018 12:34 am
by eradicator
Yes. It's possible. Though i don't think anybody has done it yet. All mods i know use GUIs as sort of "global" things and not machine specific. But there's nothing preventing you from doing that. You don't get to move around the (machine) GUI window though, but i think that might happen in 0.17. And looking at that idea...you'd probably want to have a visible player inventory below that, which you would have to reimplement. :x Might be worth a try to request a "player-inventory" gui element.

Btw, there's already at least one bee mod on the portal https://mods.factorio.com/mod/NPBees2

Re: Possible UI Customisation

Posted: Mon May 07, 2018 3:18 am
by Monsterbolt101
Thank you for providing this link to the other mod, and yes I have used the gui function problem is the code becomes repetitive, whereas the ui for machines seems more "condenced". Anyway the idea of a player inventory gui is very intriguing, thank you for that idea that would make a very nice workaround.
Monsterbolt101

Re: Possible UI Customisation

Posted: Mon May 07, 2018 11:03 am
by eradicator
Monsterbolt101 wrote: the code becomes repetitive, whereas the ui for machines seems more "condenced".
What? The code for base machine UI is not available to be looked at.
Monsterbolt101 wrote:Anyway the idea of a player inventory gui is very intriguing, thank you for that idea that would make a very nice workaround.
I think you understood something quite different than what i meant to say...but i'm glad it helped ;).