mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-22 23:28:54 +00:00
Switch plot drawing to the timeline items system.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "TracyImGui.hpp"
|
||||
#include "TracyMouse.hpp"
|
||||
#include "TracyPrint.hpp"
|
||||
#include "TracyUtility.hpp"
|
||||
#include "TracyView.hpp"
|
||||
|
||||
namespace tracy
|
||||
@@ -562,9 +563,9 @@ void View::DrawOptions()
|
||||
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
SmallColorBox( GetPlotColor( p ) );
|
||||
SmallColorBox( GetPlotColor( *p, m_worker ) );
|
||||
ImGui::SameLine();
|
||||
SmallCheckbox( GetPlotName( p ), &m_tc.Vis( p ).visible );
|
||||
m_tc.GetItem( p ).VisibilityCheckbox();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "%s data points", RealToString( p->data.size() ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user