Exemplo n.º 1
0
    void RefreshJoyGUI()
    {
        m_JoyUINav = Engine.JoyUI.BobJoyUINavigator.FindOrAddUINav(gameObject);

        GameObject btnOK    = JoyControllerLogic.FindChild(transform, "BtnOk").gameObject;
        GameObject btnother = JoyControllerLogic.FindChild(transform, "BtnServerOther").gameObject;

        m_uiItems.Add(btnOK);
        m_uiItems.Add(btnother);

        for (int i = 0; i < m_uiItems.Count; i++)
        {
            m_JoyUINav.AddItem(m_uiItems[i].AddComponent <BobJoyUIItem>());
        }
    }
Exemplo n.º 2
0
    void RefreshJoyGUI()
    {
        GetComponentInChildren <UITopGrid>().enabled = false;
        for (int i = 0; i < m_pageList.Count; ++i)
        {
            m_uiItems.Add(m_pageList[i]);
        }

        for (int i = 0; i < m_itemList.Count; ++i)
        {
            m_uiItems.Add(JoyControllerLogic.FindChild(m_itemList[i].transform, "Normal").parent.gameObject);
        }
        m_btnNext = JoyControllerLogic.FindChild(transform, "BtnNext").gameObject;
        m_btnBack = JoyControllerLogic.FindChild(transform, "BtnBack").gameObject;
        m_uiItems.Add(m_btnNext);
        m_uiItems.Add(m_btnBack);


        m_JoyUINav = Engine.JoyUI.BobJoyUINavigator.FindOrAddUINav(gameObject);
        for (int i = 0; i < m_uiItems.Count; i++)
        {
            m_JoyUINav.AddItem(m_uiItems[i].AddComponent <BobJoyUIItem>());
        }
    }