public void OnClickVip(IUIObject obj)
    {
        VipInfoDlg vipInfoDlg = (VipInfoDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.VIPINFO_DLG);

        if (vipInfoDlg != null)
        {
            vipInfoDlg.SetLevel(this.m_i8VipLevel, false);
        }
    }
Exemple #2
0
    private void Click_VIPInfo(IUIObject _obj)
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo != null)
        {
            long charSubData = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_VIP_EXP);
            byte b           = NrTSingleton <NrTableVipManager> .Instance.GetLevelExp((long)((int)charSubData));

            if (b < 0)
            {
                b = 0;
            }
            VipInfoDlg vipInfoDlg = (VipInfoDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.VIPINFO_DLG);

            if (vipInfoDlg != null)
            {
                vipInfoDlg.SetLevel(b, false);
            }
        }
    }