Esempio n. 1
0
    private Transform m_tranEquipmentUIClose;          // 关闭按钮

    void Awake()
    {
        m_instance    = this;
        m_myTransform = transform;

        Initialize();

        m_spEquipmentUIMogoUIRefreshCtrl = m_myTransform.FindChild("EquipmentUIMogoUIRefreshCtrl").GetComponentsInChildren <UISprite>(true)[0];
        m_tranEquipmentUIClose           = m_myTransform.FindChild("EquipmentUIClose");

        m_tabUpLabelList.Clear();
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/StrenthenIcon/StrenthenIconTextUp").GetComponent <UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/InsetIcon/InsetIconTextUp").GetComponent <UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/ComposeIcon/ComposeIconTextUp").GetComponent <UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/DecomposeIcon/DecomposeIconTextUp").GetComponent <UILabel>());

        m_tabDownLabelList.Clear();
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/StrenthenIcon/StrenthenIconTextDown").GetComponent <UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/InsetIcon/InsetIconTextDown").GetComponent <UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/ComposeIcon/ComposeIconTextDown").GetComponent <UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/DecomposeIcon/DecomposeIconTextDown").GetComponent <UILabel>());

        SettingTabLabel();

        // ChineseData
        m_myTransform.FindChild("EquipmentUITitle").GetComponentsInChildren <UILabel>(true)[0].text
            = LanguageData.GetContent(46852);
        m_tabUpLabelList[0].text   = LanguageData.GetContent(48010);
        m_tabUpLabelList[1].text   = LanguageData.GetContent(48011);
        m_tabUpLabelList[2].text   = LanguageData.GetContent(48012);
        m_tabUpLabelList[3].text   = LanguageData.GetContent(48013);
        m_tabDownLabelList[0].text = LanguageData.GetContent(48010);
        m_tabDownLabelList[1].text = LanguageData.GetContent(48011);
        m_tabDownLabelList[2].text = LanguageData.GetContent(48012);
        m_tabDownLabelList[3].text = LanguageData.GetContent(48013);
    }
    private Transform m_tranEquipmentUIClose; // 关闭按钮

    void Awake()
    {        
        m_instance = this;
        m_myTransform = transform;

        Initialize();

        m_spEquipmentUIMogoUIRefreshCtrl = m_myTransform.FindChild("EquipmentUIMogoUIRefreshCtrl").GetComponentsInChildren<UISprite>(true)[0];
        m_tranEquipmentUIClose = m_myTransform.FindChild("EquipmentUIClose");

        m_tabUpLabelList.Clear();
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/StrenthenIcon/StrenthenIconTextUp").GetComponent<UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/InsetIcon/InsetIconTextUp").GetComponent<UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/ComposeIcon/ComposeIconTextUp").GetComponent<UILabel>());
        m_tabUpLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/DecomposeIcon/DecomposeIconTextUp").GetComponent<UILabel>());

        m_tabDownLabelList.Clear();
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/StrenthenIcon/StrenthenIconTextDown").GetComponent<UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/InsetIcon/InsetIconTextDown").GetComponent<UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/ComposeIcon/ComposeIconTextDown").GetComponent<UILabel>());
        m_tabDownLabelList.Add(m_myTransform.FindChild("EquipmentUIDialogList/EquipmentUIDialogListSheet/EquipmentUIIconList/DecomposeIcon/DecomposeIconTextDown").GetComponent<UILabel>());

        SettingTabLabel();

        // ChineseData
        m_myTransform.FindChild("EquipmentUITitle").GetComponentsInChildren<UILabel>(true)[0].text
            = LanguageData.GetContent(46852);
        m_tabUpLabelList[0].text = LanguageData.GetContent(48010);        
        m_tabUpLabelList[1].text = LanguageData.GetContent(48011);
        m_tabUpLabelList[2].text = LanguageData.GetContent(48012);
        m_tabUpLabelList[3].text = LanguageData.GetContent(48013);
        m_tabDownLabelList[0].text = LanguageData.GetContent(48010);
        m_tabDownLabelList[1].text = LanguageData.GetContent(48011);
        m_tabDownLabelList[2].text = LanguageData.GetContent(48012);
        m_tabDownLabelList[3].text = LanguageData.GetContent(48013);
    }