Hi and Hello, sorry for disturbing you. But i'm having a quite trouble with the fix for the Taskbar + Action Slot Fix.
This is the code that should be added in the "CWndTaskBarInterface::OnLButtonUp"
if (PtInRect(SlotCustom->rect, point))
{
if (clock() < m_tmCoolDown || m_bStopCoolDown)
{
return;
}
if (g_WndMng.m_pWndTaskBar->m_nExecute == 0)
{
if ((g_WndMng.m_pWndTaskBar->m_nUsedSkillQueue == 0) && (m_nActionSlot > 0))
{
g_WndMng.m_pWndWorld->m_dwNextSkill = NEXTSKILL_ACTIONSLOT;
}
}
}
and this is what my "CWndTaskBarInterface::OnLButtonUp" looks like.
void CWndTaskBarInterface::OnLButtonUp( UINT nFlags, CPoint point)
{
LPSHORTCUT pShortcut = NULL;
if(!CWndTaskBarInterface::IsLock())
*m_bPick = FALSE;
for( int i = 0; i < 10; i++ )
{
if( !m_bCtrlVisible[i] )
continue;
if( wndCtrl[i]->rect.PtInRect( point ))
{
pShortcut = m_pSlotItem[ i ];
m_USEFireALPHA[i] = 255;
}
}
if( pShortcut && pShortcut == m_pSelectShortcut && !pShortcut->IsEmpty() && pShortcut->m_dwData != 2 )
{
g_WndMng.ObjectExecutor( pShortcut );
}
ReleaseCapture();
}
This is the only part i'm having trouble now. Can anyone enlighten me? Sorry for the inconvenience.