mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Add UI to control ghost zones drawing.
Disabled for now, will be needed in future.
This commit is contained in:
parent
adb45ed5df
commit
335866be88
@ -7550,6 +7550,20 @@ void View::DrawOptions()
|
|||||||
#endif
|
#endif
|
||||||
ImGui::Indent();
|
ImGui::Indent();
|
||||||
m_vd.drawZones = val;
|
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;
|
int ival = m_vd.dynamicColors;
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::TextUnformatted( ICON_FA_PALETTE " Zone colors" );
|
ImGui::TextUnformatted( ICON_FA_PALETTE " Zone colors" );
|
||||||
|
Loading…
Reference in New Issue
Block a user