本文整理汇总了C++中CN3UIBase::Render方法的典型用法代码示例。如果您正苦于以下问题:C++ CN3UIBase::Render方法的具体用法?C++ CN3UIBase::Render怎么用?C++ CN3UIBase::Render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CN3UIBase
的用法示例。
在下文中一共展示了CN3UIBase::Render方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void CN3UIBase::Render()
{
if (!m_bVisible) return; // 보이지 않으면 자식들을 render하지 않는다.
for(UIListReverseItor itor = m_Children.rbegin(); m_Children.rend() != itor; ++itor)
{
CN3UIBase* pChild = (*itor);
pChild->Render();
//this_ui
CN3UIBase* pCUI = NULL;
pCUI = pChild->m_pChildUI;
while(pCUI)
{
pCUI->Render();
pCUI = pCUI->m_pChildUI;
}
}
}
示例2:
void CN3UIButton::Render()
{
if(!m_bVisible) return;
switch(m_eState)
{
case UI_STATE_BUTTON_NORMAL:
{
if (m_ImageRef[BS_NORMAL]) m_ImageRef[BS_NORMAL]->Render();
}
break;
case UI_STATE_BUTTON_DOWN:
case UI_STATE_BUTTON_DOWN_2CHECKDOWN:
case UI_STATE_BUTTON_DOWN_2CHECKUP:
{
if (m_ImageRef[BS_DOWN]) m_ImageRef[BS_DOWN]->Render();
}
break;
case UI_STATE_BUTTON_ON:
{
if (m_ImageRef[BS_ON]) m_ImageRef[BS_ON]->Render();
}
break;
case UI_STATE_BUTTON_DISABLE:
{
if (m_ImageRef[BS_DISABLE]) m_ImageRef[BS_DISABLE]->Render();
}
}
int i = 0;
for(UIListReverseItor itor = m_Children.rbegin(); m_Children.rend() != itor; ++itor)
{
CN3UIBase* pChild = (*itor);
for(i = 0; i < NUM_BTN_STATE; i++) // 버튼의 구성 요소가 아닌지 보고..
if(pChild == m_ImageRef[i]) break;
if(i >= NUM_BTN_STATE) pChild->Render(); // 버튼 차일드가 아니면 렌더링..
}
}
示例3: Render
void CUIItemExchange::Render()
{
if (!m_bVisible) return; // 보이지 않으면 자식들을 render하지 않는다.
POINT ptCur = CGameProcedure::s_pLocalInput->MouseGetPos();
m_pUITooltipDlg->DisplayTooltipsDisable();
bool bTooltipRender = false;
__IconItemSkill* spItem;
for(UIListReverseItor itor = m_Children.rbegin(); m_Children.rend() != itor; ++itor)
{
CN3UIBase* pChild = (*itor);
pChild->Render();
if ( (pChild->UIType() == UI_TYPE_ICON) && (pChild->GetStyle() & UISTYLE_ICON_HIGHLIGHT) )
{
bTooltipRender = true;
spItem = GetHighlightIconItem( (CN3UIIcon* )pChild );
}
}
if ( bTooltipRender )
m_pUITooltipDlg->DisplayTooltipsEnable(ptCur.x, ptCur.y, spItem );
}