hint for SET_SDF
This commit is contained in:
@@ -535,11 +535,18 @@ std::string cSpecial::editor_hint(const cScenario& scenario) const {
|
|||||||
std::string hint = (*type).name();
|
std::string hint = (*type).name();
|
||||||
|
|
||||||
switch(type){
|
switch(type){
|
||||||
|
case eSpecType::SET_SDF:{
|
||||||
|
std::string name = scenario.get_sdf_name(sd1, sd2);
|
||||||
|
if(name.empty()) name = "(" + std::to_string(sd1) + ", " + std::to_string(sd2) + ")";
|
||||||
|
else name = "'" + name + "'";
|
||||||
|
hint += " " + name + " to " + std::to_string(ex1a);
|
||||||
|
}break;
|
||||||
case eSpecType::TOWN_STAIR:
|
case eSpecType::TOWN_STAIR:
|
||||||
case eSpecType::TOWN_GENERIC_STAIR:
|
case eSpecType::TOWN_GENERIC_STAIR:
|
||||||
hint += " to ";
|
hint += " to ";
|
||||||
if(ex2a < scenario.towns.size()) hint += scenario.towns[ex2a]->loc_str(loc(ex1a, ex1b));
|
if(ex2a < scenario.towns.size()) hint += scenario.towns[ex2a]->loc_str(loc(ex1a, ex1b));
|
||||||
else hint += "INVALID TOWN";
|
else hint += "INVALID TOWN";
|
||||||
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
return hint;
|
return hint;
|
||||||
|
Reference in New Issue
Block a user