예제 #1
0
    private void OnClickCostume(IUIObject obj)
    {
        if (this.m_SolInterfaceTool == null || this.m_SolInterfaceTool.m_kSelectCharKindInfo == null)
        {
            return;
        }
        NrCharKindInfo kSelectCharKindInfo = this.m_SolInterfaceTool.m_kSelectCharKindInfo;

        if (!NrTSingleton <NrCharCostumeTableManager> .Instance.IsCostumeKind(kSelectCharKindInfo.GetCharKind()))
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(kSelectCharKindInfo.GetCharKind(), null);
        costumeRoom_Dlg.Show();
    }
예제 #2
0
    private void OnClickCostume(IUIObject obj)
    {
        if (this.pkSolinfo == null)
        {
            return;
        }
        List <int> costumeKindList = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumeKindList();

        if (!costumeKindList.Contains(this.pkSolinfo.GetCharKind()))
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(this.pkSolinfo.GetCharKind(), this.pkSolinfo);
        costumeRoom_Dlg.Show();
    }
예제 #3
0
    private void OnSelectSolSlot(IUIObject obj)
    {
        if (obj == null || obj.Data == null)
        {
            return;
        }
        int num = (int)obj.Data;

        if (num == -1)
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(num, null);
        costumeRoom_Dlg.Show();
    }