LCKB
Personal Shop Bug (June Files) - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Personal Shop Bug (June Files) (/showthread.php?tid=1171)



- Desarija - 03-27-2021


Hi,

I have a bug with personal shops in the June files which I could not manage to fix yet. Whenever I select an item from the first visible row when opening a shop, it selects the item from the first inventory row even if it is not visible because I scrolled down. All 3 other rows are fine. Does anyone know the fix for this bug? I could not locate the problem in PersonalshopUI.cpp/.h, I think it is somewhere else..

2

 




- Veni - 03-27-2021


oof i remember that i fixed this through switching some code to november.. UIArray? maybe?

one of these UI functions. I think I went through the entire UI searching for what is being used and something I changed made it work

Maybe I'm completely wrong tho.




- Desarija - 03-27-2021



52 minutes ago, Veni said:




oof i remember that i fixed this through switching some code to november.. UIArray? maybe?

one of these UI functions. I think I went through the entire UI searching for what is being used and something I changed made it work

Maybe I'm completely wrong tho.




You are completely right, thank you very much ?

UIArray.cpp

WMSG_RESULT CUIArray::OnLButtonDown(UINT16 x, UINT16 y)

    nMax = m_vecArrayChild.size();
    for (i = 0; i < nMax; ++i)
    {
        //if (m_vecArrayChild[i]->IsInside(x, y) == TRUE)
        if (m_vecArrayChild[i]->GetHide() == FALSE &&             //shop fix
            m_vecArrayChild[i]->IsInside(x, y) == TRUE)
        {
            SetSelectIdx(i);
            break;
        }
    }