mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
Adding product name to display
This commit is contained in:
parent
83e8ac2701
commit
8250b09574
1 changed files with 16 additions and 0 deletions
|
|
@ -110,6 +110,22 @@ void OverlayLayer::Render(
|
|||
|
||||
DrawLayer::Render(params);
|
||||
|
||||
if (radarProductView != nullptr)
|
||||
{
|
||||
// Render product name
|
||||
std::string productName = radarProductView->GetRadarProductName();
|
||||
if (productName.length() > 0 && !productName.starts_with('?'))
|
||||
{
|
||||
ImGui::SetNextWindowPos(ImVec2 {0.0f, 0.0f});
|
||||
ImGui::Begin("Product Name",
|
||||
nullptr,
|
||||
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize |
|
||||
ImGuiWindowFlags_AlwaysAutoResize);
|
||||
ImGui::Text(productName.c_str());
|
||||
ImGui::End();
|
||||
}
|
||||
}
|
||||
|
||||
if (p->sweepTimeString_.length() > 0)
|
||||
{
|
||||
// Render time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue