| 178 | } |
| 179 | |
| 180 | bool SearchPanel::Try3dModeCmd(std::string const & str) |
| 181 | { |
| 182 | bool const is3dModeOn = (str == "?3d"); |
| 183 | bool const is3dBuildingsOn = (str == "?b3d"); |
| 184 | bool const is3dModeOff = (str == "?2d"); |
| 185 | |
| 186 | if (!is3dModeOn && !is3dBuildingsOn && !is3dModeOff) |
| 187 | return false; |
| 188 | |
| 189 | GetFramework().Save3dMode(is3dModeOn || is3dBuildingsOn, is3dBuildingsOn); |
| 190 | GetFramework().Allow3dMode(is3dModeOn || is3dBuildingsOn, is3dBuildingsOn); |
| 191 | |
| 192 | return true; |
| 193 | } |
| 194 | |
| 195 | bool SearchPanel::TryTrafficSimplifiedColorsCmd(std::string const & str) |
| 196 | { |
nothing calls this directly
no test coverage detected