Adding an equipment window (like modular armor) to a car?
Posted: Wed May 21, 2014 8:36 pm
Hey all,
I just started working on my first factorio mod. Hopefully it's going to be a modular car.
However, I wasn't able to quite figure out if it is even possible to set up an equipment window for the car. I guess I'd have to somehow listen to a right-click event and pop up the UI manually. Or is it even possible to pop up a UI like that?
If that is not possible, I guess I'll have to use the trunk for upgrades.
Oh, and I don't suppose it is possible to override parts of the base functionality for an entity? For instance I want to disable the burner completely to prevent it from showing up (making the car run on solar power), but removing the burner section results in an error.
Here's what I have so far:
https://www.dropbox.com/s/gzrxymhg4yr9v ... ebuggy.zip
I just started working on my first factorio mod. Hopefully it's going to be a modular car.
However, I wasn't able to quite figure out if it is even possible to set up an equipment window for the car. I guess I'd have to somehow listen to a right-click event and pop up the UI manually. Or is it even possible to pop up a UI like that?
If that is not possible, I guess I'll have to use the trunk for upgrades.
Oh, and I don't suppose it is possible to override parts of the base functionality for an entity? For instance I want to disable the burner completely to prevent it from showing up (making the car run on solar power), but removing the burner section results in an error.
Here's what I have so far:
https://www.dropbox.com/s/gzrxymhg4yr9v ... ebuggy.zip