mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add time-relative switch to message list in zone info window.
This commit is contained in:
parent
3e47fd6bcd
commit
ade01e98ad
@ -6117,6 +6117,8 @@ void View::DrawZoneInfoWindow()
|
||||
ImGui::TextDisabled( "(%s)", RealToString( dist, true ) );
|
||||
if( expand )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
SmallCheckbox( "Time relative to zone start", &m_messageTimeRelativeToZone );
|
||||
static bool widthSet = false;
|
||||
ImGui::Columns( 2 );
|
||||
if( !widthSet )
|
||||
@ -6134,7 +6136,7 @@ void View::DrawZoneInfoWindow()
|
||||
do
|
||||
{
|
||||
ImGui::PushID( *msgit );
|
||||
if( ImGui::Selectable( TimeToString( (*msgit)->time - ev.Start() ), m_msgHighlight == *msgit, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
if( ImGui::Selectable( TimeToString( m_messageTimeRelativeToZone ? (*msgit)->time - ev.Start() : (*msgit)->time ), m_msgHighlight == *msgit, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
CenterAtTime( (*msgit)->time );
|
||||
}
|
||||
|
@ -346,6 +346,7 @@ private:
|
||||
bool m_groupChildrenLocations = false;
|
||||
bool m_allocTimeRelativeToZone = true;
|
||||
bool m_ctxSwitchTimeRelativeToZone = true;
|
||||
bool m_messageTimeRelativeToZone = true;
|
||||
|
||||
ShortcutAction m_shortcut = ShortcutAction::None;
|
||||
Namespace m_namespace = Namespace::Short;
|
||||
|
Loading…
Reference in New Issue
Block a user