Fix pop up location with the "Go To Address" feature in Hex Editor and Ram Search
This commit is contained in:
parent
efc1a3550f
commit
012fb6d464
|
@ -523,9 +523,16 @@ namespace BizHawk.MultiClient
|
||||||
else return 8;
|
else return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Point GetPromptPoint()
|
||||||
|
{
|
||||||
|
Point p = new Point(MemoryViewerBox.Location.X + 30, MemoryViewerBox.Location.Y + 30);
|
||||||
|
return PointToScreen(p);
|
||||||
|
}
|
||||||
|
|
||||||
public void GoToSpecifiedAddress()
|
public void GoToSpecifiedAddress()
|
||||||
{
|
{
|
||||||
InputPrompt i = new InputPrompt {Text = "Go to Address"};
|
InputPrompt i = new InputPrompt {Text = "Go to Address"};
|
||||||
|
i._Location = GetPromptPoint();
|
||||||
i.SetMessage("Enter a hexadecimal value");
|
i.SetMessage("Enter a hexadecimal value");
|
||||||
Global.Sound.StopSound();
|
Global.Sound.StopSound();
|
||||||
i.ShowDialog();
|
i.ShowDialog();
|
||||||
|
|
|
@ -766,6 +766,7 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
WatchListView.SelectedIndices.Clear();
|
WatchListView.SelectedIndices.Clear();
|
||||||
InputPrompt i = new InputPrompt { Text = "Go to Address" };
|
InputPrompt i = new InputPrompt { Text = "Go to Address" };
|
||||||
|
i._Location = GetPromptPoint();
|
||||||
i.SetMessage("Enter a hexadecimal value");
|
i.SetMessage("Enter a hexadecimal value");
|
||||||
Global.Sound.StopSound();
|
Global.Sound.StopSound();
|
||||||
i.ShowDialog();
|
i.ShowDialog();
|
||||||
|
|
Loading…
Reference in New Issue