18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 04:47:06 +01:00

test(editor): the cases of the aerial photo with no fuss, and fs_3 with the line in place of the question

ph_1: the photo turned off with the button of the toolbar stays off over the wizard's //$o on 1 when the scenery is opened
again, on again after the next. ph_2: the first L in a scenery placed on the map asks nothing, the terrain loads in the
background with its line in the panel of the laying, Without terrain stops it. ph_3: the tracks drawn over the photo in the top
view zoomed in under 0.5 m a pixel, not without the photo. ph_4: the button and ~ are the user's choice, the terrain of the model
made afterwards doesn't turn the photo on again, F1 opens.

fs_3 still checks the answer Without terrain, now the button of the line which took the place of the question in a window, and
that no window asks. New for the scripts: expect photo <on|chosen|zoom4k|tracksover>, expect terrain <loading|question>,
toolbar <key|name>, orthophoto forget, and the key grave (~) for tap.
This commit is contained in:
maj00r
2026-11-24 00:07:41 +01:00
parent 35383409ee
commit 58521e565f
12 changed files with 185 additions and 11 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ namespace
int key_named(std::string const &Name)
{
static std::map<std::string, int> const names{{"ctrl", GLFW_KEY_LEFT_CONTROL}, {"shift", GLFW_KEY_LEFT_SHIFT}, {"alt", GLFW_KEY_LEFT_ALT}, {"esc", GLFW_KEY_ESCAPE}, {"enter", GLFW_KEY_ENTER}, {"backspace", GLFW_KEY_BACKSPACE},
{"del", GLFW_KEY_DELETE}, {"space", GLFW_KEY_SPACE}, {"tab", GLFW_KEY_TAB}};
{"del", GLFW_KEY_DELETE}, {"space", GLFW_KEY_SPACE}, {"tab", GLFW_KEY_TAB}, {"grave", GLFW_KEY_GRAVE_ACCENT}};
if (auto const found{names.find(Name)}; found != names.end())
return found->second;
if (Name.size() == 1 && std::isalpha(static_cast<unsigned char>(Name[0])))