Register for your free account! | Forgot your password?

You last visited: Today at 01:26

  • Please register to post and access all features, it's quick, easy and FREE!

 

How do I make Admin text bold?

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 166
Received Thanks: 8
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 );
		}



Minotaurr is offline  
Old   #2
 
elite*gold: 0
Join Date: Mar 2018
Posts: 27
Received Thanks: 2
Itheme.cpp


Rhea03 is offline  
Old   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 166
Received Thanks: 8
How do I make Admin text bold?

Quote:
Originally Posted by Rhea03 View Post
Itheme.cpp


Thankss but, how??

I only want staff names bold, not general players...
Minotaurr is offline  
Old   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 607
Received Thanks: 160
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 );


alfredico is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 166
Received Thanks: 8
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!
Minotaurr is offline  
Old   #6
 
elite*gold: 0
Join Date: Mar 2018
Posts: 21
Received Thanks: 2
MoverRender.cpp / RenderName Function.
Barameu is offline  
Thanks
1 User
Old   #7
 
elite*gold: 0
Join Date: Mar 2018
Posts: 27
Received Thanks: 2
its posible to bold admin text and not bolded text in players.

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

Rhea03 is offline  
Thanks
1 User
Old   #8
 
elite*gold: 0
Join Date: Nov 2010
Posts: 166
Received Thanks: 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뭪 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 @alfredico


Minotaurr is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Help]About Text Bold
http://image.prntscr.com/image/e60964302e154edb85a716ad1616f90c.png how to remove bold from static text sir ?:handsdown:
2 Replies - Flyff PServer - Discussions / Questions
bold text
Hi anyone know how to do stall names or of the characters in bold? thanks in advance
0 Replies - Perfect World



All times are GMT +2. The time now is 01:26.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.