From 60555db3cc6108f7f3404663e3152e7802f1c0c6 Mon Sep 17 00:00:00 2001 From: feos Date: Wed, 23 Sep 2015 20:03:26 +0300 Subject: [PATCH] tastudio: ColorZone for branches too. --- .../tools/TAStudio/BookmarksBranchesBox.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index 96532c6a92..6fb5602b77 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -98,8 +98,21 @@ namespace BizHawk.Client.EmuHawk private void QueryItemBkColor(int index, InputRoll.RollColumn column, ref Color color) { + var record = Tastudio.CurrentTasMovie[GetBranch(index).Frame]; + if (index == CurrentBranch) - color = TAStudio.CurrentFrame_InputLog; // SystemColors.HotTrack; + color = TAStudio.CurrentFrame_InputLog; // SystemColors.HotTrack; + else if (record.Lagged.HasValue) + { + if (record.Lagged.Value) + { + color = TAStudio.LagZone_InputLog; + } + else + { + color = TAStudio.GreenZone_InputLog; + } + } // Highlight the branch cell a little, if hovering over it if (BranchView.CurrentCellIsDataCell &&