/* * [CompilerGenerated] * private static GenericMenu.MenuFunction2 <>f__mg$cache0; * * [CompilerGenerated] * private static GenericMenu.MenuFunction2 <>f__mg$cache1; * * [CompilerGenerated] * private static GenericMenu.MenuFunction2 <>f__mg$cache2; * * [CompilerGenerated] * private static GenericMenu.MenuFunction2 <>f__mg$cache3; */ public static void Show(Rect buttonRect, AudioMixerSnapshotController snapshot, AudioMixerSnapshotListView list) { GenericMenu genericMenu = new GenericMenu(); AudioMixerSnapshotListView.SnapshotMenu.data userData = new AudioMixerSnapshotListView.SnapshotMenu.data { snapshot = snapshot, list = list }; GenericMenu arg_49_0 = genericMenu; GUIContent arg_49_1 = EditorGUIUtility.TrTextContent("Set as start Snapshot", null, null); bool arg_49_2 = false; /* * if (AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache0 == null) * { * AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache0 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.SetAsStartupSnapshot); * } * arg_49_0.AddItem(arg_49_1, arg_49_2, AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache0, userData); */ genericMenu.AddSeparator(""); GenericMenu arg_85_0 = genericMenu; GUIContent arg_85_1 = EditorGUIUtility.TrTextContent("Rename", null, null); bool arg_85_2 = false; /* * if (AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache1 == null) * { * AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache1 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Rename); * } * arg_85_0.AddItem(arg_85_1, arg_85_2, AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache1, userData); */ GenericMenu arg_B6_0 = genericMenu; GUIContent arg_B6_1 = EditorGUIUtility.TrTextContent("Duplicate", null, null); bool arg_B6_2 = false; /* * if (AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache2 == null) * { * AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache2 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Duplicate); * } * arg_B6_0.AddItem(arg_B6_1, arg_B6_2, AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache2, userData); */ GenericMenu arg_E7_0 = genericMenu; GUIContent arg_E7_1 = EditorGUIUtility.TrTextContent("Delete", null, null); bool arg_E7_2 = false; /* * if (AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache3 == null) * { * AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache3 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Delete); * } * arg_E7_0.AddItem(arg_E7_1, arg_E7_2, AudioMixerSnapshotListView.SnapshotMenu.<>f__mg$cache3, userData); */ genericMenu.DropDown(buttonRect); }
public static void Show(Rect buttonRect, AudioMixerSnapshotController snapshot, AudioMixerSnapshotListView list) { GenericMenu genericMenu = new GenericMenu(); AudioMixerSnapshotListView.SnapshotMenu.data data = new AudioMixerSnapshotListView.SnapshotMenu.data() { snapshot = snapshot, list = list }; genericMenu.AddItem(new GUIContent("Set as start Snapshot"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.SetAsStartupSnapshot), (object)data); genericMenu.AddSeparator(string.Empty); genericMenu.AddItem(new GUIContent("Rename"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Rename), (object)data); genericMenu.AddItem(new GUIContent("Duplicate"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Duplicate), (object)data); genericMenu.AddItem(new GUIContent("Delete"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Delete), (object)data); genericMenu.DropDown(buttonRect); }
public static void Show(Rect buttonRect, AudioMixerSnapshotController snapshot, AudioMixerSnapshotListView list) { GenericMenu genericMenu = new GenericMenu(); AudioMixerSnapshotListView.SnapshotMenu.data userData = new AudioMixerSnapshotListView.SnapshotMenu.data { snapshot = snapshot, list = list }; genericMenu.AddItem(new GUIContent("Set as start Snapshot"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.SetAsStartupSnapshot), userData); genericMenu.AddSeparator(string.Empty); genericMenu.AddItem(new GUIContent("Rename"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Rename), userData); genericMenu.AddItem(new GUIContent("Duplicate"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Duplicate), userData); genericMenu.AddItem(new GUIContent("Delete"), false, new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Delete), userData); genericMenu.DropDown(buttonRect); }
public static void Show(Rect buttonRect, AudioMixerSnapshotController snapshot, AudioMixerSnapshotListView list) { GenericMenu genericMenu = new GenericMenu(); AudioMixerSnapshotListView.SnapshotMenu.data userData = new AudioMixerSnapshotListView.SnapshotMenu.data { snapshot = snapshot, list = list }; GenericMenu arg_47_0 = genericMenu; GUIContent arg_47_1 = new GUIContent("Set as start Snapshot"); bool arg_47_2 = false; if (AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache0 == null) { AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache0 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.SetAsStartupSnapshot); } arg_47_0.AddItem(arg_47_1, arg_47_2, AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache0, userData); genericMenu.AddSeparator(""); GenericMenu arg_81_0 = genericMenu; GUIContent arg_81_1 = new GUIContent("Rename"); bool arg_81_2 = false; if (AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache1 == null) { AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache1 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Rename); } arg_81_0.AddItem(arg_81_1, arg_81_2, AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache1, userData); GenericMenu arg_B0_0 = genericMenu; GUIContent arg_B0_1 = new GUIContent("Duplicate"); bool arg_B0_2 = false; if (AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache2 == null) { AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache2 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Duplicate); } arg_B0_0.AddItem(arg_B0_1, arg_B0_2, AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache2, userData); GenericMenu arg_DF_0 = genericMenu; GUIContent arg_DF_1 = new GUIContent("Delete"); bool arg_DF_2 = false; if (AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache3 == null) { AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache3 = new GenericMenu.MenuFunction2(AudioMixerSnapshotListView.SnapshotMenu.Delete); } arg_DF_0.AddItem(arg_DF_1, arg_DF_2, AudioMixerSnapshotListView.SnapshotMenu.< > f__mg$cache3, userData); genericMenu.DropDown(buttonRect); }
private static void Delete(object userData) { AudioMixerSnapshotListView.SnapshotMenu.data data = userData as AudioMixerSnapshotListView.SnapshotMenu.data; data.list.DeleteSnapshot(data.snapshot); }
private static void Duplicate(object userData) { AudioMixerSnapshotListView.SnapshotMenu.data data = userData as AudioMixerSnapshotListView.SnapshotMenu.data; data.list.DuplicateCurrentSnapshot(); }
private static void SetAsStartupSnapshot(object userData) { AudioMixerSnapshotListView.SnapshotMenu.data data = userData as AudioMixerSnapshotListView.SnapshotMenu.data; data.list.SetAsStartupSnapshot(data.snapshot); }