private static ADMSheet MakeSheet(ActorController controller, string label, string state, MenuUIBehaviour ui, bool special = false) { return(new ADMSheet(label, () => { MapUIContainer.SystemMenuUI.IsActiveControl = false; ui.IsActiveControl = true; if (state != null) { controller.ChangeState(state); } if (special) { current = ui; } })); }