public void AssetLabelListCallback(PopupList.ListElement element) { this.m_ChangedLabel = element.text; element.selected = !element.selected; this.m_ChangeWasAdd = element.selected; element.partiallySelected = false; this.m_CurrentChanged = true; this.SaveLabels(); InspectorWindow.RepaintAllInspectors(); }
public PopupList(PopupList.InputData inputData, string initialSelectionLabel) { this.m_Data = inputData; this.m_Data.ResetScores(); this.SelectNoCompletion(); this.m_Gravity = PopupList.Gravity.Top; if (initialSelectionLabel == null) return; this.m_EnteredTextCompletion = initialSelectionLabel; this.UpdateCompletion(); }
public ProfilerInstrumentationPopup(Dictionary<string, int> functions, bool showAllCheckbox, bool showAutoInstrumemtationParams) { this.m_ShowAutoInstrumemtationParams = showAutoInstrumemtationParams; this.m_ShowAllCheckbox = showAllCheckbox; this.m_AutoInstrumentedAssemblyTypes = (InstrumentedAssemblyTypes) SessionState.GetInt("ProfilerAutoInstrumentedAssemblyTypes", 0); this.m_FunctionsListInputData = new ProfilerInstrumentationPopup.InputData(); this.m_FunctionsListInputData.m_CloseOnSelection = false; this.m_FunctionsListInputData.m_AllowCustom = true; this.m_FunctionsListInputData.m_MaxCount = 0; this.m_FunctionsListInputData.m_EnableAutoCompletion = false; this.m_FunctionsListInputData.m_SortAlphabetically = true; this.m_FunctionsListInputData.m_OnSelectCallback = new PopupList.OnSelectCallback(this.ProfilerInstrumentationPopupCallback); this.SetFunctions(functions); this.m_FunctionsList = new PopupList((PopupList.InputData) this.m_FunctionsListInputData); }
public void AssetLabelListCallback(PopupList.ListElement element) { if (!Event.current.control) { foreach (PopupList.ListElement element2 in this.m_AssetLabels.m_ListElements) { if (element2 != element) { element2.selected = false; } } } element.selected = !element.selected; if (<>f__am$cache33 == null) {
public void AssetLabelListCallback(PopupList.ListElement element) { if (!Event.current.control) { using (List<PopupList.ListElement>.Enumerator enumerator = this.m_AssetLabels.m_ListElements.GetEnumerator()) { while (enumerator.MoveNext()) { PopupList.ListElement current = enumerator.Current; if (current != element) current.selected = false; } } } element.selected = !element.selected; this.m_SearchFilter.assetLabels = this.m_AssetLabels.m_ListElements.Where<PopupList.ListElement>((Func<PopupList.ListElement, bool>) (item => item.selected)).Select<PopupList.ListElement, string>((Func<PopupList.ListElement, string>) (item => item.text)).ToArray<string>(); this.m_SearchFieldText = this.m_SearchFilter.FilterToSearchFieldString(); this.TopBarSearchSettingsChanged(); this.Repaint(); }
public void TypeListCallback(PopupList.ListElement element) { if (!Event.current.control) { using (List<PopupList.ListElement>.Enumerator enumerator = this.m_ObjectTypes.m_ListElements.GetEnumerator()) { while (enumerator.MoveNext()) { PopupList.ListElement current = enumerator.Current; if (current != element) current.selected = false; } } } element.selected = !element.selected; string[] array = this.m_ObjectTypes.m_ListElements.Where<PopupList.ListElement>((Func<PopupList.ListElement, bool>) (item => item.selected)).Select<PopupList.ListElement, string>((Func<PopupList.ListElement, string>) (item => item.text)).ToArray<string>(); for (int index = 0; index < array.Length; ++index) array[index] = array[index]; this.m_SearchFilter.classNames = array; this.m_SearchFieldText = this.m_SearchFilter.FilterToSearchFieldString(); this.TopBarSearchSettingsChanged(); this.Repaint(); }
public PopupList(PopupList.InputData inputData) : this(inputData, null) { }
public PopupList(PopupList.InputData inputData) : this(inputData, (string) null) { }
public void AssetLabelListCallback(PopupList.ListElement element) { if (!Event.current.control) { foreach (PopupList.ListElement current in this.m_AssetLabels.m_ListElements) { if (current != element) { current.selected = false; } } } element.selected = !element.selected; this.m_SearchFilter.assetLabels = ( from item in this.m_AssetLabels.m_ListElements where item.selected select item.text).ToArray<string>(); this.m_SearchFieldText = this.m_SearchFilter.FilterToSearchFieldString(); this.TopBarSearchSettingsChanged(); base.Repaint(); }
public void TypeListCallback(PopupList.ListElement element) { if (!Event.current.control) { foreach (PopupList.ListElement current in this.m_ObjectTypes.m_ListElements) { if (current != element) { current.selected = false; } } } element.selected = !element.selected; string[] array = ( from item in this.m_ObjectTypes.m_ListElements where item.selected select item.text).ToArray<string>(); for (int i = 0; i < array.Length; i++) { array[i] = array[i]; } this.m_SearchFilter.classNames = array; this.m_SearchFieldText = this.m_SearchFilter.FilterToSearchFieldString(); this.TopBarSearchSettingsChanged(); base.Repaint(); }
private void ProfilerInstrumentationPopupCallback(PopupList.ListElement element) { if (element == this.m_AllCheckbox) { element.selected = !element.selected; using (List<PopupList.ListElement>.Enumerator enumerator = this.m_FunctionsListInputData.m_ListElements.GetEnumerator()) { while (enumerator.MoveNext()) { PopupList.ListElement current = enumerator.Current; if (element.selected) ProfilerDriver.BeginInstrumentFunction(current.text); else ProfilerDriver.EndInstrumentFunction(current.text); current.selected = element.selected; } } } else { element.selected = !element.selected; if (element.selected) ProfilerDriver.BeginInstrumentFunction(element.text); else ProfilerDriver.EndInstrumentFunction(element.text); } this.UpdateAllCheckbox(); }