mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 20:05:23 +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:
@@ -264,6 +264,21 @@ void editor_mode::work_area_tools(std::vector<tool_button> &Buttons)
|
||||
}
|
||||
}
|
||||
|
||||
bool editor_mode::press_toolbar(std::string const &Name)
|
||||
{
|
||||
std::vector<tool_button> buttons;
|
||||
work_area_tools(buttons);
|
||||
for (auto const &button : buttons)
|
||||
if ((button.key != nullptr && Name == button.key) || Name == button.label)
|
||||
{
|
||||
if (false == button.enabled || false == static_cast<bool>(button.action))
|
||||
return false;
|
||||
button.action();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
editor_mode::section_tool const &editor_mode::surroundings_tool(nodebank_panel::edit_mode const Mode)
|
||||
{
|
||||
// in the order of the edit modes: select, copy to bank, insert, brush, area fill
|
||||
|
||||
Reference in New Issue
Block a user