From 816c91922e233d3913ddbc3da4c78936b86f23ca Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 17 Aug 2018 23:58:52 +0200 Subject: [PATCH] Add icons to memory menu. --- server/TracyView.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0b8c322b..cb0b89ab 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6374,18 +6374,30 @@ void View::DrawMemory() ImGui::InputText( "", m_memInfo.pattern, 1024 ); ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + if( ImGui::Button( ICON_FA_SEARCH " Find" ) ) +#else if( ImGui::Button( "Find" ) ) +#endif { m_memInfo.ptrFind = strtoull( m_memInfo.pattern, nullptr, 0 ); } ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + if( ImGui::Button( ICON_FA_BAN " Clear" ) ) +#else if( ImGui::Button( "Clear" ) ) +#endif { m_memInfo.ptrFind = 0; m_memInfo.pattern[0] = '\0'; } ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + ImGui::Checkbox( ICON_FA_HISTORY " Restrict time", &m_memInfo.restrictTime ); +#else ImGui::Checkbox( "Restrict time", &m_memInfo.restrictTime ); +#endif ImGui::SameLine(); ImGui::TextDisabled( "(?)" ); if( ImGui::IsItemHovered() )