MainScreenDraw.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:15k
- // MainScreenDraw.cpp
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "MainScreen.h"
- #include "FacePlate.h"
- #include "D3DRMScreen.h"
- #include "MenuCreateNew.h"
- #include "NpcInfo.h"
- #include "CmdFunction.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- extern BOOL g_Redraw2dFace[2];
- extern rmfullglobals myglobs;
- extern D3DAppInfo* d3dapp;
- extern CList<CNpcSkillInfo *, CNpcSkillInfo* >npcskilllist;
- extern CList<CSkillInfo*,CSkillInfo*>skilllist;
- extern CList<CEquipInfo*,CEquipInfo*>equiplist;
- extern CList<CEquipInfo*,CEquipInfo*>equiprentlist;
- extern CStringList g_equiprentlist;
- extern CList<CPlayerInfo*,CPlayerInfo*>playerlist;
- extern CList <CChatChannel*,CChatChannel*> chatchannellist;
- // Nuke +1
- extern CList <CNpcAskInfo *, CNpcAskInfo* >npcAsklist;
- extern CPlayerInfo * lpPlayerInfo;
- extern CString g_szInputMsg;
- extern CStringList g_strlistChannel;
- extern CStringList g_strlistMesssage;
- extern CStringList g_strlistSelfMsg;
- extern CStringList g_strlistOnline;
- extern HFONT g_MessagehFont;
- extern HFONT g_MessagehFont1;
- //////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////
- void CMainScreen::FIRSTFIELD::ResetCount()
- {
- switch(nShowState)
- {
- case SHOWEQUIP: mDragBar.ResetCount(equiplist.GetCount()); break;
- case SHOWRENTEQUIP: mDragBar.ResetCount(g_equiprentlist.GetCount()); break;
- case SHOWSKILL: mDragBar.ResetCount(skilllist.GetCount()); break;
- case SHOWCHANNEL: mDragBar.ResetCount(g_strlistChannel.GetCount()); break;
- case SHOWCHANNELUSER: mDragBar.ResetCount(chatchannellist.GetCount()); break;
- case SHOWNPCSKILL: mDragBar.ResetCount(npcskilllist.GetCount()); break;
- case SHOWALLONLINEUSERS: mDragBar.ResetCount(g_strlistOnline.GetCount()); break;
- case SHOWFRIEND:
- case SHOWNPCEQUIP:
- // Nuke +1
- case SHOWNPCASK: mDragBar.ResetCount(npcAsklist.GetCount()); break;
- default: mDragBar.ResetCount(0);
- }
- }
- //陪ボ材