| 26 | } |
| 27 | |
| 28 | void LogWindow::processIntern() |
| 29 | { |
| 30 | auto& styleRepository = StyleRepository::get(); |
| 31 | if (ImGui::BeginChild( |
| 32 | "##", ImVec2(0, ImGui::GetContentRegionAvail().y - styleRepository.scale(40.0f)), true, ImGuiWindowFlags_HorizontalScrollbar)) { |
| 33 | ImGui::PushFont(StyleRepository::get().getMonospaceMediumFont()); |
| 34 | ImGui::PushStyleColor(ImGuiCol_Text, (ImVec4)Const::MonospaceColor); |
| 35 | |
| 36 | for (auto const& logMessage : _logger->getMessages(_verbose ? Priority::Unimportant : Priority::Important) | boost::adaptors::reversed) { |
| 37 | ImGui::TextUnformatted(logMessage.c_str()); |
| 38 | } |
| 39 | ImGui::PopStyleColor(); |
| 40 | ImGui::PopFont(); |
| 41 | } |
| 42 | ImGui::EndChild(); |
| 43 | |
| 44 | ImGui::Spacing(); |
| 45 | ImGui::Spacing(); |
| 46 | AlienImGui::ToggleButton(AlienImGui::ToggleButtonParameters().name("Verbose"), _verbose); |
| 47 | } |
nothing calls this directly
no test coverage detected