From e6fdac69234bd4660b28a913c3af2b216044eaaf Mon Sep 17 00:00:00 2001 From: feos Date: Wed, 29 Jul 2015 21:38:10 +0300 Subject: [PATCH] tastudio: current branch tweaks. - make bg color readable, and match the plaback cursor one - set last updated or added branch as current --- .../tools/TAStudio/BookmarksBranchesBox.Designer.cs | 2 +- BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.Designer.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.Designer.cs index 29c8519730..a6d65d57d9 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.Designer.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.Designer.cs @@ -52,7 +52,7 @@ this.BookmarksBranchesGroupBox.Size = new System.Drawing.Size(198, 249); this.BookmarksBranchesGroupBox.TabIndex = 0; this.BookmarksBranchesGroupBox.TabStop = false; - this.BookmarksBranchesGroupBox.Text = "Bookmarks / Branches"; + this.BookmarksBranchesGroupBox.Text = "Branches"; // // BranchView // diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index 0950e6d2f2..bd1e2a6e64 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -98,7 +98,7 @@ namespace BizHawk.Client.EmuHawk private void QueryItemBkColor(int index, InputRoll.RollColumn column, ref Color color) { if (index == CurrentBranch) - color = SystemColors.HotTrack; + color = TAStudio.CurrentFrame_InputLog; // SystemColors.HotTrack; // Highlight the branch cell a little, if hovering over it if (BranchView.CurrentCellIsDataCell && @@ -223,6 +223,7 @@ namespace BizHawk.Client.EmuHawk var branch = CreateBranch(); Branches.Add(branch); BranchView.RowCount = Branches.Count; + CurrentBranch = Branches.IndexOf(branch); BranchView.Refresh(); } @@ -312,6 +313,7 @@ namespace BizHawk.Client.EmuHawk Branches.Insert(index, newbranch); Branches.Remove(branch); + CurrentBranch = index; BranchView.Refresh(); } }