Issue #219: Supoort for inverted select structs

actorid
Marc Zinnschlag 12 years ago
parent 4614d2bc8e
commit b412ebd0af

@ -51,12 +51,17 @@ MWDialogue::SelectWrapper::Type MWDialogue::SelectWrapper::getType() const
return Type_None;
}
bool MWDialogue::SelectWrapper::IsInverted() const
{
return false;
}
bool MWDialogue::SelectWrapper::selectCompare (int value) const
{
return selectCompareImp (mSelect, value);
return selectCompareImp (mSelect, value)!=IsInverted(); // logic XOR
}
bool MWDialogue::SelectWrapper::selectCompare (float value) const
{
return selectCompareImp (mSelect, value);
return selectCompareImp (mSelect, value)!=IsInverted(); // logic XOR
}

@ -31,6 +31,8 @@ namespace MWDialogue
Type getType() const;
bool IsInverted() const;
bool selectCompare (int value) const;
bool selectCompare (float value) const;

Loading…
Cancel
Save