From 35c147136f68f0d900086cb5011f7ebe5c8c06bb Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 25 Sep 2014 17:24:17 +0000 Subject: [PATCH] InputRoll - tinkering with the VisibleRows calculation, I think this gives more pleasant results --- .../tools/TAStudio/InputRoll.cs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index f497fbf6e1..c283a5f659 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -481,7 +481,7 @@ namespace BizHawk.Client.EmuHawk return (int)((width - ColumnWidth) / CellWidth); } - var height = DrawHeight - (NeedsHScrollbar ? HBar.Height : 0); + var height = DrawHeight - (NeedsHScrollbar ? HBar.Height : (CellHeight -1)); return ((int)height / CellHeight) - 1; // adelikat: -1 to compensate for what this math should be doing anyway, TODO: figure out why it doesn't work without it? } @@ -700,6 +700,19 @@ namespace BizHawk.Client.EmuHawk } } + // Emphasis + foreach (var column in Columns.Where(c => c.Emphasis)) + { + if (HorizontalOrientation) + { + + } + else + { + + } + } + // If the user is hovering over a column if (IsHoveringOnColumnCell) { @@ -1741,6 +1754,11 @@ namespace BizHawk.Client.EmuHawk public string Name { get; set; } public string Text { get; set; } public InputType Type { get; set; } + + /// + /// Column will be drawn with an emphasized look, if true + /// + public bool Emphasis { get; set; } } ///