当前位置: 首页>>代码示例>>C++>>正文


C++ Quest::GetExtend方法代码示例

本文整理汇总了C++中Quest::GetExtend方法的典型用法代码示例。如果您正苦于以下问题:C++ Quest::GetExtend方法的具体用法?C++ Quest::GetExtend怎么用?C++ Quest::GetExtend使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Quest的用法示例。


在下文中一共展示了Quest::GetExtend方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: RefreshQuestListNew


//.........这里部分代码省略.........
			pCmd->setData(this, nQuestIndex);
			pQuestText->SetCommandUp(pCmd);
		}

		CUITree* pChildTree = (CUITree*)pBase->Clone();
		pChildTree->InitPos(0, 0, 260, 16);
		pChildTree->addChild(pCompleteQuest);

		pCompleteQuest->InitPos(15, 0, 220, 16);
		m_pTree[eTREE_COMPLETE]->addTree(pChildTree, false);
	}

	// 레이드
	m_pTree[eTREE_RAID] = (CUITree*)pBase->Clone();
	m_pTree[eTREE_RAID]->InitPos(0, 50, 260, 20);
	
	if (pText != NULL)
	{
		strTemp.PrintF(_S( 4429, "레이드 진행 메시지 (%d)" ), nRaidCount);
		pText->InitPos(20, 0, 260, 16);
		pText->SetText(strTemp);
	}

	m_pTree[eTREE_RAID]->addChild(pTemp->Clone());
	m_pTreeRoot->addTree(m_pTree[eTREE_RAID]);

	// 레이드 내용 표시
	for (i = 0; i < nRaidCount; i++)
	{
		CUITree* pRaidQuest = (CUITree*)pTreeQuest->Clone();

		if (pRaidQuest == NULL)
			continue;

		CUIImage* pImg = (CUIImage*)m_pDesign->CloneSelectQuest();

		if (pImg != NULL)
		{
			pImg->Hide(TRUE);
			pRaidQuest->addChild(pImg);
		}

		CUICheckButton* pCheck = (CUICheckButton*)pRaidQuest->findUI("quest_veiw");
		CUIText* pQuestText = (CUIText*)pRaidQuest->findUI("quest_name");
		int nQuestIndex = pQuest->GetListRaidIndex(i);

		pImg = (CUIImage*)pRaidQuest->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)
		{
			pCheck->Hide(TRUE);
		}

		if (pQuestText != NULL)
		{
			CTString strQuestTitle = pQuest->GetListRaidTitle(i);
			CQuestDynamicData* pQuestDD = CQuestSystem::Instance().GetDynamicDataByQuestIndex( nQuestIndex );

			if( pQuestDD )
				strTemp.PrintF("%s", strQuestTitle);

			pQuestText->SetText(strTemp);
			CmdQuestBookSelect* pCmd = new CmdQuestBookSelect;
			pCmd->setData(this, nQuestIndex);
			pQuestText->SetCommandUp(pCmd);
		}

		CUITree* pChildTree = (CUITree*)pBase->Clone();
		pChildTree->InitPos(0, 0, 260, 16);
		pChildTree->addChild(pRaidQuest);

		pRaidQuest->InitPos(15, 0, 220, 16);
		m_pTree[eTREE_RAID]->addTree(pChildTree, false);
	}
	
	for (i = 0; i < eTREE_MAX; i++)
	{
		if (m_pTree[i] != NULL)
		{
			m_pTree[i]->setUncollapse(pQuest->GetExtend((eTREE_TYPE)i));

			CUICheckButton* pCheck = m_pTree[i]->getCheck();

			if (pCheck != NULL)
			{
				CmdQuestBookExtend* pCmd = new CmdQuestBookExtend;
				pCmd->setData(m_pTree[i], (eTREE_TYPE)i);
				pCheck->SetCommand(pCmd);
			}
		}
	}
	
	m_pTreeRoot->updateTree();
}
开发者ID:RocketersAlex,项目名称:LCSource,代码行数:101,代码来源:UIQuestBookNew.cpp


注:本文中的Quest::GetExtend方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。