How do I make Admin text bold?

04/12/2018 22:59 Minotaurr#1
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 Rhea03#2
Itheme.cpp
04/13/2018 07:22 Minotaurr#3
Quote:
Originally Posted by Rhea03 View Post
Itheme.cpp


Thankss[emoji4] but, how??

I only want staff names bold, not general players...
04/13/2018 16:45 alfredico#4
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 Minotaurr#5
Quote:
Originally Posted by alfredico View Post
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 Barameu#6
MoverRender.cpp / RenderName Function.
04/18/2018 13:31 Rhea03#7
its posible to bold admin text and not bolded text in players.

here is try this., all will be bold admin and players

04/18/2018 13:52 Minotaurr#8
Quote:
Originally Posted by Rhea03 View Post
its posible to bold admin text and not bolded text in players.

here is try this., all will be bold admin and players



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 View Post
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 @[Only registered and activated users can see links. Click Here To Register...]