Jump to content
StaffEN

Mission NPC Dialog Color

Recommended Posts

Hi can someone help me with this?, every text mission looks like this, when i put the cursor in the text, dissapear, need to modify some uiform at source?

dialog.png.43d5f89023aad80883a03bbe6ae4fe62.pngdialog1.png.485a21fe0d353f2b79e4e4f27f9c59cb.png

Share this post


Link to post
Share on other sites
1 hour ago, StaffEN said:

Hi can someone help me with this?, every text mission looks like this, when i put the cursor in the text, dissapear, need to modify some uiform at source?

dialog.png.43d5f89023aad80883a03bbe6ae4fe62.pngdialog1.png.485a21fe0d353f2b79e4e4f27f9c59cb.png

Look for the file UIMemo.cpp for the line that contains

 

void CMemo::Render()

{

 int i = 0;

 int offset = 21;

 for( i =_nFirst ;i<_nLast; i++ )

 {

  if(i >=_nRowInfo[0][0] &&i<= _nRowInfo[0][1])

  {

   CGuiFont::s_Font.Render( (char*)_str.c_str(), GetX() +_nLeftMargin , GetY()+ _nTopMargin + _nRowHeight * (i- _nFirst ) ,0xFF000000 );// 0xFFFFFFFF );

  }

  else if(i >=_nRowInfo[1][0] &&i<= _nRowInfo[1][1])

  {

   if ( i == _nSelectMis + _nRowInfo[1][0])

   {

    int nPosX = GetX() +_nLeftMargin + offset;

    int nPosY = GetY()+ _nTopMargin + _nRowHeight * (i - _nFirst );

    if (_files[i-_nRowInfo[1][0]].pGraph && _str.length() > 0)

     _files[i-_nRowInfo[1][0]].pGraph->Render( nPosX ,nPosY - 3 );

    CGuiFont::s_Font.Render( (char*)_str.c_str(), nPosX + offset, nPosY, 0xFFff70fd ); // fix quest gui text

   }

   else

   {

    int nPosX = GetX() +_nLeftMargin + offset;

    int nPosY = GetY()+ _nTopMargin + _nRowHeight * (i - _nFirst );

    if (_files[i-_nRowInfo[1][0]].pGraph && _str.length() > 0)

     _files[i-_nRowInfo[1][0]].pGraph->Render( nPosX, nPosY - 2 );

    CGuiFont::s_Font.Render( (char*)_str.c_str(), nPosX + offset, nPosY + 1, 0xFFff00fb );//Zizo Ref

   }

  }

  if(i >=_nRowInfo[2][0] &&i<= _nRowInfo[2][1])

  {

   if ( i == _nSelectItem + _nRowInfo[2][0])

   {

    int nPosX = GetX() +_nLeftMargin;

    int nPosY = GetY()+ _nTopMargin + _nRowHeight * (i- _nFirst );

    CGuiFont::s_Font.Render( (char*)_str.c_str(), nPosX + 24, nPosY, 0xFF0000FF );

   }

   else

   {

    int nPosX = GetX() +_nLeftMargin;

    int nPosY = GetY()+ _nTopMargin + _nRowHeight * (i- _nFirst );

    CGuiFont::s_Font.Render( (char*)_str.c_str(), nPosX + 24, nPosY + 1, 0xFF0000aF );

   }

  }

 }

 if( _pScroll->GetIsShow() ) _pScroll->Render();

}

 

 

 

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks alot, it works, that color code is rgb right?, and another thing, did u know how to add the server time? client its just with the label but stay on "00:00"

Share this post


Link to post
Share on other sites
16 hours ago, StaffEN said:

Thanks alot, it works, that color code is rgb right?, and another thing, did u know how to add the server time? client its just with the label but stay on "00:00"

Source code use arbg no rgb color type

  • Like 1

xbx3.png

Share this post


Link to post
Share on other sites

buts similar, just need to add another "ff" or if its RGBA need to add "(r,g,b,1)" or something like that, right ? or check some rgb>argb converter (ty for remember me that)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...