hi,
i'm actualy integrating teamspeak into the game (client and server side), actually all thing are weel ao.atm init and connect to the virtual teamspeak server added in field server, I wish now create an interface to manage that new feature and add this on in the community window.
I have open the INFComunity.cpp to try to add a new button and add some line like this:
andCode:for( int i=0; i < COMMUNITY_MAX; i++ ) { m_pCommMenuBtn[i] = new CINFImageBtn; } m_pCommMenuBtn[COMMUNITY_PARTY]->InitDeviceObjects("comFbtn0"); m_pCommMenuBtn[COMMUNITY_FRIEND]->InitDeviceObjects("comFrbtn0"); m_pCommMenuBtn[COMMUNITY_GUILD]->InitDeviceObjects("comBbtn0"); m_pCommMenuBtn[COMMUNITY_CHATROOM]->InitDeviceObjects("comCbtn0"); m_pCommMenuBtn[COMMUNITY_MAIL]->InitDeviceObjects("comLbtn0"); m_pCommMenuBtn[COMMUNITY_REJECT]->InitDeviceObjects("comRbtn0"); m_pCommMenuBtn[COMMUNITY_VOCAL]->InitDeviceObjects("comRbtn0");
and in INFComunity.h:Code:POINT pBkSize; pBkSize.x = m_pCommunityBKImage->GetMaxPos().x - m_pCommunityBKImage->GetMinPos().x; pBkSize.y = m_pCommunityBKImage->GetMaxPos().y - m_pCommunityBKImage->GetMinPos().y; float fPosX = m_ptCommunityBk.x + COMMUNITY_BTN_POSX; float fPosY = m_ptCommunityBk.y + COMMUNITY_BTN_POSY; POINT pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comFbtn00"); m_pCommMenuBtn[COMMUNITY_PARTY]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comFrbtn00"); m_pCommMenuBtn[COMMUNITY_FRIEND]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comBbtn00"); m_pCommMenuBtn[COMMUNITY_GUILD]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comCbtn00"); m_pCommMenuBtn[COMMUNITY_CHATROOM]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comLbtn00"); m_pCommMenuBtn[COMMUNITY_MAIL]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comRbtn"); m_pCommMenuBtn[COMMUNITY_REJECT]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y); pPos = m_pCommunityControl->GetFindControlTargetofMinPos("comRbtn"); m_pCommMenuBtn[COMMUNITY_VOCAL]->SetBtnPosition(fPosX + pPos.x, fPosY + pPos.y);
my problem is that little thing are not enough to add my own button (not displaying), and I don't know how to made this working fi someone have already work on the game ui and know something about the procedure to add a button I will be happy to get this information.Code:#define COMMUNITY_PARTY 0 #define COMMUNITY_FRIEND 1 #define COMMUNITY_GUILD 2 #define COMMUNITY_CHATROOM 3 #define COMMUNITY_MAIL 4 #define COMMUNITY_REJECT 5 #define COMMUNITY_VOCAL 6 #define COMMUNITY_MAX 7



Reply With Quote![[Solved] [Dev] interface change](http://ragezone.com/hyper728.png)





