MCPcopy Create free account
hub / github.com/comaps/comaps / Try3dModeCmd

Method Try3dModeCmd

qt/search_panel.cpp:180–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool 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
195bool SearchPanel::TryTrafficSimplifiedColorsCmd(std::string const & str)
196{

Callers

nothing calls this directly

Calls 2

Save3dModeMethod · 0.45
Allow3dModeMethod · 0.45

Tested by

no test coverage detected