Register for your free account! | Forgot your password?

You last visited: Today at 20:09

  • 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: 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 );
		}



Minotaurr is offline  
Old 04/13/2018, 00:43   #2
 
elite*gold: 0
Join Date: Mar 2018
Posts: 71
Received Thanks: 5
Itheme.cpp


Rhea03 is offline  
Old 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 View Post
Itheme.cpp


Thankss but, how??

I only want staff names bold, not general players...
Minotaurr is offline  
Old 04/13/2018, 16:45   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 651
Received Thanks: 208
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 04/13/2018, 17:06   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
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 04/16/2018, 20:48   #6
 
elite*gold: 0
Join Date: Mar 2018
Posts: 34
Received Thanks: 3
MoverRender.cpp / RenderName Function.
Barameu is offline  
Thanks
1 User
Old 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

Rhea03 is offline  
Thanks
1 User
Old 04/18/2018, 13:52   #8
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
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 @


Minotaurr is offline  
Reply



« [HELP] im stuck on this error | Help Daily Gift »

Similar Threads
[Help]About Text Bold
03/30/2017 - Flyff PServer - Discussions / Questions - 2 Replies
http://image.prntscr.com/image/e60964302e154edb85a716ad1616f90c.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 20:09.


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.