How can I replace the locomotive GUI for a custom locomotive entity with my own one? I don't know the name for
Code: Select all
game.player.gui.top.foo.destroy()
Code: Select all
game.player.gui.top.foo.destroy()
I'm afraid that's not possible (at the moment). You'll have to create a custom gui (probably at player.gui.top or left), take a look at TheFatController, it's the same principle for what you want to do. (precisely: where/when FatController shows the AddTrain button at the top you want an OpenGUI button)MeinAccount wrote:Hi,
How can I replace the locomotive GUI for a custom locomotive entity with my own one?
Again, not possibleSecond question: How do I create a list with all stations in my custom GUI? Creating an element of type listbox doesn't work.