private void DrawLabelList(bool partiallySelected, float xMax) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type LabelGUI.\u003CDrawLabelList\u003Ec__AnonStorey93 listCAnonStorey93 = new LabelGUI.\u003CDrawLabelList\u003Ec__AnonStorey93(); // ISSUE: reference to a compiler-generated field listCAnonStorey93.partiallySelected = partiallySelected; // ISSUE: reference to a compiler-generated field GUIStyle style = !listCAnonStorey93.partiallySelected ? EditorStyles.assetLabel : EditorStyles.assetLabelPartial; Event current = Event.current; // ISSUE: reference to a compiler-generated method foreach (GUIContent content in this.m_AssetLabels.m_ListElements.Where <PopupList.ListElement>(new Func <PopupList.ListElement, bool>(listCAnonStorey93.\u003C\u003Em__166)).OrderBy <PopupList.ListElement, string>((Func <PopupList.ListElement, string>)(i => i.text.ToLower())).Select <PopupList.ListElement, GUIContent>((Func <PopupList.ListElement, GUIContent>)(i => i.m_Content)).Take <GUIContent>(LabelGUI.s_MaxShownLabels)) { Rect rect = GUILayoutUtility.GetRect(content, style); if (Event.current.type == EventType.Repaint && (double)rect.xMax >= (double)xMax) { break; } GUI.Label(rect, content, style); if ((double)rect.xMax <= (double)xMax && current.type == EventType.MouseDown && (rect.Contains(current.mousePosition) && current.button == 0) && GUI.enabled) { current.Use(); rect.x = xMax; PopupWindow.Show(rect, (PopupWindowContent) new PopupList(this.m_AssetLabels, content.text)); } } }
private void DrawLabelList(bool partiallySelected, float xMax) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type LabelGUI.\u003CDrawLabelList\u003Ec__AnonStorey93 listCAnonStorey93 = new LabelGUI.\u003CDrawLabelList\u003Ec__AnonStorey93(); // ISSUE: reference to a compiler-generated field listCAnonStorey93.partiallySelected = partiallySelected; // ISSUE: reference to a compiler-generated field GUIStyle style = !listCAnonStorey93.partiallySelected ? EditorStyles.assetLabel : EditorStyles.assetLabelPartial; Event current = Event.current; // ISSUE: reference to a compiler-generated method foreach (GUIContent content in this.m_AssetLabels.m_ListElements.Where<PopupList.ListElement>(new Func<PopupList.ListElement, bool>(listCAnonStorey93.\u003C\u003Em__166)).OrderBy<PopupList.ListElement, string>((Func<PopupList.ListElement, string>) (i => i.text.ToLower())).Select<PopupList.ListElement, GUIContent>((Func<PopupList.ListElement, GUIContent>) (i => i.m_Content)).Take<GUIContent>(LabelGUI.s_MaxShownLabels)) { Rect rect = GUILayoutUtility.GetRect(content, style); if (Event.current.type == EventType.Repaint && (double) rect.xMax >= (double) xMax) break; GUI.Label(rect, content, style); if ((double) rect.xMax <= (double) xMax && current.type == EventType.MouseDown && (rect.Contains(current.mousePosition) && current.button == 0) && GUI.enabled) { current.Use(); rect.x = xMax; PopupWindow.Show(rect, (PopupWindowContent) new PopupList(this.m_AssetLabels, content.text)); } } }