mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add zone color boxes to find zone menu.
This commit is contained in:
parent
b7cd28ef72
commit
4dde1ca070
@ -7723,8 +7723,12 @@ void View::DrawFindZone()
|
|||||||
{
|
{
|
||||||
auto& srcloc = m_worker.GetSourceLocation( v );
|
auto& srcloc = m_worker.GetSourceLocation( v );
|
||||||
auto& zones = m_worker.GetZonesForSourceLocation( v ).zones;
|
auto& zones = m_worker.GetZonesForSourceLocation( v ).zones;
|
||||||
|
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::PushID( idx );
|
ImGui::PushID( idx );
|
||||||
|
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||||
ImGui::RadioButton( m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ), &m_findZone.selMatch, idx++ );
|
ImGui::RadioButton( m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ), &m_findZone.selMatch, idx++ );
|
||||||
|
ImGui::PopStyleVar();
|
||||||
if( m_findZoneBuzzAnim.Match( idx ) )
|
if( m_findZoneBuzzAnim.Match( idx ) )
|
||||||
{
|
{
|
||||||
const auto time = m_findZoneBuzzAnim.Time();
|
const auto time = m_findZoneBuzzAnim.Time();
|
||||||
|
Loading…
Reference in New Issue
Block a user