Flyff font in source?

Results 1 to 4 of 4
  1. #1
    Member Bartjak is offline
    MemberRank
    May 2013 Join Date
    NetherlandsLocation
    26Posts

    Flyff font in source?

    Hello there, how can I make Admin & GM font bold? (Not all text, only staff)

    This is 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 );
    }

    Thanks!
    Bartjak


  2. #2
    One word! Im Fawkin Pro! Xakzi is offline
    True MemberRank
    Jul 2010 Join Date
    SwedenLocation
    1,280Posts

    Re: Flyff font in source?

    Those are only for names...
    Try to find font , I think it is in EditString.cpp or Itheme.cpp
    find where the color is set, and add a similar code for admins/gms
    try it out with for example change color etc..

    Can't help more as for now but I'll try too look it up whenever I got time
    Last edited by Xakzi; 13-04-18 at 07:46 PM.

  3. #3
    Retired Staff Ketchup is offline
    SubscriberRank
    Jan 2009 Join Date
    LocalhostLocation
    660Posts

    Re: Flyff font in source?

    Itheme.cpp & .h to define the font.
    World3D.cpp to attach it to character names.
    I may not respond to pm's due to a lack of time.

  4. #4
    Member Bartjak is offline
    MemberRank
    May 2013 Join Date
    NetherlandsLocation
    26Posts

    Re: Flyff font in source?

    Okay thank, i've been looking for some days right now, but I can not find where I have to add it into the source.
    There's also no release from anyone doing it. I know that mazeyflyff has it in its source atm.
    I've started coding for some days ago, and Im trying to learn the logics about it.
    In my ITheme.cpp i currenly have this:
    Code:
    #ifdef __LANG_1013	PLANG_DATA pLangData	= CLangMan::GetInstance()->GetLangData( ::GetLanguage() );	CD3DFont* pFont;	pFont = new CD3DFont( pLangData->font.afi[0].szFont, 9 );	m_mapFont.SetAt( _T( "gulim9"), pFont );	pFont = new CD3DFont( pLangData->font.afi[1].szFont, 8 );	m_mapFont.SetAt( _T( "gulim8"), pFont );	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 13 );	m_mapFont.SetAt( _T( "gulim13"), pFont );	pFont = new CD3DFont( pLangData->font.afi[3].szFont, 9);	pFont->m_nOutLine	= pLangData->font.afi[3].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[3].dwBgColor;	m_mapFont.SetAt( _T( "Arial Black9"), pFont );	pFont = new CD3DFont( pLangData->font.afi[4].szFont, 9);	pFont->m_nOutLine	= pLangData->font.afi[4].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[4].dwBgColor;	m_mapFont.SetAt( _T( "FontWorld"), pFont );	pFont = new CD3DFont( pLangData->font.afi[5].szFont, 15 );	pFont->m_nOutLine = pLangData->font.afi[5].nOutLine;	pFont->m_dwColor	= 0xffffffff;	pFont->m_dwBgColor	= pLangData->font.afi[5].dwBgColor;	pFont->m_dwFlags	= pLangData->font.afi[5].dwFlags;	m_mapFont.SetAt( _T( "gulim20"), pFont );#if __VER >= 12 // __SECRET_ROOM	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 11, D3DFONT_BOLD );	pFont->m_nOutLine = 1;	m_mapFont.SetAt( _T( "gulim11"), pFont );	pFont = new CD3DFont( pLangData->font.afi[2].szFont, 9, D3DFONT_BOLD );	pFont->m_nOutLine = 1;	m_mapFont.SetAt( _T( "gulim9_2"), pFont );
    Do you guys think I have to add something like this?

    if( m_dwAuthorization >= AUTH_GAMEMASTER )
    pFont = new CD3DFont( pLangData->font.afi[2].szFont, 11, D3DFONT_BOLD );


    I think D3DFONT_BOLD is bold text? Seems logic to me...

    Anyways, thanks for your help guys.



Advertisement