mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 14:03:52 +00:00
Add icons to memory menu.
This commit is contained in:
parent
441a5e257c
commit
816c91922e
@ -6374,18 +6374,30 @@ void View::DrawMemory()
|
|||||||
ImGui::InputText( "", m_memInfo.pattern, 1024 );
|
ImGui::InputText( "", m_memInfo.pattern, 1024 );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( ICON_FA_SEARCH " Find" ) )
|
||||||
|
#else
|
||||||
if( ImGui::Button( "Find" ) )
|
if( ImGui::Button( "Find" ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
m_memInfo.ptrFind = strtoull( m_memInfo.pattern, nullptr, 0 );
|
m_memInfo.ptrFind = strtoull( m_memInfo.pattern, nullptr, 0 );
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( ICON_FA_BAN " Clear" ) )
|
||||||
|
#else
|
||||||
if( ImGui::Button( "Clear" ) )
|
if( ImGui::Button( "Clear" ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
m_memInfo.ptrFind = 0;
|
m_memInfo.ptrFind = 0;
|
||||||
m_memInfo.pattern[0] = '\0';
|
m_memInfo.pattern[0] = '\0';
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
ImGui::Checkbox( ICON_FA_HISTORY " Restrict time", &m_memInfo.restrictTime );
|
||||||
|
#else
|
||||||
ImGui::Checkbox( "Restrict time", &m_memInfo.restrictTime );
|
ImGui::Checkbox( "Restrict time", &m_memInfo.restrictTime );
|
||||||
|
#endif
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(?)" );
|
ImGui::TextDisabled( "(?)" );
|
||||||
if( ImGui::IsItemHovered() )
|
if( ImGui::IsItemHovered() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user