• Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Wery Oliveira

Nivel Com Cores Diferentes + [Staff]

4 posts in this topic

bom como vi um alguns membros pedindo sobre isso decidi postar aqui algo da minha source 
abram o Visual Studio e Vão até UserInterface
Busquem por InstanceBaseEffect.cpp e busquem void CInstanceBase::DetachTextTail()
Não sei como é as linhas antes de editar então busquem pela função acima e adicionem

void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
static D3DXCOLOR s_kLevelColorGM = D3DXCOLOR(0.0f/255.0f, 255.0f/255.0f, 255.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor = D3DXCOLOR(0.0f/255.0f, 255.0f/255.0f, 0.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor25 = D3DXCOLOR(0.0f/255.0f, 255.0f/255.0f, 127.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor50 = D3DXCOLOR(0.0f/255.0f, 206.0f/255.0f, 209.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor75 = D3DXCOLOR(70.0f/255.0f, 130.0f/255.0f, 180.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor100 = D3DXCOLOR(255.0f/255.0f, 215.0f/255.0f, 0.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor125 = D3DXCOLOR(255.0f/255.0f, 0.0f/255.0f, 0.0f/255.0f, 1.0f);
static D3DXCOLOR s_kLevelColor150 = D3DXCOLOR(128.0f/255.0f, 0.0f/255.0f, 0.0f/255.0f, 1.0f);

char szText[256];
sprintf(szText, "Lv.%d", level);

if (IsGameMaster())
{
sprintf(szText, "[sTAFF]",level);
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColorGM);
}
else if (!IsGameMaster())
{
if (level >= 25 && level <50)
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor25);
}
else if (level >= 50 && level <75)
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor50);
}
else if (level >= 75 && level <100)
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor75);
}
else if (level >= 100 && level <125)
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor100);
}
else if (level >= 125 && level <150)
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor125);
}
else if (level >= 150 )
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor150);
}
else
{
CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
}
 
}


 
ficando igual o print após isso basta compactar (se não me engano é so isso) nos gms está aparecendo somente [sTAFF] e não mostra o nivel podendo ser alterado porém acho que fica demasiadamente grande ^^

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this