From 335866be8857c92ba15594b5f3a990a780f0a3e5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Mar 2020 22:18:39 +0100 Subject: [PATCH] Add UI to control ghost zones drawing. Disabled for now, will be needed in future. --- server/TracyView.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index aff7cdc4..93e1e59e 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7550,6 +7550,20 @@ void View::DrawOptions() #endif ImGui::Indent(); m_vd.drawZones = val; + +#ifndef TRACY_NO_STATISTICS + if( m_worker.AreGhostZonesReady() && m_worker.GetGhostZonesCount() != 0 ) + { + val = m_vd.ghostZones; +#ifdef TRACY_EXTENDED_FONT + SmallCheckbox( ICON_FA_GHOST " Draw ghost zones", &val ); +#else + SmallCheckbox( "Draw ghost zones", &val ); +#endif + m_vd.ghostZones = val; + } +#endif + int ival = m_vd.dynamicColors; #ifdef TRACY_EXTENDED_FONT ImGui::TextUnformatted( ICON_FA_PALETTE " Zone colors" );