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() );
    
CD3DFontpFont
Under add:
PHP Code:
#ifdef __TARGET_INF_V19
    
pFont = new CD3DFont_T("Verdana"), 10D3DFONT_BOLD );
    
pFont->m_nOutLine  2;
    
pFont->m_dwColor   D3DCOLOR_ARGB255255236176 );
    
pFont->m_dwBgColor D3DCOLOR_ARGB255,   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
    
CD3DFontm_pFontWndTitleINFV19;
#endif//__TARGET_INF_V19 
WndWorld.cpp

Search:
PHP Code:
public:
    
void SetVersionint Lang ); 
Code:
PHP Code:
                        CD3DFontpOldFont p2DRender->GetFont();
                        
p2DRender->SetFontCWndBase::m_Theme.m_pFontWndTitleINFV19 );
                        
p2DRender->TextOutpoint.31 npoint.23szText0xffffdd66 );
                        
p2DRender->SetFontpOldFont ); 
Search:
PHP Code:
DWORD dwC COLOR_MONSTER
Code:
PHP Code:
                        CD3DFontpOldFont p2DRender->GetFont();
                        
p2DRender->SetFontCWndBase::m_Theme.m_pFontWndNewTitle );
                        
DWORD dwC 0xffffdd66;
                        
p2DRender->SetFontpOldFont ); 
Search:
PHP Code:
p2DRender->TextOutpoint.50point.18szTextdwC ); 
Code:
PHP Code:
                        p2DRender->SetFontCWndBase::m_Theme.m_pFontWndTitleINFV19 );
                        
p2DRender->TextOutpoint.31point.23szTextdwC ); 
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.