API for other mods
SirMortimer opened this issue ยท 0 comments
May I propose something along these lines:
KER.API.AddSection(string sectionName, List<string> variableNames, MyValueCallback);
public string MyValueCallback(Vessel vessel, string sectionName, string variableName) {
return "hello!";
}
That way users would be able to add values of other mods to the KER HUD, including all the bells and whistles that KER already provides. We'd use this for telemetry values like CO2 levels, as well as for science related values (sun-body-angle)
(PS: posted this in CYBUTEK#154 before. I love orphaned projects)