| 15 | } |
| 16 | |
| 17 | void LocationWindow::process() |
| 18 | { |
| 19 | ImGui::PushID(_id); |
| 20 | |
| 21 | ImGui::SetNextWindowBgAlpha(Const::WindowAlpha * ImGui::GetStyle().Alpha); |
| 22 | ImGui::SetNextWindowSize({scale(650.0f), scale(350.0f)}, ImGuiCond_Once); |
| 23 | ImGui::SetNextWindowPos({_initialPos.x, _initialPos.y}, ImGuiCond_Once); |
| 24 | auto title = _widgets->getLocationName(); |
| 25 | if (ImGui::Begin((title + "###" + std::to_string(_id)).c_str(), &_on)) { |
| 26 | _widgets->process(); |
| 27 | } |
| 28 | ImGui::End(); |
| 29 | |
| 30 | ImGui::PopID(); |
| 31 | } |
| 32 | |
| 33 | bool LocationWindow::isOn() const |
| 34 | { |
nothing calls this directly
no test coverage detected