I've created mods where the RC Explorers and RC Transports are automatically performing some tasks when they are idle (such as researching anomaly and collecting surface deposits). The scripting works great, but I'd like to add a button to their info panel that can toggle this automatic behavior on each individual rover.
I've downloaded some decoded LUA files containing the internal scripting as well as a building mods which adds a button to buildings (Workplace filter mod). Unfortunately, I wasn't able to add upgrades or new sections to a rover info panel:
The code executes without any problems, the rovers do their autonomous things, but their info panel remains unchanged, no new "Autonomous operation" section is showing.
So far I've checked 600+ mods on Steam and none of them seems to try to mod rovers and their associated info panels.
Is such UI modding even possible with the rovers/drones?
I've downloaded some decoded LUA files containing the internal scripting as well as a building mods which adds a button to buildings (Workplace filter mod). Unfortunately, I wasn't able to add upgrades or new sections to a rover info panel:
Code:
function OnMsg.ClassesBuilt()
PlaceObj("XTemplate", {
group = "Infopanel Sections",
id = "autoRover",
PlaceObj("XTemplateTemplate", {
'__context_of_kind', "RCTransport",
"__template", "InfopanelSection",
"Title", T{"Autonomous operation"},
"RolloverText", T{"Autonomous operation"},
"RolloverTitle", T{"Autonomous operation"},
"RolloverHint", T{"<left_click> Toggle filter"},
})
})
end
The code executes without any problems, the rovers do their autonomous things, but their info panel remains unchanged, no new "Autonomous operation" section is showing.
So far I've checked 600+ mods on Steam and none of them seems to try to mod rovers and their associated info panels.
Is such UI modding even possible with the rovers/drones?