NES PPU Viewer - implement Always on Top and Floating Window and refactor

This commit is contained in:
adelikat 2014-01-31 22:58:41 +00:00
parent 284eca0545
commit d87978087d
7 changed files with 1357 additions and 1276 deletions

View File

@ -118,7 +118,7 @@ namespace BizHawk.Client.Common
public bool DisplayFPS = false; public bool DisplayFPS = false;
public int DispFPSx = 0; public int DispFPSx = 0;
public int DispFPSy = 0; public int DispFPSy = 0;
public int DispFPSanchor = 0; //0 = UL, 1 = UR, 2 = DL, 3 = DR public int DispFPSanchor = 0; // 0 = UL, 1 = UR, 2 = DL, 3 = DR
public bool DisplayFrameCounter = false; public bool DisplayFrameCounter = false;
public int DispFrameCx = 0; public int DispFrameCx = 0;
public int DispFrameCy = 14; public int DispFrameCy = 14;
@ -344,10 +344,8 @@ namespace BizHawk.Client.Common
#endregion #endregion
// NESPPU Settings // NESPPU Settings
public ToolDialogSettings NesPPUSettings = new ToolDialogSettings();
public bool AutoLoadNESPPU = false; public bool AutoLoadNESPPU = false;
public bool NESPPUSaveWindowPosition = true;
public int NESPPUWndx = -1;
public int NESPPUWndy = -1;
public int NESPPURefreshRate = 4; public int NESPPURefreshRate = 4;
// NESDebuger Settings // NESDebuger Settings

View File

@ -1195,7 +1195,7 @@ namespace BizHawk.Client.EmuHawk
private void NESPPUViewerMenuItem_Click(object sender, EventArgs e) private void NESPPUViewerMenuItem_Click(object sender, EventArgs e)
{ {
GlobalWin.Tools.Load<NESPPU>(); GlobalWin.Tools.Load<NesPPU>();
} }
private void NESNametableViewerMenuItem_Click(object sender, EventArgs e) private void NESNametableViewerMenuItem_Click(object sender, EventArgs e)

View File

@ -298,7 +298,7 @@ namespace BizHawk.Client.EmuHawk
if (Global.Config.AutoLoadNESPPU && Global.Emulator is NES) if (Global.Config.AutoLoadNESPPU && Global.Emulator is NES)
{ {
GlobalWin.Tools.Load<NESPPU>(); GlobalWin.Tools.Load<NesPPU>();
} }
if (Global.Config.AutoLoadNESNameTable && Global.Emulator is NES) if (Global.Config.AutoLoadNESNameTable && Global.Emulator is NES)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -126,13 +126,13 @@
<metadata name="SpriteContext.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="SpriteContext.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>475, 17</value> <value>475, 17</value>
</metadata> </metadata>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="NesPPUMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>116, 17</value> <value>116, 17</value>
</metadata> </metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="NesPPUStatusBar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>594, 17</value> <value>594, 17</value>
</metadata> </metadata>
<metadata name="messagetimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="Messagetimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>704, 17</value> <value>704, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

View File

@ -140,7 +140,7 @@ namespace BizHawk.Client.EmuHawk
private void NesPPUToolbarItem_Click(object sender, EventArgs e) private void NesPPUToolbarItem_Click(object sender, EventArgs e)
{ {
GlobalWin.Tools.Load<NESPPU>(); GlobalWin.Tools.Load<NesPPU>();
} }
private void NesDebuggerToolbarItem_Click(object sender, EventArgs e) private void NesDebuggerToolbarItem_Click(object sender, EventArgs e)