mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Don't use obsolete ImGui functionality.
This commit is contained in:
parent
6ff9869120
commit
20905406da
@ -952,7 +952,7 @@ static void DrawContents()
|
|||||||
{
|
{
|
||||||
memcpy( addr, str.c_str(), str.size() + 1 );
|
memcpy( addr, str.c_str(), str.size() + 1 );
|
||||||
}
|
}
|
||||||
if( ImGui::IsItemHovered() && ImGui::IsKeyPressed( ImGui::GetKeyIndex( ImGuiKey_Delete ), false ) )
|
if( ImGui::IsItemHovered() && ImGui::IsKeyPressed( ImGuiKey_Delete, false ) )
|
||||||
{
|
{
|
||||||
idxRemove = (int)i;
|
idxRemove = (int)i;
|
||||||
}
|
}
|
||||||
|
@ -1084,7 +1084,7 @@ bool View::DrawImpl()
|
|||||||
DrawFrames();
|
DrawFrames();
|
||||||
|
|
||||||
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
|
const auto dockspaceId = ImGui::GetID( "tracyDockspace" );
|
||||||
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingInCentralNode );
|
ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ), ImGuiDockNodeFlags_NoDockingOverCentralNode );
|
||||||
if( ImGuiDockNode* node = ImGui::DockBuilderGetCentralNode( dockspaceId ) )
|
if( ImGuiDockNode* node = ImGui::DockBuilderGetCentralNode( dockspaceId ) )
|
||||||
{
|
{
|
||||||
node->LocalFlags |= ImGuiDockNodeFlags_NoTabBar;
|
node->LocalFlags |= ImGuiDockNodeFlags_NoTabBar;
|
||||||
|
@ -247,7 +247,7 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx
|
|||||||
const auto text = m_worker.GetString( msg.ref );
|
const auto text = m_worker.GetString( msg.ref );
|
||||||
const auto tid = m_worker.DecompressThread( msg.thread );
|
const auto tid = m_worker.DecompressThread( msg.thread );
|
||||||
ImGui::PushID( &msg );
|
ImGui::PushID( &msg );
|
||||||
if( ImGui::Selectable( TimeToStringExact( msg.time ), m_msgHighlight == &msg, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap ) )
|
if( ImGui::Selectable( TimeToStringExact( msg.time ), m_msgHighlight == &msg, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap ) )
|
||||||
{
|
{
|
||||||
CenterAtTime( msg.time );
|
CenterAtTime( msg.time );
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ void View::DrawPlayback()
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
changed |= ImGui::SliderInt( "Frame image", &tmp, 1, ficnt, "%d" );
|
changed |= ImGui::SliderInt( "Frame image", &tmp, 1, ficnt, "%d" );
|
||||||
ImGui::SetItemUsingMouseWheel();
|
ImGui::SetItemKeyOwner( ImGuiKey_MouseWheelY );
|
||||||
if( wheel && ImGui::IsItemHovered() )
|
if( wheel && ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( ImGui::IsItemActive() )
|
if( ImGui::IsItemActive() )
|
||||||
|
Loading…
Reference in New Issue
Block a user