コード例 #1
0
ファイル: MOPGProperty.cpp プロジェクト: doomtech/slade
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()));
	}
}
コード例 #2
0
ファイル: MapChecks.cpp プロジェクト: DemolisherOfSouls/SLADE
	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());
	}