static void OnElementRemoved(FlatRedBall.Glue.SaveClasses.IElement obj) { if (obj != null) { glueViewSettings.SetElementCameraSave(obj, SpriteManager.Camera); glueViewSettings.Save(SettingsSaveFileName); GlueViewState.Self.CurrentElement = null; } }
internal static void HandleToolItemCollapsedOrExpanded() { // Can't save settings if no Glue file is open if (!ignoreCollapseChange && GlueViewState.Self.CurrentGlueProject != null) { var collapsedItems = CollapsibleFormHelper.Self.GetCollapsedItems(); glueViewSettings.CollapsedPlugins = collapsedItems; glueViewSettings.Save(SettingsSaveFileName); } }