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;
|
||||
}
|
||||
|
||||
private Point GetPromptPoint()
|
||||
{
|
||||
Point p = new Point(MemoryViewerBox.Location.X + 30, MemoryViewerBox.Location.Y + 30);
|
||||
return PointToScreen(p);
|
||||
}
|
||||
|
||||
public void GoToSpecifiedAddress()
|
||||
{
|
||||
InputPrompt i = new InputPrompt {Text = "Go to Address"};
|
||||
i._Location = GetPromptPoint();
|
||||
i.SetMessage("Enter a hexadecimal value");
|
||||
Global.Sound.StopSound();
|
||||
i.ShowDialog();
|
||||
|
|
|
@ -766,6 +766,7 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
WatchListView.SelectedIndices.Clear();
|
||||
InputPrompt i = new InputPrompt { Text = "Go to Address" };
|
||||
i._Location = GetPromptPoint();
|
||||
i.SetMessage("Enter a hexadecimal value");
|
||||
Global.Sound.StopSound();
|
||||
i.ShowDialog();
|
||||
|
|
Loading…
Reference in New Issue