ersetz den eintrag in der WndControl.cpp gegen den hier
PHP Code:
#ifdef __WIKI
if( pWnd->GetWndId() == APP_WIKI )
{
CWndWiki *pWndWiki = (CWndWiki*)pWnd;
m_nFontHeight = 40;
CPoint pt(10,3);
vector<ItemProp*> *pVecItems = pWndWiki->GetItemList();
CRect rectClient = GetClientRect();
int nPage = rectClient.Height() / m_nFontHeight;
m_wndScrollBar.SetScrollRange( 0, pVecItems->size() );
m_wndScrollBar.SetScrollPage( nPage );
for( unsigned i = (unsigned)m_wndScrollBar.GetScrollPos(); i < (unsigned)(pVecItems->size()); ++i )
{
if( i > (unsigned)(nPage + m_wndScrollBar.GetScrollPos()) )
break;
ItemProp *pProp = pVecItems->at(i);
CString strBuf;
//p2DRender->RenderLine(CPoint(-2,pt.y+37),CPoint(rectClient.right,pt.y+37),0xFF776655);
if( i == m_nCurSelect )
{
CRect DrawRect = CRect(0,pt.y-2,rectClient.right,pt.y+36);
p2DRender->RenderFillRect(DrawRect, 0xFF022202);
p2DRender->RenderRect(DrawRect, 0xFF077707);
}
if( strlen( pProp->szIcon) )
{
CTexture *pIcon = CWndBase::m_textureMng.AddTexture(p2DRender->m_pd3dDevice, MakePath(DIR_ITEM, pProp->szIcon),0xffff00ff);
pIcon->Render(p2DRender,pt);
}
CRect rectToolTip(pt.x,pt.y,pt.x+35,pt.y+35);
if( rectToolTip.PtInRect(m_ptMouse) )
{
CPoint pt2 = m_ptMouse;
ClientToScreen(&pt2);
ClientToScreen(&rectToolTip);
CItemElem Item;
Item.m_dwItemId = pProp->dwID;
g_WndMng.PutToolTip_Item(&Item, pt2, &rectToolTip);
}
pt.x += 40;
pt.y += 10;
p2DRender->TextOut(pt.x ,pt.y, pProp->szName, 0xFF088A08);
pt.x += 250;
if( pProp->dwItemJob < MAX_JOB )
p2DRender->TextOut(pt.x, pt.y, prj.m_aJob[pProp->dwItemJob].szName, 0xFF088A08);
pt.x += 150;
int nLevel = (pProp->dwLimitLevel1 == NULL_ID ? 1 : pProp->dwLimitLevel1);
strBuf.Format("%d", nLevel);
if( nLevel > 1 )
p2DRender->TextOut(pt.x, pt.y, strBuf, 0xFF088A08);
pt.x = 10;
pt.y += m_nFontHeight - 10;
}
}else
#endif // __WIKI