本文整理汇总了C++中Quest::GetListCompleteCount方法的典型用法代码示例。如果您正苦于以下问题:C++ Quest::GetListCompleteCount方法的具体用法?C++ Quest::GetListCompleteCount怎么用?C++ Quest::GetListCompleteCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quest
的用法示例。
在下文中一共展示了Quest::GetListCompleteCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RefreshQuestListNew
void CUIQuestBook::RefreshQuestListNew()
{
CTString strTemp;
m_pTreeRoot->deleteChildAll();
m_pTreeRoot->clearChildList();
m_mapQuestSelect.clear();
CUIBase* pBase = m_pTreeDesign->findUI("tree_root");
CUIBase* pTemp = m_pTreeDesign->findUI("tree_1");
CUIBase* pTreeQuest = m_pTreeDesign->findUI("tree_quest");
CUIText* pText = (CUIText*)pTemp->findUI("str_treename");
int i;
if (pBase == NULL || pTemp == NULL || pTreeQuest == NULL || pText == NULL)
return;
Quest* pQuest = GAMEDATAMGR()->GetQuest();
if (pQuest == NULL)
return;
int nProceedCount = pQuest->GetListProceedCount();
int nCompleteCount = pQuest->GetListCompleteCount();
int nRaidCount = pQuest->GetListRaidCount();
if (m_pstrQuestCnt != NULL)
{
strTemp.PrintF("%d / %d", nProceedCount + nCompleteCount, DEF_MAX_QUEST);
m_pstrQuestCnt->SetText(strTemp);
}
// 진행중
m_pTree[eTREE_PROCEED] = (CUITree*)pBase->Clone();
m_pTree[eTREE_PROCEED]->InitPos(0, 0, 260, 20);
if (pText != NULL)
{
strTemp.PrintF(_S( 1707, "진행중인 퀘스트 (%d)" ), nProceedCount);
pText->InitPos(20, 0, 260, 16);
pText->SetText(strTemp);
}
m_pTree[eTREE_PROCEED]->addChild(pTemp->Clone());
m_pTreeRoot->addTree(m_pTree[eTREE_PROCEED]);
// 진행중 퀘스트 내용 표시
for (i = 0; i < nProceedCount; i++)
{
CUITree* pProceedQuest = (CUITree*)pTreeQuest->Clone();
if (pProceedQuest == NULL)
continue;
CUIImage* pImg = (CUIImage*)m_pDesign->CloneSelectQuest();
if (pImg != NULL)
{
pImg->Hide(TRUE);
pProceedQuest->addChild(pImg);
}
CUICheckButton* pCheck = (CUICheckButton*)pProceedQuest->findUI("quest_veiw");
CUIText* pQuestText = (CUIText*)pProceedQuest->findUI("quest_name");
int nQuestIndex = pQuest->GetListProceedIndex(i);
pImg = (CUIImage*)pProceedQuest->findUI("img_selectMenu");
if (pImg != NULL)
{
pImg->SetPos(DEF_SELECT_QUEST_POSX, DEF_SELECT_QUEST_POSY);
m_mapQuestSelect.insert(std::make_pair(nQuestIndex, pImg));
}
if (pCheck != NULL)
{
CmdQuestBookView* pCmd = new CmdQuestBookView;
pCmd->setData(pCheck, nQuestIndex);
pCheck->SetCommand(pCmd);
if (pQuest->IsSelectedQuest(nQuestIndex) == true)
pCheck->SetCheck(TRUE);
}
if (pQuestText != NULL)
{
CTString strQuestTitle = pQuest->GetListProceedTitle(i);
CQuestDynamicData* pQuestDD = CQuestSystem::Instance().GetDynamicDataByQuestIndex( nQuestIndex );
if( pQuestDD )
{
strTemp.PrintF("[%d] %s", pQuestDD->GetNeedMinLevel(), strQuestTitle);
strTemp = MakeTitleString(strTemp, 30);
}
else
{
strTemp = MakeTitleString(strQuestTitle, 30);
}
pQuestText->SetText(strTemp);
CmdQuestBookSelect* pCmd = new CmdQuestBookSelect;
//.........这里部分代码省略.........