mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 23:49:19 +02:00
AnimModel.cpp reaches cParser through the simulation core, not a direct import, so the previous pass missed it; the propagation now follows the whole import closure. Train.cpp, drivermode.cpp and Globals.cpp call Console:: inside _WIN32 guards without importing eu07.console - invisible on Linux, where those blocks are skipped.
42 lines
661 B
C++
42 lines
661 B
C++
module;
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <cstddef>
|
|
#include <deque>
|
|
#include <limits>
|
|
#include <mutex>
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <type_traits>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include "imgui/imgui.h"
|
|
#include <string>
|
|
|
|
module eu07.application.uilayer;
|
|
|
|
ui::popup::popup(ui_panel &panel) : m_parent(panel) {}
|
|
|
|
ui::popup::~popup() {}
|
|
|
|
bool ui::popup::render()
|
|
{
|
|
if (!m_id.size())
|
|
{
|
|
m_id = "popup:" + std::to_string(id++);
|
|
ImGui::OpenPopup(m_id.c_str());
|
|
}
|
|
|
|
if (!ImGui::BeginPopup(m_id.c_str()))
|
|
return true;
|
|
|
|
render_content();
|
|
|
|
ImGui::EndPopup();
|
|
|
|
return false;
|
|
}
|
|
|
|
int ui::popup::id = 0;
|