wxString MOPGActionSpecialProperty::ValueToString(wxVariant &value, int argFlags) const { // Get value as integer int special = value.GetInteger(); if (special == 0) return "0: None"; else { ActionSpecial* as = theGameConfiguration->actionSpecial(special); return S_FMT("%d: %s", special, CHR(as->getName())); } }
string problemDesc(unsigned index) { if (index >= lines.size()) return "No missing special tags found"; int special = lines[index]->getSpecial(); ActionSpecial* as = theGameConfiguration->actionSpecial(special); return S_FMT("Line %d: Special %d (%s) requires a tag", lines[index]->getIndex(), special, as->getName()); }