InputRoll - tinkering with the VisibleRows calculation, I think this gives more pleasant results

This commit is contained in:
adelikat 2014-09-25 17:24:17 +00:00
parent 4f35614aeb
commit 35c147136f
1 changed files with 19 additions and 1 deletions

View File

@ -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; }
/// <summary>
/// Column will be drawn with an emphasized look, if true
/// </summary>
public bool Emphasis { get; set; }
}
/// <summary>