![]()
To view the content, you need to sign in or register
Can someone help me to make this align, and also how can I change the font color of the quantity of the items in inventory
CWndCharInfo::OnInitialUpdate
CWndInventory::OnDraw
CItemElem *pItemElem = (CItemElem *)pItemBase;
if( pItemElem->GetProp()->dwPackMax > 1 ) // ¹À½ ¾ÆÀÌÅÛÀ̳Ä?
{
short nItemNum = pItemElem->m_nItemNum;
TCHAR szTemp[ 32 ];
_stprintf( szTemp, "%d", nItemNum );
CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp );
int x = DrawRect.left;
int y = DrawRect.top;
m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff );
m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 );
}
The stat issue is usually due to not having the correct WndNewCharacter01.tga. I'm not sure what source you have copied it from but you can look usually here
and find the one your supposed to have then go into there theme folder and copy it to yours.Code:CWndCharInfo::OnInitialUpdate
Quantity color of items in inventory can be found in:
Code:CWndInventory::OnDraw
Here is where you would change it:
Code:CItemElem *pItemElem = (CItemElem *)pItemBase; if( pItemElem->GetProp()->dwPackMax > 1 ) // ¹À½ ¾ÆÀÌÅÛÀ̳Ä? { short nItemNum = pItemElem->m_nItemNum; TCHAR szTemp[ 32 ]; _stprintf( szTemp, "%d", nItemNum ); CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp ); int x = DrawRect.left; int y = DrawRect.top; m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff ); m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 ); }
The stat issue is usually due to not having the correct WndNewCharacter01.tga. I'm not sure what source you have copied it from but you can look usually here
and find the one your supposed to have then go into there theme folder and copy it to yours.Code:CWndCharInfo::OnInitialUpdate
Quantity color of items in inventory can be found in:
Code:CWndInventory::OnDraw
Here is where you would change it:
Code:CItemElem *pItemElem = (CItemElem *)pItemBase; if( pItemElem->GetProp()->dwPackMax > 1 ) // ¹À½ ¾ÆÀÌÅÛÀ̳Ä? { short nItemNum = pItemElem->m_nItemNum; TCHAR szTemp[ 32 ]; _stprintf( szTemp, "%d", nItemNum ); CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp ); int x = DrawRect.left; int y = DrawRect.top; m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff ); m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 ); }
Thanks, but I use your source which is the infinity source
In the stats, can I copy your source in guru?
The infinity source is not mine i just released it after upgrading the compiler.
You can copy w/e you wish to my 18.1 and 15 to make it your own![]()
Thank you but when I try to edit the menu it missed up.
I have no idea what your talking about? Menu? o.o
You can try edit WndNewCharacter01.tga with photoshop or take this from Infinity client.Ohh sorry, I mean the stats menu
__show_all_stats
Ohh sorry, I mean the stats menu
__show_all_stats
I already told you how to fix that above o.o