imengyu Posted March 12 Share Posted March 12 Hello Developers! I am currently making a mod with new building and reaching the final step. I want add a building option on the menu left, just like Automated Notifier: My building need a configurable string param ‘ProgramValue’, just like Name property in Automated Notifier. I tried to search for possible APIs in the game code, but found nothing. I tried the following code, but the config UI did not appear on the side. [Serialize] private string programValue; public string ProgramValue { get { return programValue; } set { programValue = value; } } [MyCmpAdd] private CopyBuildingSettings copyBuildingSettings; private void OnCopySettings(object data) { FCPU component = ((GameObject)data).GetComponent<FCPU>(); if (component != null) programValue = component.programValue; } Config of My building: How can i add config UI for my building? Thank you for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now