// Token: 0x06002145 RID: 8517 RVA: 0x003F55F0 File Offset: 0x003F37F0
    private UI_AlliWarSchedule.AWS_NodeData InitNode(UI_AlliWarSchedule.AWS_NodeData[] container, int index, Transform nodeTrans)
    {
        UI_AlliWarSchedule.AWS_NodeData aws_NodeData = new UI_AlliWarSchedule.AWS_NodeData();
        aws_NodeData.AlliTag      = nodeTrans.GetChild(index).GetChild(2).GetComponent <UIText>();
        aws_NodeData.AlliTag.font = GUIManager.Instance.GetTTFFont();
        aws_NodeData.StrNone      = nodeTrans.GetChild(index).GetChild(3).GetComponent <UIText>();
        aws_NodeData.StrNone.font = GUIManager.Instance.GetTTFFont();
        aws_NodeData.StrNone.text = DataManager.Instance.mStringTable.GetStringByID(17505u);
        aws_NodeData.IconBackObj  = nodeTrans.GetChild(index).GetChild(1).gameObject;
        aws_NodeData.ElbemTrans   = (aws_NodeData.IconBackObj.transform.GetChild(0) as RectTransform);
        aws_NodeData.ImgUnknown   = nodeTrans.GetChild(index).GetChild(0).GetComponent <Image>();
        RectTransform rectTransform = aws_NodeData.ImgUnknown.transform as RectTransform;

        if (rectTransform != null)
        {
            rectTransform.sizeDelta = aws_NodeData.ElbemTrans.sizeDelta;
        }
        aws_NodeData.Mask       = nodeTrans.GetChild(index).GetChild(4).GetComponent <Image>();
        aws_NodeData.NodeBack   = nodeTrans.GetChild(index).GetComponent <Image>();
        aws_NodeData.Mask.color = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, 128);
        container[index]        = aws_NodeData;
        return(aws_NodeData);
    }
    // Token: 0x06002143 RID: 8515 RVA: 0x003F4FDC File Offset: 0x003F31DC
    public override void OnOpen(int arg1, int arg2)
    {
        this.door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door);
        Font ttffont = GUIManager.Instance.GetTTFFont();

        this.AGS_Form                 = base.transform;
        this.AGS_SpriteArray          = this.AGS_Form.GetChild(0).GetComponent <UISpritesArray>();
        this.AGS_SpriteArray2         = this.AGS_Form.GetChild(1).GetComponent <UISpritesArray>();
        this.WinnerEff.IO             = 0;
        this.WinnerEff.EffectNode1    = this.AGS_Form.GetChild(2).GetChild(0);
        this.WinnerEff.RotateingLight = this.WinnerEff.EffectNode1.GetChild(2);
        this.WinnerEff.RotateingLight.GetComponent <Image>().color = new Color32(byte.MaxValue, 216, 98, byte.MaxValue);
        this.WinnerEff.EffectNode2            = this.AGS_Form.GetChild(2).GetChild(9);
        this.WinnerEff.lightBox               = this.WinnerEff.EffectNode2.GetComponent <Image>();
        this.WinnerEff.lightBoxStep           = -1;
        this.WinnerEff.EffectNode1.localScale = Vector3.zero;
        this.WinnerEff.EffectNode2.localScale = Vector3.zero;
        for (int i = 0; i < 16; i++)
        {
            UI_AlliWarSchedule.AWS_NodeData aws_NodeData = this.InitNode(this.Top16Nodes, i, this.AGS_Form.GetChild(2).GetChild(1));
        }
        for (int j = 0; j < 8; j++)
        {
            UI_AlliWarSchedule.AWS_NodeData aws_NodeData2 = this.InitNode(this.Top8Nodes, j, this.AGS_Form.GetChild(2).GetChild(2));
            this.InitLine(this.Top16Lines, j, this.Top16Nodes, (byte)j, null, this.AGS_Form.GetChild(2).GetChild(5), UI_AlliWarSchedule.EAWSLineStyle.Vertical);
        }
        for (int k = 0; k < 4; k++)
        {
            UI_AlliWarSchedule.AWS_NodeData aws_NodeData3 = this.InitNode(this.Top4Nodes, k, this.AGS_Form.GetChild(2).GetChild(3));
            this.InitLine(this.Top8Lines, k, this.Top8Nodes, (byte)(8 + k), this.Top16Lines, this.AGS_Form.GetChild(2).GetChild(6), UI_AlliWarSchedule.EAWSLineStyle.Vertical);
        }
        for (int l = 0; l < 2; l++)
        {
            UI_AlliWarSchedule.AWS_NodeData aws_NodeData4 = this.InitNode(this.Top2Nodes, l, this.AGS_Form.GetChild(2).GetChild(4));
            this.InitLine(this.Top4Lines, l, this.Top4Nodes, (byte)(12 + l), this.Top8Lines, this.AGS_Form.GetChild(2).GetChild(7), UI_AlliWarSchedule.EAWSLineStyle.Horizontal);
        }
        this.InitLine(this.Top2Lines, 0, this.Top2Nodes, 14, this.Top4Lines, this.AGS_Form.GetChild(2).GetChild(8), UI_AlliWarSchedule.EAWSLineStyle.Vertical);
        this.Top2Lines[0].Score.rectTransform.localPosition = new Vector3(this.Top2Lines[0].Score.rectTransform.localPosition.x, this.Top2Lines[0].Score.rectTransform.localPosition.y - 2f, this.Top2Lines[0].Score.rectTransform.localPosition.z);
        this.Notes      = this.AGS_Form.GetChild(2).GetChild(10).GetComponent <UIText>();
        this.Notes.font = ttffont;
        this.Title      = this.AGS_Form.GetChild(3).GetChild(0).GetComponent <UIText>();
        this.Title.font = ttffont;
        this.Title.text = DataManager.Instance.mStringTable.GetStringByID(17501u);
        Image component = this.AGS_Form.GetChild(4).GetComponent <Image>();

        component.sprite   = this.door.LoadSprite("UI_main_close_base");
        component.material = this.door.LoadMaterial();
        component.enabled  = !GUIManager.Instance.bOpenOnIPhoneX;
        component          = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <Image>();
        component.sprite   = this.door.LoadSprite("UI_main_close");
        component.material = this.door.LoadMaterial();
        UIButton component2 = this.AGS_Form.GetChild(4).GetChild(0).GetComponent <UIButton>();

        component2.m_Handler    = this;
        component2.m_BtnID1     = 0;
        component2.transition   = Selectable.Transition.None;
        component2.m_EffectType = e_EffectType.e_Scale;
        for (int m = 0; m < 15; m++)
        {
            UIButton component3 = this.AGS_Form.GetChild(2).GetChild(11).GetChild(m).GetComponent <UIButton>();
            component3.m_BtnID1  = 1 + m;
            component3.m_Handler = this;
        }
        this.RefreshData();
        GUIManager.Instance.UpdateUI(EGUIWindow.Door, 1, 2);
        ActivityManager instance = ActivityManager.Instance;

        if (this.door != null && (instance.AW_State == EAllianceWarState.EAWS_None || DataManager.Instance.RoleAlliance.Id == 0u))
        {
            this.bExit = true;
            return;
        }
        byte b = (instance.AW_Round != 0) ? (instance.AW_Round - 1) : 5;

        if (b != (byte)UI_AlliWarSchedule.Step)
        {
            UI_AlliWarSchedule.RequestScheduleData();
        }
    }
    // Token: 0x06002146 RID: 8518 RVA: 0x003F5750 File Offset: 0x003F3950
    private void SetupNode(ref UI_AlliWarSchedule.AWS_NodeData _node, UI_AlliWarSchedule.EAWSNodeState state, bool highlight = true, int dataindex = 0)
    {
        switch (state)
        {
        case UI_AlliWarSchedule.EAWSNodeState.Normal:
        {
            if (DataManager.Instance.RoleAlliance.Id == UI_AlliWarSchedule.AllianceData[dataindex].ID)
            {
                _node.NodeBack.sprite = this.AGS_SpriteArray.GetSprite(2);
            }
            else
            {
                _node.NodeBack.sprite = this.AGS_SpriteArray.GetSprite(1);
            }
            _node.IconBackObj.SetActive(true);
            if (_node.ElbemTrans.childCount == 0)
            {
                GUIManager.Instance.InitBadgeTotem(_node.ElbemTrans, UI_AlliWarSchedule.AllianceData[dataindex].Emblem);
            }
            else
            {
                GUIManager.Instance.SetBadgeTotemImg(_node.ElbemTrans, UI_AlliWarSchedule.AllianceData[dataindex].Emblem);
            }
            RectTransform rectTransform = _node.ElbemTrans.GetChild(0) as RectTransform;
            if (rectTransform != null)
            {
                rectTransform.sizeDelta = _node.ElbemTrans.sizeDelta;
            }
            _node.AlliTag.enabled    = true;
            _node.AlliTag.text       = UI_AlliWarSchedule.AllianceData[dataindex].Tag;
            _node.StrNone.enabled    = false;
            _node.ImgUnknown.enabled = false;
            break;
        }

        case UI_AlliWarSchedule.EAWSNodeState.UnKnown:
            _node.NodeBack.sprite = this.AGS_SpriteArray.GetSprite(0);
            _node.IconBackObj.SetActive(false);
            _node.AlliTag.enabled    = false;
            _node.StrNone.enabled    = false;
            _node.ImgUnknown.enabled = true;
            break;

        case UI_AlliWarSchedule.EAWSNodeState.NoAlliance:
            _node.NodeBack.sprite = this.AGS_SpriteArray.GetSprite(1);
            _node.IconBackObj.SetActive(false);
            _node.AlliTag.enabled    = false;
            _node.StrNone.enabled    = true;
            _node.ImgUnknown.enabled = false;
            break;

        default:
            _node.NodeBack.sprite = this.AGS_SpriteArray.GetSprite(0);
            _node.IconBackObj.SetActive(false);
            _node.AlliTag.enabled    = false;
            _node.StrNone.enabled    = false;
            _node.ImgUnknown.enabled = false;
            break;
        }
        _node.Mask.enabled = !highlight;
        _node.State        = state;
    }