|
You last visited: Today at 15:04
Advertisement
How do I make Admin text bold?
Discussion on How do I make Admin text bold? within the Flyff Private Server forum part of the Flyff category.
04/12/2018, 22:59
|
#1
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
How do I make Admin text bold?
Hello there, how can I make Admin & GM font bold?
My MoverRender.cpp file:
Code:
#if __VER >= 13 // __HONORABLE_TITLE
if( IsChaotic() )
dwColor = prj.m_PKSetting.dwChaoColor;
else if( IsPKPink() )
dwColor = prj.m_PKSetting.dwReadyColor;
else if( m_dwAuthorization >= AUTH_ADMINISTRATOR ) // GM / Admin colors
dwColor = COLOR_ADMINISTRATOR;
else if( m_dwAuthorization >= AUTH_GAMEMASTER )
dwColor = COLOR_GAMEMASTER;
else
dwColor = prj.m_PKSetting.dwGeneralColor;
CString strFameName = GetTitle();
if( strFameName.IsEmpty() == FALSE )
{
CString strName;
strName = "[";
strName += strFameName;
strName += "] ";
strName += m_szName;
strcpy( szName, (LPCTSTR)strName );
}
// GM / Admin tag
if(m_dwAuthorization >= AUTH_GAMEMASTER)
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
{
strName += " [Admin]";
}
else
{
strName += " [GM]";
}
strcpy( szName, (LPCTSTR)strName );
}
|
|
|
04/13/2018, 00:43
|
#2
|
elite*gold: 0
Join Date: Mar 2018
Posts: 71
Received Thanks: 5
|
Itheme.cpp
|
|
|
04/13/2018, 07:22
|
#3
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
How do I make Admin text bold?
Quote:
Originally Posted by Rhea03
Itheme.cpp
|
Thankss[emoji4] but, how??
I only want staff names bold, not general players...
|
|
|
04/13/2018, 16:45
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 230
|
You can try "#b" + m_szName + "#nb"
Or render it twice and make it bold effect by displacing one point on X axis for the staff.
pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, szName );
if(IsAuthHigher(AUTH_GAMEMASTER))
pFont->DrawText( (FLOAT)( point.x + 1 ), (FLOAT)( point.y ), dwColor, szName );
|
|
|
04/13/2018, 17:06
|
#5
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
Quote:
Originally Posted by alfredico
You can try "#b" + m_szName + "#nb"
Or render it twice and make it bold effect by displacing one point on X axis for the staff.
pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, szName );
if(IsAuthHigher(AUTH_GAMEMASTER))
pFont->DrawText( (FLOAT)( point.x + 1 ), (FLOAT)( point.y ), dwColor, szName );
|
Where do I put them? btw, Im using v15 source
Thanks mate!
|
|
|
04/16/2018, 20:48
|
#6
|
elite*gold: 0
Join Date: Mar 2018
Posts: 34
Received Thanks: 3
|
MoverRender.cpp / RenderName Function.
|
|
|
04/18/2018, 13:31
|
#7
|
elite*gold: 0
Join Date: Mar 2018
Posts: 71
Received Thanks: 5
|
its posible to bold admin text and not bolded text in players.
here is try this., all will be bold admin and players
if( ::GetLanguage() == LANG_ENG )
{
CD3DFont* pFont;
// ÆùÆ® ·Îµå »ý¼º
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim9"), pFont );
pFont = new CD3DFont( _T("Arial"), 8, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim8"), pFont );
pFont = new CD3DFont( _T("Arial"), 13, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim13"), pFont );
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = 0xffffffff;
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 217, 91, 51);
m_mapFont.SetAt( _T( "Arial Black9"), pFont );
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = 0xffffffff;
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 60, 60, 60 );
m_mapFont.SetAt( _T( "FontWorld"), pFont );
pFont = new CD3DFont( _T("Arial"), 15, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = D3DCOLOR_ARGB( 255, 255, 255, 255);
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 40, 100, 220 );
pFont->m_dwFlags = D3DFONT_FILTERED;
m_mapFont.SetAt( _T( "gulim20"), pFont );
}
|
|
|
04/18/2018, 13:52
|
#8
|
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
|
Quote:
Originally Posted by Rhea03
its posible to bold admin text and not bolded text in players.
here is try this., all will be bold admin and players
if( ::GetLanguage() == LANG_ENG )
{
CD3DFont* pFont;
// ÆùÆ[emoji768] ·Îµå »ý¼º
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim9"), pFont );
pFont = new CD3DFont( _T("Arial"), 8, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim8"), pFont );
pFont = new CD3DFont( _T("Arial"), 13, D3DFONT_BOLD );
//pFont->m_nOutLine = 3;
m_mapFont.SetAt( _T( "gulim13"), pFont );
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = 0xffffffff;
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 217, 91, 51);
m_mapFont.SetAt( _T( "Arial Black9"), pFont );
pFont = new CD3DFont( _T("Arial"), 9, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = 0xffffffff;
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 60, 60, 60 );
m_mapFont.SetAt( _T( "FontWorld"), pFont );
pFont = new CD3DFont( _T("Arial"), 15, D3DFONT_BOLD );
pFont->m_nOutLine = 2;
pFont->m_dwColor = D3DCOLOR_ARGB( 255, 255, 255, 255);
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255, 40, 100, 220 );
pFont->m_dwFlags = D3DFONT_FILTERED;
m_mapFont.SetAt( _T( "gulim20"), pFont );
}
|
I don’t want all to be bold, only admin name, so I think i have to add something like auth_admin in this script?
Quote:
Originally Posted by alfredico
You can try "#b" + m_szName + "#nb"
Or render it twice and make it bold effect by displacing one point on X axis for the staff.
pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, szName );
if(IsAuthHigher(AUTH_GAMEMASTER))
pFont->DrawText( (FLOAT)( point.x + 1 ), (FLOAT)( point.y ), dwColor, szName );
|
Fixed it, the second option was the right option.
Thanks @
|
|
|
Similar Threads
|
[Help]About Text Bold
03/30/2017 - Flyff Private Server - 2 Replies
http://image.prntscr.com/image/e60964302e154edb85a 716ad1616f90c.png
how to remove bold from static text sir ?:handsdown:
|
bold text
10/31/2009 - Perfect World - 0 Replies
Hi
anyone know how to do stall names or of the characters in bold?
thanks in advance
|
All times are GMT +1. The time now is 15:05.
|
|