StaffEN 5 Report post Posted August 25 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? Quote Share this post Link to post Share on other sites
dragontechi 70 Report post Posted August 25 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? 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(); } 1 Quote Share this post Link to post Share on other sites
StaffEN 5 Report post Posted August 25 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" Quote Share this post Link to post Share on other sites
Ximboliex 89 Report post Posted August 26 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 1 Quote Share this post Link to post Share on other sites
StaffEN 5 Report post Posted August 26 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) Quote Share this post Link to post Share on other sites