[프리건즈] 로비에서 캐릭터뷰 소스
Search for
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindW
nd you'll see
Code:
pCharView->EnableAutoRotate( true);
Add this below that,
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindWidget( "EquipmentInformationLobby"); if ( pCharView) pCharView->EnableAutoRotate( true);
Then search for a second time
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindWidget("EquipmentInformationShop");
and below
Code:
if(pCharView!= 0) pCharView->OnInvalidate();
add
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindWidget("EquipmentInformationLobby");
if(pCharView!= 0) pCharView->OnInvalidate();
Search a third time
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindWidget("EquipmentInformationShop");
and below
Code:
if(pCharView!= 0) pCharView->OnRestore();
add this,
Code:
pCharView = (ZCharacterView*)m_IDLResource.FindWidget("EquipmentInformationLobby");
if(pCharView!= 0) pCharView->OnRestore();
***********************
****ZMyItemList.cpp****
***********************
Search
Code:
BEGIN_WIDGETLIST("EquipmentInformationShop", pResource, ZCharacterView*, pCharacterView);
a lil bit down you'll
Code:
END_WIDGETLIST();
add this below that,
Code:
BEGIN_WIDGETLIST("EquipmentInformationLobby", pResource, ZCharacterView*, pCharacterView);
ZMyInfo* pmi = ZGetMyInfo();
unsigned long int nEquipedItemID[MMCIP_END];
for (int i = 0; i < MMCIP_END; i++)
{
nEquipedItemID[i] = GetEquipedItemID(MMatchCharItemParts(i));
}
pCharacterView->InitCharParts(pmi->GetSex(), pmi->GetHair(), pmi->GetFace(), nEquipedItemID);
END_WIDGETLIST();
*****************
****Lobby.xml****
*****************
K, now you need to call the new frame, in this case I used coods of the original interface.
Search
Code:
<LABEL item="Lobby_PlayerName" parent="Lobby">
and add above that
Code:
<CHARACTERVIEW item="EquipmentInformationLobby" parent="Lobby"> <BOUNDS> <X>21</X> <Y>363</Y> <W>120</W> <H>165</H> </BOUNDS> <STRETCH/> <VISIBLEEQUIPMENT>true</VISIBLEEQUIPMENT> </CHARACTERVIEW>

로디 님의 최근 댓글
오래만이네 2021 02.10 공개팩으로 ㅋㅋㅋㅋㅋ 2017 03.24 됩니다 ㅎ 2016 06.09