|
|
@ -2003,6 +2003,9 @@ bool SBagOptions::parse(xmlNodePtr cur, CInterfaceGroup * /* parentGroup */)
|
|
|
|
prop = xmlGetProp (cur, (xmlChar*)"filter_tool");
|
|
|
|
prop = xmlGetProp (cur, (xmlChar*)"filter_tool");
|
|
|
|
if (prop) DbFilterTool = NLGUI::CDBManager::getInstance()->getDbProp(prop.str());
|
|
|
|
if (prop) DbFilterTool = NLGUI::CDBManager::getInstance()->getDbProp(prop.str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prop = xmlGetProp (cur, (xmlChar*)"filter_pet");
|
|
|
|
|
|
|
|
if (prop) DbFilterPet = NLGUI::CDBManager::getInstance()->getDbProp(prop.str());
|
|
|
|
|
|
|
|
|
|
|
|
prop = xmlGetProp (cur, (xmlChar*)"filter_mp");
|
|
|
|
prop = xmlGetProp (cur, (xmlChar*)"filter_mp");
|
|
|
|
if (prop) DbFilterMP = NLGUI::CDBManager::getInstance()->getDbProp(prop.str());
|
|
|
|
if (prop) DbFilterMP = NLGUI::CDBManager::getInstance()->getDbProp(prop.str());
|
|
|
|
|
|
|
|
|
|
|
@ -2079,6 +2082,13 @@ bool SBagOptions::isSomethingChanged()
|
|
|
|
LastDbFilterTool = (DbFilterTool->getValue8() != 0);
|
|
|
|
LastDbFilterTool = (DbFilterTool->getValue8() != 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DbFilterPet != NULL)
|
|
|
|
|
|
|
|
if ((DbFilterPet->getValue8() != 0) != LastDbFilterPet)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
bRet = true;
|
|
|
|
|
|
|
|
LastDbFilterPet = (DbFilterPet->getValue8() != 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (DbFilterMP != NULL)
|
|
|
|
if (DbFilterMP != NULL)
|
|
|
|
if ((DbFilterMP->getValue8() != 0) != LastDbFilterMP)
|
|
|
|
if ((DbFilterMP->getValue8() != 0) != LastDbFilterMP)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2117,6 +2127,7 @@ bool SBagOptions::canDisplay(CDBCtrlSheet *pCS) const
|
|
|
|
bool bFilterArmor = getFilterArmor();
|
|
|
|
bool bFilterArmor = getFilterArmor();
|
|
|
|
bool bFilterWeapon = getFilterWeapon();
|
|
|
|
bool bFilterWeapon = getFilterWeapon();
|
|
|
|
bool bFilterTool = getFilterTool();
|
|
|
|
bool bFilterTool = getFilterTool();
|
|
|
|
|
|
|
|
bool bFilterPet = getFilterPet();
|
|
|
|
bool bFilterMP = getFilterMP();
|
|
|
|
bool bFilterMP = getFilterMP();
|
|
|
|
bool bFilterMissMP = getFilterMissMP();
|
|
|
|
bool bFilterMissMP = getFilterMissMP();
|
|
|
|
bool bFilterTP = getFilterTP();
|
|
|
|
bool bFilterTP = getFilterTP();
|
|
|
@ -2168,10 +2179,13 @@ bool SBagOptions::canDisplay(CDBCtrlSheet *pCS) const
|
|
|
|
(pIS->Family == ITEMFAMILY::HARVEST_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::HARVEST_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::TAMING_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::TAMING_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::TRAINING_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::TRAINING_TOOL) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::BAG) ||
|
|
|
|
(pIS->Family == ITEMFAMILY::BAG))
|
|
|
|
(pIS->Family == ITEMFAMILY::PET_ANIMAL_TICKET) )
|
|
|
|
|
|
|
|
if (!bFilterTool) bDisplay = false;
|
|
|
|
if (!bFilterTool) bDisplay = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Pet
|
|
|
|
|
|
|
|
if (pIS->Family == ITEMFAMILY::PET_ANIMAL_TICKET)
|
|
|
|
|
|
|
|
if (!bFilterPet) bDisplay = false;
|
|
|
|
|
|
|
|
|
|
|
|
// MP
|
|
|
|
// MP
|
|
|
|
if ((pIS->Family == ITEMFAMILY::RAW_MATERIAL) && pIS->canBuildSomeItemPart())
|
|
|
|
if ((pIS->Family == ITEMFAMILY::RAW_MATERIAL) && pIS->canBuildSomeItemPart())
|
|
|
|
if (!bFilterMP) bDisplay = false;
|
|
|
|
if (!bFilterMP) bDisplay = false;
|
|
|
|