Hello,
For a mod I am developing, I needed to dynamically add/remove menus and menu options. Unfortunately a lot of methods through relevant code are defined `internal`. I was able to use `CampaignGameStarter` to add and remove menus. Same class is usable for adding menu options too. However I can't remove menu options because
1- All the methods are internal
2- `CampaignGameStarter.AddGameMenuOption` doesn't let us give a related object.
Why is the related object null here instead of an argument with default value?
Please either give us the ability to pass related objects to this method or change internal methods.
For a mod I am developing, I needed to dynamically add/remove menus and menu options. Unfortunately a lot of methods through relevant code are defined `internal`. I was able to use `CampaignGameStarter` to add and remove menus. Same class is usable for adding menu options too. However I can't remove menu options because
1- All the methods are internal
2- `CampaignGameStarter.AddGameMenuOption` doesn't let us give a related object.
Why is the related object null here instead of an argument with default value?
C#:
public void AddGameMenuOption(string menuId, string optionId, string optionText, GameMenuOption.OnConditionDelegate condition, GameMenuOption.OnConsequenceDelegate consequence, bool isLeave = false, int index = -1, bool isRepeatable = false)
{
this.GetPresumedGameMenu(menuId).AddOption(optionId, new TextObject(optionText, null), condition, consequence, index, isLeave, isRepeatable, null);
}
Please either give us the ability to pass related objects to this method or change internal methods.