Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
771 B
53
Indexable
Never
#ifdef CONFIG_OLD_ITEM_MALL
HOOK_ORIGINAL_MEMBER(0x0079B580, &CGInterface::OnItemMallSectionControl);
void CGInterface::OnItemMallSectionControl(bool bCreate) {
    CIFItemMall* pItemMall = m_IRM.GetResObj<CIFItemMall>(50, 1);

    if(bCreate) {
        if(!pItemMall) {
            m_IRM.CreateInterfaceSection("ItemMall", this);

            pItemMall = m_IRM.GetResObj<CIFItemMall>(50, 1);
            pItemMall->MoveToCenter();
            pItemMall->ShowGWnd(true);

            FUN_0079a7e0(pItemMall);
        }
    } else {
        CGEffSoundBody::get()->PlaySound(L"snd_quest");

        pItemMall = m_IRM.GetResObj<CIFItemMall>(50, 1);
        pItemMall->ShowGWnd(false);

        m_IRM.DeleteCreatedSection("ItemMall");
    }
}

#endif
Leave a Comment