shots factory: F1 for frame advance while in shots factory
This commit is contained in:
parent
ce5d47bbfc
commit
87b3426d3b
|
@ -76,110 +76,117 @@ static int SFactdExit()
|
|||
|
||||
static INT_PTR CALLBACK DialogProc(HWND hDlg,UINT Msg,WPARAM wParam,LPARAM lParam)
|
||||
{
|
||||
(void)lParam; (void)wParam; (void)hDlg;
|
||||
(void)lParam; (void)wParam; (void)hDlg;
|
||||
|
||||
if (Msg==WM_INITDIALOG)
|
||||
{
|
||||
hSFactdlg=hDlg;
|
||||
SFactdInit();
|
||||
SFactdUpdate();
|
||||
WndInMid(hDlg, hScrnWnd);
|
||||
SetFocus(hDlg); // Enable Esc=close
|
||||
return 0;
|
||||
}
|
||||
if (Msg==WM_CLOSE)
|
||||
{
|
||||
//DestroyWindow(hSFactdlg);
|
||||
EndDialog(hDlg, 0);
|
||||
return 0;
|
||||
}
|
||||
if (Msg==WM_DESTROY) { SFactdExit(); return 0; }
|
||||
if (Msg==WM_INITDIALOG)
|
||||
{
|
||||
hSFactdlg=hDlg;
|
||||
SFactdInit();
|
||||
SFactdUpdate();
|
||||
WndInMid(hDlg, hScrnWnd);
|
||||
SetFocus(hDlg); // Enable Esc=close
|
||||
return 0;
|
||||
}
|
||||
if (Msg==WM_CLOSE)
|
||||
{
|
||||
//DestroyWindow(hSFactdlg);
|
||||
EndDialog(hDlg, 0);
|
||||
return 0;
|
||||
}
|
||||
if (Msg==WM_DESTROY) { SFactdExit(); return 0; }
|
||||
|
||||
if (Msg==WM_COMMAND)
|
||||
{
|
||||
int Id=LOWORD(wParam); int Notify=HIWORD(wParam);
|
||||
if (Id==IDOK && Notify==BN_CLICKED) { SendMessage(hDlg,WM_CLOSE,0,0); return 0; } // cancel=close
|
||||
if (Id==IDCANCEL && Notify==BN_CLICKED) { SendMessage(hDlg, WM_CLOSE, 0, 0); return 0; } // esc=cancel
|
||||
|
||||
if (Id==IDCAPTURE && Notify==BN_CLICKED)
|
||||
{
|
||||
if (bDrvOkay)
|
||||
{
|
||||
MakeScreenShot();
|
||||
SFactdUpdate();
|
||||
}
|
||||
}
|
||||
if (Id==IDC_LAYER1 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(1);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_LAYER2 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(2);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_LAYER3 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(4);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_LAYER4 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(8);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE1 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x01);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE2 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x02);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE3 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x04);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE4 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x08);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE5 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x10);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE6 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x20);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE7 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x40);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE8 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x80);
|
||||
SFactdUpdate();
|
||||
}
|
||||
|
||||
if (Id==IDC_ADVANCE && Notify==BN_CLICKED)
|
||||
{
|
||||
if (Msg==WM_HELP) { // F1 frame advance (F1 == WM_HELP in a dialog box)
|
||||
VidFrame();
|
||||
VidPaint(0);
|
||||
}
|
||||
|
||||
if (Msg==WM_COMMAND)
|
||||
{
|
||||
int Id=LOWORD(wParam); int Notify=HIWORD(wParam);
|
||||
if (Id==IDOK && Notify==BN_CLICKED) { SendMessage(hDlg,WM_CLOSE,0,0); return 0; } // cancel=close
|
||||
if (Id==IDCANCEL && Notify==BN_CLICKED) { SendMessage(hDlg, WM_CLOSE, 0, 0); return 0; } // esc=cancel
|
||||
|
||||
if (Id==IDCAPTURE && Notify==BN_CLICKED)
|
||||
{
|
||||
if (bDrvOkay)
|
||||
{
|
||||
MakeScreenShot();
|
||||
SFactdUpdate();
|
||||
}
|
||||
}
|
||||
if (bRunPause) {
|
||||
memset(nAudNextSound, 0, nAudSegLen << 2); // Write silence into the buffer
|
||||
if (Id==IDC_LAYER1 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(1);
|
||||
SFactdUpdate();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
if (Id==IDC_LAYER2 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(2);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_LAYER3 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(4);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_LAYER4 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleLayer(8);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE1 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x01);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE2 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x02);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE3 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x04);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE4 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x08);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE5 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x10);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE6 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x20);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE7 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x40);
|
||||
SFactdUpdate();
|
||||
}
|
||||
if (Id==IDC_SPRITE8 && Notify==BN_CLICKED)
|
||||
{
|
||||
ToggleSprite(0x80);
|
||||
SFactdUpdate();
|
||||
}
|
||||
|
||||
if (Id==IDC_ADVANCE && Notify==BN_CLICKED)
|
||||
{
|
||||
VidFrame();
|
||||
VidPaint(0);
|
||||
}
|
||||
}
|
||||
|
||||
if (bRunPause) {
|
||||
memset(nAudNextSound, 0, nAudSegLen << 2); // Write silence into the buffer
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -193,11 +200,11 @@ int SFactdCreate()
|
|||
bOldPause = bRunPause;
|
||||
bRunPause = 1;
|
||||
AudBlankSound();
|
||||
// hSFactdlg=FBACreateDialog(hAppInst,MAKEINTRESOURCE(IDD_CAPTURE),hScrnWnd,DialogProc);
|
||||
// if (hSFactdlg==NULL) return 1;
|
||||
// WndInMid(hSFactdlg,hScrnWnd);
|
||||
// ShowWindow(hSFactdlg,SW_NORMAL);
|
||||
// SFactdUpdate();
|
||||
// hSFactdlg=FBACreateDialog(hAppInst,MAKEINTRESOURCE(IDD_CAPTURE),hScrnWnd,DialogProc);
|
||||
// if (hSFactdlg==NULL) return 1;
|
||||
// WndInMid(hSFactdlg,hScrnWnd);
|
||||
// ShowWindow(hSFactdlg,SW_NORMAL);
|
||||
// SFactdUpdate();
|
||||
FBADialogBox(hAppInst, MAKEINTRESOURCE(IDD_CAPTURE), hScrnWnd, (DLGPROC)DialogProc);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue