mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 17:05:37 +00:00
Renamed should_cook to cook_pref
This commit is contained in:
@@ -562,7 +562,7 @@ void CTemplateWriter::SaveProperties(XMLDocument *pDoc, XMLElement *pParent, CSt
|
||||
|
||||
if (CookPref != eNoCookPreference)
|
||||
{
|
||||
XMLElement *pCookPref = pDoc->NewElement("should_cook");
|
||||
XMLElement *pCookPref = pDoc->NewElement("cook_pref");
|
||||
pCookPref->SetText(CookPref == eAlwaysCook ? "always" : "never");
|
||||
pElem->LinkEndChild(pCookPref);
|
||||
}
|
||||
@@ -726,12 +726,12 @@ void CTemplateWriter::SavePropertyOverrides(XMLDocument *pDoc, XMLElement *pPare
|
||||
// Cook Pref
|
||||
if (pProp->CookPreference() != pSource->CookPreference())
|
||||
{
|
||||
XMLElement *pCookPref = pDoc->NewElement("should_cook");
|
||||
XMLElement *pCookPref = pDoc->NewElement("cook_pref");
|
||||
|
||||
TString PrefStr;
|
||||
if (pProp->CookPreference() == eAlwaysCook) PrefStr = "always";
|
||||
else if (pProp->CookPreference() == eNeverCook) PrefStr = "never";
|
||||
else PrefStr = "nopref";
|
||||
else PrefStr = "none";
|
||||
|
||||
pCookPref->SetText(*PrefStr);
|
||||
pElem->LinkEndChild(pCookPref);
|
||||
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
|
||||
virtual void SetParam(const TString& rkParamName, const TString& rkValue)
|
||||
{
|
||||
if (rkParamName == "should_cook")
|
||||
if (rkParamName == "cook_pref")
|
||||
{
|
||||
TString lValue = rkValue.ToLower();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user