mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
add clipboard button for user text in ZoneInfo
This commit is contained in:
parent
9074461ffb
commit
e5482580cd
@ -447,7 +447,14 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
if( m_worker.HasZoneExtra( ev ) && m_worker.GetZoneExtra( ev ).text.Active() )
|
if( m_worker.HasZoneExtra( ev ) && m_worker.GetZoneExtra( ev ).text.Active() )
|
||||||
{
|
{
|
||||||
TextFocused( "User text:", m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
|
TextDisabledUnformatted( "User text:" );
|
||||||
|
ImGui::SameLine();
|
||||||
|
if( ClipboardButton( 4 ) )
|
||||||
|
{
|
||||||
|
ImGui::SetClipboardText( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextUnformatted( m_worker.GetString( m_worker.GetZoneExtra( ev ).text ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user