NPC Name Color

06/19/2013 05:33 Synchronicity#1
[Only registered and activated users can see links. Click Here To Register...]

Alright so my question is where is the string format color being defined. I noticed this color is used on Penya Font as well. And I've look through the window it uses and it's not defined there. If anyone has any idea feel free to pitch in :)
06/19/2013 07:57 ppputty#2
Neuz / VersionCommon.h

add:
PHP Code:
#define __TARGET_INF_V19 
ITheme.cpp

Search:
PHP Code:
#ifdef __LANG_1013
    
PLANG_DATA pLangData    = CLangMan::GetInstance()->GetLangData( ::GetLanguage() );
    
CD3DFont* pFont; 
Under add:
PHP Code:
#ifdef __TARGET_INF_V19
    
pFont = new CD3DFont( _T("Verdana"), 10, D3DFONT_BOLD );
    
pFont->m_nOutLine  = 2;
    
pFont->m_dwColor   = D3DCOLOR_ARGB( 255, 255, 236, 176 );
    
pFont->m_dwBgColor = D3DCOLOR_ARGB( 255,   0,   0,   0 );
    
m_mapFont.SetAt( _T( "TitleINFV19"), pFont );
#endif// __TARGET_INF_V19 
ITheme.h

Search:
PHP Code:
    SetVersion( ::GetLanguage() ); 
Under add:
PHP Code:
#ifdef __TARGET_INF_V19
    
m_mapFont.Lookup( _T("TitleINFV19"), (void*&)m_pFontWndTitleINFV19 );
#endif// __TARGET_INF_V19 
Search:
PHP Code:
    SetVersion( ::GetLanguage() ); 
Under add:
PHP Code:
#ifdef __TARGET_INF_V19
    
CD3DFont* m_pFontWndTitleINFV19;
#endif//__TARGET_INF_V19 
WndWorld.cpp

Search:
PHP Code:
public:
    
void SetVersion( int Lang ); 
Code:
PHP Code:
                        CD3DFont* pOldFont = p2DRender->GetFont();
                        
p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitleINFV19 );
                        
p2DRender->TextOut( point.x + 31 + n, point.y - 23, szText, 0xffffdd66 );
                        
p2DRender->SetFont( pOldFont ); 
Search:
PHP Code:
DWORD dwC = COLOR_MONSTER; 
Code:
PHP Code:
                        CD3DFont* pOldFont = p2DRender->GetFont();
                        
p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndNewTitle );
                        
DWORD dwC = 0xffffdd66;
                        
p2DRender->SetFont( pOldFont ); 
Search:
PHP Code:
p2DRender->TextOut( point.x + 50, point.y - 18, szText, dwC ); 
Code:
PHP Code:
                        p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitleINFV19 );
                        
p2DRender->TextOut( point.x + 31, point.y - 23, szText, dwC ); 
06/19/2013 18:07 Synchronicity#3
might need to edit that a little more since there's some inconsistencies from theme.h and wndworld.cpp

some parts of what you mentioned also for theme.h would be for theme.cpp

another thing is that the name is being rendered elsewhere and not exactly wndworld.cpp
so thats not usable either


[Only registered and activated users can see links. Click Here To Register...]

the string format seems like a global color or a default or some sort.


its being used on player names too.