public override IEnumerable<Gizmo> GetGizmos()
{
IList<Gizmo> buttonList = new List<Gizmo>();
int groupKeyBase = 700000100;
Command_Action soundActivationButton = new Command_Action();
if (soundIsActivated)
{
soundActivationButton.icon = sirenSoundEnabledIcon;
soundActivationButton.defaultDesc = "Deactivate siren sound.";
soundActivationButton.defaultLabel = "Siren sound activated.";
}
else
{
soundActivationButton.icon = sirenSoundDisabledIcon;
soundActivationButton.defaultDesc = "Activate siren sound.";
soundActivationButton.defaultLabel = "Siren sound deactivated.";
}
soundActivationButton.activateSound = SoundDef.Named("Click");
soundActivationButton.action = new Action(PerformSirenSoundAction);
soundActivationButton.groupKey = groupKeyBase + 1;
buttonList.Add(soundActivationButton);
IEnumerable<Gizmo> resultButtonList;
IEnumerable<Gizmo> basebuttonList = base.GetGizmos();
if (basebuttonList != null)
{
resultButtonList = buttonList.AsEnumerable<Gizmo>().Concat(basebuttonList);
}
else
{
resultButtonList = buttonList.AsEnumerable<Gizmo>();
}
return (resultButtonList);
}