Personal Shop Bug (June Files)
#1

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

 

#2

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.

#3


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;
        }
    }

 



Forum Jump:


Users browsing this thread: 1 Guest(s)