TAStudio: Fixed double middle/right click creating new marker. Fixed selected row not displaying properly.
This commit is contained in:
parent
9534384e3d
commit
8edbc8bfe1
|
@ -791,10 +791,21 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
foreach(var cell in SelectedItems)
|
foreach(var cell in SelectedItems)
|
||||||
{
|
{
|
||||||
DrawCellBG(SystemColors.Highlight, cell);
|
var relativeCell = new Cell()
|
||||||
|
{
|
||||||
|
RowIndex = cell.RowIndex - FirstVisibleRow,
|
||||||
|
Column = cell.Column,
|
||||||
|
CurrentText = cell.CurrentText
|
||||||
|
};
|
||||||
|
DrawCellBG(SystemColors.Highlight, relativeCell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Given a cell with rowindex inbetween 0 and VisibleRows, it draws the background color specified. Do not call with absolute rowindices.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="color"></param>
|
||||||
|
/// <param name="cell"></param>
|
||||||
private void DrawCellBG(Color color, Cell cell)
|
private void DrawCellBG(Color color, Cell cell)
|
||||||
{
|
{
|
||||||
int x = 0,
|
int x = 0,
|
||||||
|
@ -818,6 +829,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
h = CellHeight - 1;
|
h = CellHeight - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (x > DrawWidth || y > DrawHeight) { return; }//Don't d
|
||||||
|
|
||||||
Gdi.SetBrush(color);
|
Gdi.SetBrush(color);
|
||||||
Gdi.FillRectangle(x, y, w, h);
|
Gdi.FillRectangle(x, y, w, h);
|
||||||
}
|
}
|
||||||
|
@ -896,7 +909,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
protected override void OnKeyDown(KeyEventArgs e)
|
protected override void OnKeyDown(KeyEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Control && !e.Alt && !e.Shift && e.KeyCode == Keys.R) // Ctrl + R
|
if (e.Control && !e.Alt && e.Shift && e.KeyCode == Keys.R) // Ctrl + Shift + R
|
||||||
{
|
{
|
||||||
HorizontalOrientation ^= true;
|
HorizontalOrientation ^= true;
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
|
@ -277,7 +277,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (TasView.CurrentCell.RowIndex.HasValue &&
|
if (TasView.CurrentCell.RowIndex.HasValue &&
|
||||||
TasView.CurrentCell != null &&
|
TasView.CurrentCell != null &&
|
||||||
TasView.CurrentCell.Column.Name == FrameColumnName)
|
TasView.CurrentCell.Column.Name == FrameColumnName &&
|
||||||
|
e.Button == MouseButtons.Left)
|
||||||
{
|
{
|
||||||
CallAddMarkerPopUp(TasView.CurrentCell.RowIndex.Value);
|
CallAddMarkerPopUp(TasView.CurrentCell.RowIndex.Value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue