- Joined
- Nov 29, 2009
- Messages
- 370
- Reaction score
- 26
Hello All,
I have completely added a working version of FlyFF's tabbed inventory system to my server, but i have a single UI problem that i can't seem to fix.
The code used to separate the inventory UI in to 4 separate tabs is shown below
This creates an inventory like this
Any assistance on how to edit the UI to have the correct length (54px) using WndInventab01.tga
I know how to get WndInventab02.tga to show behind, but there is no point getting this working until i get the first bit to show the correct length.
P.S MAX_TABS is used to increase the tab slots later if i wish too, but its currently set to 4.
I have completely added a working version of FlyFF's tabbed inventory system to my server, but i have a single UI problem that i can't seem to fix.
The code used to separate the inventory UI in to 4 separate tabs is shown below
for( int i = 0; i < MAX_TABS; i++ )
{
m_wndInvCtrl.Create( WLVS_ICON, CRect( 0, 0, 250, 250 ), pTabCtrl, 21 + i );
m_wndInvCtrl.InitItem( &g_pPlayer->m_Inventory, APP_INVENTORY, i );
if( i == 0 ) tabTabItem.pszText = GETTEXT( TID_INVEN_NEWITEM );
if( i == 1 ) tabTabItem.pszText = GETTEXT( TID_INVEN_PET );
if( i == 2 ) tabTabItem.pszText = GETTEXT( TID_INVEN_COSTUME );
if( i == 3 ) tabTabItem.pszText = GETTEXT( TID_INVEN_QUEST );
tabTabItem.pWndBase = &m_wndInvCtrl;
pTabCtrl->InsertItem( i, &tabTabItem );
}
{
m_wndInvCtrl.Create( WLVS_ICON, CRect( 0, 0, 250, 250 ), pTabCtrl, 21 + i );
m_wndInvCtrl.InitItem( &g_pPlayer->m_Inventory, APP_INVENTORY, i );
if( i == 0 ) tabTabItem.pszText = GETTEXT( TID_INVEN_NEWITEM );
if( i == 1 ) tabTabItem.pszText = GETTEXT( TID_INVEN_PET );
if( i == 2 ) tabTabItem.pszText = GETTEXT( TID_INVEN_COSTUME );
if( i == 3 ) tabTabItem.pszText = GETTEXT( TID_INVEN_QUEST );
tabTabItem.pWndBase = &m_wndInvCtrl;
pTabCtrl->InsertItem( i, &tabTabItem );
}
This creates an inventory like this
Any assistance on how to edit the UI to have the correct length (54px) using WndInventab01.tga
I know how to get WndInventab02.tga to show behind, but there is no point getting this working until i get the first bit to show the correct length.
P.S MAX_TABS is used to increase the tab slots later if i wish too, but its currently set to 4.

