public void SetGui()
    {
        if (NrTSingleton <FormsManager> .Instance.IsForm(G_ID.SELECTSERVER_DLG))
        {
            Form form = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SELECTSERVER_DLG);

            if (form != null)
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.SELECTSERVER_DLG);
            }
        }
        this.m_PatchLoadingData = NrTSingleton <PatchLoading_Data_Manager> .Instance.GetData(1);

        Texture texture = this.LoadTexture(this.m_PatchLoadingData.Menu_Parser);

        this.DT_Portrait01.SetTexture(texture);
        this.m_PatchLoadingData = NrTSingleton <PatchLoading_Data_Manager> .Instance.GetData(2);

        texture = this.LoadTexture(this.m_PatchLoadingData.Menu_Parser);
        this.DT_Portrait02.SetTexture(texture);
        this.m_PatchLoadingData = NrTSingleton <PatchLoading_Data_Manager> .Instance.GetData(3);

        texture = this.LoadTexture(this.m_PatchLoadingData.Menu_Parser);
        this.DT_Portrait03.SetTexture(texture);
        this.BT_PlayVoice.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Click_Voice));
        this.LB_CVName01.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("2021"));
        this.SetPortraitIndex(1);
        this.Toggle_Portrait01.SetToggleState(true);
    }
    public override void ParseRowData(TsDataReader.Row tsRow)
    {
        PatchLoading_Data patchLoading_Data = new PatchLoading_Data();

        patchLoading_Data.SetData(tsRow);
        NrTSingleton <PatchLoading_Data_Manager> .Instance.Add(patchLoading_Data);
    }
    private void On_Click_Battle(IUIObject a_oObject)
    {
        if (this.m_PatchLoadingData == null)
        {
            return;
        }
        this.m_PatchLoadingData = NrTSingleton <PatchLoading_Data_Manager> .Instance.GetData(4);

        this.m_bShowText = true;
    }
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         PatchLoading_Data patchLoading_Data = new PatchLoading_Data();
         patchLoading_Data.SetData(data);
         NrTSingleton <PatchLoading_Data_Manager> .Instance.Add(patchLoading_Data);
     }
     return(true);
 }
    private void SetPortraitIndex(int index)
    {
        if (index <= 0 || index > 3)
        {
            index = 1;
        }
        if (this.m_PortraitIndex == index)
        {
            return;
        }
        this.m_PatchLoadingData = NrTSingleton <PatchLoading_Data_Manager> .Instance.GetData(index);

        if (this.m_PatchLoadingData == null)
        {
            return;
        }
        string text = string.Empty;

        switch (index)
        {
        case 1:
            text = "Prefabs/Loding Char/" + this.m_PatchLoadingData.strPath;
            break;

        case 2:
            text = "Prefabs/Loding Char/" + this.m_PatchLoadingData.strPath;
            break;

        case 3:
            text = "Prefabs/Loding Char/" + this.m_PatchLoadingData.strPath;
            break;
        }
        if (!string.IsNullOrEmpty(text))
        {
            this.LoadChar(text);
        }
        this.m_bShowText     = true;
        this.m_PortraitIndex = index;
        this.m_VoiceIndex    = 1;
        string text2 = string.Empty;

        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText(this.m_PatchLoadingData.iText01.ToString());

        this.LB_CharName01.SetText(text2);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText(this.m_PatchLoadingData.iText02.ToString());

        this.LB_CVName02.SetText(text2);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText(this.m_PatchLoadingData.iText03.ToString());

        this.LB_Charinfo01.SetText(text2);
        Texture texture = this.LoadBGTexture(this.m_PatchLoadingData.strBG);

        this.Drawtexture_DTBG03.SetTexture(texture);
    }
 public void Add(PatchLoading_Data Data)
 {
     if (!this.m_PatchLoading_Datas.ContainsKey(Data.id))
     {
         this.m_PatchLoading_Datas.Add(Data.id, Data);
     }
     else
     {
         Debug.LogError("Duplicate Data id=" + Data.id);
     }
 }