Example #1
0
 private void SetCommonUI()
 {
     this.partGroupList                        = this.partGroupList.transform.GetChild(0).gameObject;
     this.csPartGroupParent                    = this.partGroupParent.GetComponent <GUISelectChatGroupPanel>();
     this.csPartGroupParent.selectParts        = this.partGroupList;
     this.csPartGroupParent.ListWindowViewRect = ConstValue.GetRectWindow3();
 }
Example #2
0
    private void SetCommonUI_Evolution()
    {
        GameObject gameObject = GUIManager.LoadCommonGUI("SelectListPanel/SelectListPanelEvolution", base.gameObject);

        this.csSelectPanelEvolution = gameObject.GetComponent <GUISelectPanelEvolution>();
        if (this.goEFC_RIGHT != null)
        {
            gameObject.transform.SetParent(this.goEFC_RIGHT.transform);
        }
        Vector3 localPosition  = this.goListParts.transform.localPosition;
        Vector3 localPosition2 = gameObject.transform.localPosition;

        localPosition2.x = localPosition.x;
        GUICollider component = gameObject.GetComponent <GUICollider>();

        component.SetOriginalPos(localPosition2);
        this.csSelectPanelEvolution.selectParts        = this.goListParts;
        this.csSelectPanelEvolution.ListWindowViewRect = ConstValue.GetRectWindow3();
    }
    public void Init()
    {
        GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result[] eventExchangeInfoList = ClassSingleton <ExchangeWebAPI> .Instance.EventExchangeInfoList;
        bool flag = eventExchangeInfoList != null && eventExchangeInfoList.Length > 0 && eventExchangeInfoList[0] != null;

        this.exchangeResultInfoList = ((!flag) ? null : new List <GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result>(eventExchangeInfoList));
        this.exchangeUpdateDict     = new Dictionary <string, bool>();
        if (flag)
        {
            this.CheckExchangeUpdate();
            this.csSelectPanelExchangeMenu.selectParts        = this.goListParts;
            this.csSelectPanelExchangeMenu.ListWindowViewRect = ConstValue.GetRectWindow3();
            this.csSelectPanelExchangeMenu.initLocation       = true;
            this.exchangeMenuItemList = this.csSelectPanelExchangeMenu.AllBuild(this.exchangeResultInfoList);
        }
        else
        {
            this.csSelectPanelExchangeMenu.gameObject.SetActive(false);
            this.goScrollBar.SetActive(false);
            this.goScrollBarBg.SetActive(false);
            this.goNoneExchangeWindow.SetActive(true);
        }
        this.goListParts.SetActive(false);
    }