private static void SetEdit(MvcConfig.View view) { editingName = view.Name; editingBaseClassName = view.GetBaseClass(); editingLifeType = view.LifeType; editingRescaleMode = view.ViewRescaleMode; editingInitial = view.IsInitial; }
private static void DrawClosedView(MVCEditor editor, MvcConfig config, MvcConfig.View view, int index) { GUILayout.BeginHorizontal("GroupBox"); GUILayout.BeginVertical(); GUILayout.BeginHorizontal(); GUILayout.Label(view.Name + " : " + view.GetBaseClass()); GUILayout.Label(view.LifeType.ToString() + " on dispose."); if (view.IsInitial) { GUILayout.Label("Initial view"); } GUILayout.EndHorizontal(); GUILayout.EndVertical(); if (GUILayout.Button("Edit")) { ConfigViewEditorFlags.SetOpen(index); SetEdit(view); } GUILayout.EndHorizontal(); }