• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Yes there is a flag (Building.Flags.Active).
Thanks, I had found that and also production rate.

After trial and error I found both needed to be set. So I figure out if the request is an On or Off and set them both. The only thing I am still not seeing is the smile faces,,,
//onoff = "Off";
rate = 0;
if (toggle == true)
{
//onoff = "On";
rate = 100;
}
if (bd.m_flags.IsFlagSet(Building.Flags.Active) != toggle)
{
//WriteLog("About to toggle: ");
bd.m_flags ^= Building.Flags.Active;
bd.m_productionRate = rate;
}
 
Thanks, I had found that and also production rate.

After trial and error I found both needed to be set. So I figure out if the request is an On or Off and set them both. The only thing I am still not seeing is the smile faces,,,
//onoff = "Off";
rate = 0;
if (toggle == true)
{
//onoff = "On";
rate = 100;
}
if (bd.m_flags.IsFlagSet(Building.Flags.Active) != toggle)
{
//WriteLog("About to toggle: ");
bd.m_flags ^= Building.Flags.Active;
bd.m_productionRate = rate;
}
The smile faces must be displayed manually. Take a look at the code of the Service Building Info Window to see how that works.