Win32-TASedit minor changes, Help menu item to TASEdit + Hex Editor

This commit is contained in:
adelikat 2008-11-23 05:07:34 +00:00
parent b71b1679eb
commit 79abc27140
5 changed files with 46 additions and 13 deletions

View File

@ -1,4 +1,5 @@
---version 2.0.4 yet to be released---
22-nov-2008 - adelikat - win32 - added help menu item to TASEdit and Hex Editor, Minor TASEdit clean up
22-nov-2008 - adelikat - win32 - fixed so that turbo works with VBlank sync settings
21-nov-2008 - qfox - Lua - added joypad.write and joypad.get for naming consistency. Added plane display toggle for lua: FCEU.fceu_setrenderplanes(sprites, background) which accepts two boolean args and toggles the drawing of those planes from Lua. Changed movie.framecount() to always return a number, even when no movie is playing. Should return the same number as in view; the number of frames since last reset, if no movie is playing.
17-nov-2008 - adelikat - added Open Cheats hotkey (currently a windows only function)

View File

@ -34,7 +34,10 @@
#include "cheat.h"
#include <assert.h>
#include "main.h"
//#include "string.h"
#include "string.h"
#include "help.h"
using namespace std;
#define MODE_NES_MEMORY 0
#define MODE_NES_PPU 1
@ -54,6 +57,8 @@
#define ID_ADDRESS_FRZ_SEP 52
#define ID_ADDRESS_FRZ_UNFREEZE_ALL 53
string memviewhelp = "{06F7BBD5-399E-4CA0-8E4E-75BE0ACC525A}"; //Hex Editor Help Page
// This defines all of our right click popup menus
struct
{
@ -1456,6 +1461,10 @@ LRESULT CALLBACK MemViewCallB(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
UpdateColorTable();
return 0;
case MENU_MV_HELP:
OpenHelpWindow(memviewhelp);
return 0;
default:
if (wParam >= ID_FIRST_BOOKMARK && wParam <= ID_FIRST_BOOKMARK)
{

View File

@ -174,13 +174,13 @@ BEGIN
BEGIN
MENUITEM "&New Project\tCtrl+N", ID_FILE_NEWPROJECT
MENUITEM "&Open Project...\tCtrl+O", ID_FILE_OPENPROJECT
MENUITEM "&Save ProjectCtrl+S", ID_FILE_SAVEPROJECT
MENUITEM "&Save Project\tCtrl+S", ID_FILE_SAVEPROJECT
MENUITEM "Save Project As...\tCtrl+Shift+S", ID_FILE_SAVEPROJECTAS
MENUITEM SEPARATOR
MENUITEM "Import FM2", ID_FILE_IMPORTFM2
MENUITEM "Export to FM2", ID_FILE_EXPORTFM2
MENUITEM SEPARATOR
MENUITEM "Close\tCtrl+W", ID_TASEDIT_FILE_CLOSE
MENUITEM "Close\tAlt+F4", ID_TASEDIT_FILE_CLOSE
END
POPUP "Edit"
BEGIN
@ -242,6 +242,10 @@ BEGIN
MENUITEM "&Remove all bookmarks", MENU_MV_BOOKMARKS_RM_ALL
MENUITEM SEPARATOR
END
POPUP "Help"
BEGIN
MENUITEM "Help...", MENU_MV_HELP
END
END
MEMWATCHMENU MENU
@ -1176,10 +1180,10 @@ BEGIN
CONTROL "",IDC_LIST1,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_OWNERDATA | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,11,324,364
PUSHBUTTON "Truncate",IDC_HACKY1,338,46,51,16
LTEXT "Any number of these icon buttons are pressed",IDC_STATIC,395,84,47,34
PUSHBUTTON "<",IDC_BUTTON1,367,25,26,14
PUSHBUTTON ">",IDC_BUTTON2,391,25,26,14
PUSHBUTTON "<<",IDC_BUTTON3,341,25,26,14
PUSHBUTTON ">>",IDC_BUTTON4,417,25,26,14
PUSHBUTTON "<",TASEDIT_REWIND,367,25,26,14
PUSHBUTTON ">",TASEDIT_FOWARD,391,25,26,14
PUSHBUTTON "<<",TASEDIT_REWIND_FULL,341,25,26,14
PUSHBUTTON ">>",TASEDIT_FOWARD_FULL,417,25,26,14
GROUPBOX "Static",IDC_STATIC,335,11,120,176
GROUPBOX "Project Input Logs",IDC_STATIC,335,200,120,175
PUSHBUTTON "Record P1",IDC_BUTTON5,340,95,50,14

View File

@ -345,9 +345,13 @@
#define IDC_BUTTON_METADATA 1132
#define IDC_HACKYEXPORT 1133
#define IDC_BUTTON1 1133
#define TASEDIT_REWIND 1133
#define IDC_BUTTON2 1134
#define TASEDIT_FOWARD 1134
#define IDC_BUTTON3 1135
#define TASEDIT_REWIND_FULL 1135
#define IDC_BUTTON4 1136
#define TASEDIT_FOWARD_FULL 1136
#define IDC_RADIO1 1138
#define IDC_RADIO2 1139
#define IDC_RADIO3 1140
@ -555,6 +559,8 @@
#define ID_DISPLAY_FRAMECOUNTER 40254
#define ID_CONFIG_BINDSAVESTATESTOMOVIE 40255
#define MENU_CONFIG_BINDSAVES 40256
#define MEMVIEW_HELP 40257
#define MENU_MV_HELP 40258
#define IDC_DEBUGGER_ICONTRAY 55535
#define MW_ValueLabel2 65423
#define MW_ValueLabel1 65426
@ -564,7 +570,7 @@
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 124
#define _APS_NEXT_COMMAND_VALUE 40257
#define _APS_NEXT_COMMAND_VALUE 40259
#define _APS_NEXT_CONTROL_VALUE 1187
#define _APS_NEXT_SYMED_VALUE 101
#endif

View File

@ -11,6 +11,7 @@
#include "Win32InputBox.h"
#include "keyboard.h"
#include "joystick.h"
#include "help.h"
using namespace std;
@ -19,6 +20,8 @@ using namespace std;
int TasEdit_wndx, TasEdit_wndy;
string tasedithelp = "{16CDE0C4-02B0-4A60-A88D-076319909A4D}"; //Name of TASEdit Help page
HWND hwndTasEdit = 0;
static HMENU hmenu, hrmenu;
@ -708,7 +711,6 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
Export();
break;
case ACCEL_CTRL_W:
case ID_TASEDIT_FILE_CLOSE:
KillTasEdit();
break;
@ -717,17 +719,14 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
SelectAll();
break;
case ACCEL_CTRL_X:
case ID_TASEDIT_CUT:
Cut();
break;
case ACCEL_CTRL_C:
case ID_TASEDIT_COPY:
Copy();
break;
case ACCEL_CTRL_V:
case ID_TASEDIT_PASTE:
Paste();
break;
@ -771,6 +770,7 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
break;
case ID_HELP_TASEDITHELP:
OpenHelpWindow(tasedithelp);
//link to TASEdit in help menu
break;
@ -793,7 +793,20 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
DeleteFrames();
break;
case TASEDIT_FOWARD:
//advance 1 frame
break;
case TASEDIT_REWIND:
//rewinds 1 frame
break;
case TASEDIT_REWIND_FULL:
//rewinds to beginning of movie
break;
case TASEDIT_FOWARD_FULL:
//moves to the end of the move (or green zone?)
break;
}
break;