mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 09:44:35 +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 ) );
|
ImGui::TextDisabled( "(%s)", RealToString( dist, true ) );
|
||||||
if( expand )
|
if( expand )
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
SmallCheckbox( "Time relative to zone start", &m_messageTimeRelativeToZone );
|
||||||
static bool widthSet = false;
|
static bool widthSet = false;
|
||||||
ImGui::Columns( 2 );
|
ImGui::Columns( 2 );
|
||||||
if( !widthSet )
|
if( !widthSet )
|
||||||
@ -6134,7 +6136,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
ImGui::PushID( *msgit );
|
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 );
|
CenterAtTime( (*msgit)->time );
|
||||||
}
|
}
|
||||||
|
@ -346,6 +346,7 @@ private:
|
|||||||
bool m_groupChildrenLocations = false;
|
bool m_groupChildrenLocations = false;
|
||||||
bool m_allocTimeRelativeToZone = true;
|
bool m_allocTimeRelativeToZone = true;
|
||||||
bool m_ctxSwitchTimeRelativeToZone = true;
|
bool m_ctxSwitchTimeRelativeToZone = true;
|
||||||
|
bool m_messageTimeRelativeToZone = true;
|
||||||
|
|
||||||
ShortcutAction m_shortcut = ShortcutAction::None;
|
ShortcutAction m_shortcut = ShortcutAction::None;
|
||||||
Namespace m_namespace = Namespace::Short;
|
Namespace m_namespace = Namespace::Short;
|
||||||
|
Loading…
Reference in New Issue
Block a user