internal static void Show(Rect activatorRect, List <ItemData> buttonData, ExposablePopupMenu caller)
            {
                m_Data   = buttonData;
                m_Caller = caller;
                GenericMenu genericMenu1 = new GenericMenu();

                foreach (ItemData itemData1 in m_Data)
                {
                    if (itemData1.m_Enabled)
                    {
                        /* GenericMenu genericMenu2 = genericMenu1;
                         * GUIContent guiContent = itemData1.m_GUIContent;
                         * int num = itemData1.m_On ? 1 : 0;*/
                        /*  // ISSUE: reference to a compiler-generated field
                         * if (ExposablePopupMenu.PopUpMenu.\u003C\u003Ef__mg\u0024cache0 == null)
                         * {
                         *    // ISSUE: reference to a compiler-generated field
                         *    ExposablePopupMenu.PopUpMenu.\u003C\u003Ef__mg\u0024cache0 = new GenericMenu.MenuFunction2(ExposablePopupMenu.PopUpMenu.SelectionCallback);
                         * }
                         * // ISSUE: reference to a compiler-generated field
                         * GenericMenu.MenuFunction2 fMgCache0 = ExposablePopupMenu.PopUpMenu.\u003C\u003Ef__mg\u0024cache0;*/
                        //  ExposablePopupMenu.ItemData itemData2 = itemData1;
                        //   genericMenu2.AddItem(guiContent, num != 0, fMgCache0, (object)itemData2);
                    }
                    else
                    {
                        genericMenu1.AddDisabledItem(itemData1.m_GUIContent);
                    }
                }
                genericMenu1.DropDown(activatorRect);
            }
            private static void SelectionCallback(object userData)
            {
                ItemData itemData = (ItemData)userData;

                m_Caller.SelectionChanged(itemData);
                m_Caller = null;
                m_Data   = null;
            }
Exemplo n.º 3
0
 public BreadcrumbBar(ViewGroupManager owner) : base(owner)
 {
     m_SearchAreaMenu = new ExposablePopupMenu();
 }