tastudio: show user text instead of timestamp in branchview

allows using as instantly visible branch names
fix #646
This commit is contained in:
feos 2016-07-09 15:22:25 +03:00
parent 20c6f99c24
commit 7c868e5996
1 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ namespace BizHawk.Client.EmuHawk
{
private const string BranchNumberColumnName = "BranchNumberColumn";
private const string FrameColumnName = "FrameColumn";
private const string TimeColumnName = "TimeColumn";
private const string UserTextColumnName = "TextColumn";
private readonly PlatformFrameRates FrameRates = new PlatformFrameRates();
private TasMovie Movie { get { return Tastudio.CurrentTasMovie; } }
@ -54,8 +54,8 @@ namespace BizHawk.Client.EmuHawk
},
new InputRoll.RollColumn
{
Name = TimeColumnName,
Text = "TimeStamp",
Name = UserTextColumnName,
Text = "UserText",
Width = 90
},
});
@ -81,8 +81,9 @@ namespace BizHawk.Client.EmuHawk
case FrameColumnName:
text = GetBranch(index).Frame.ToString();
break;
case TimeColumnName:
text = GetBranch(index).TimeStamp.ToString(@"hh\:mm\:ss\.ff");
case UserTextColumnName:
//text = GetBranch(index).TimeStamp.ToString(@"hh\:mm\:ss\.ff");
text = GetBranch(index).UserText;
break;
}
}