add button to open StepMania.ini

This commit is contained in:
Chris Danford
2005-09-28 17:51:16 +00:00
parent acf8ca0104
commit 6698a2ba91
5 changed files with 60 additions and 49 deletions
+7
View File
@@ -45,6 +45,7 @@ BEGIN_MESSAGE_MAP(MainMenuDlg, CDialog)
ON_BN_CLICKED(IDC_ANALYZE_ELEMENTS, OnAnalyzeElements)
ON_BN_CLICKED(IDC_CHANGE_API, OnChangeApi)
ON_BN_CLICKED(IDC_CREATE_SONG, OnCreateSong)
ON_BN_CLICKED(IDC_OPEN_STEPMANIA_INI, OnOpenStepmaniaIni)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
@@ -174,3 +175,9 @@ BOOL MainMenuDlg::OnInitDialog()
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void MainMenuDlg::OnOpenStepmaniaIni()
{
// TODO: Add your control notification handler code here
::ShellExecute( this->m_hWnd, "open", "Data\\StepMania.ini", "", "", SW_SHOWNORMAL );
}
+1
View File
@@ -41,6 +41,7 @@ protected:
afx_msg void OnChangeApi();
afx_msg void OnCreateSong();
virtual BOOL OnInitDialog();
afx_msg void OnOpenStepmaniaIni();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
+1
View File
@@ -49,6 +49,7 @@
#define IDC_BUTTON_EDIT_METRICS 1026
#define IDC_CREATE_SONG 1026
#define IDC_BUTTON_ANALYZE_METRICS 1027
#define IDC_OPEN_STEPMANIA_INI 1027
#define IDC_EDIT_VALUE 1028
#define IDC_EDIT_DEFAULT 1029
#define IDC_BUTTON_REFRESH 1035
+27 -26
View File
@@ -16,23 +16,23 @@ Resource1=IDR_MAINFRAME
Resource2=IDD_ENTER_STRING
Class3=CSMPackageInstallDlg
Class4=CSmpackageExportDlg
Resource3=IDD_UNINSTALL_OLD_PACKAGES
Resource3=IDD_EDIT_METRICS
Class5=EnterName
Resource4=IDD_INSTALL
Resource4=IDD_EDIT_INSTALLATIONS
Class6=EditInsallations
Resource5=IDD_EXPORTER
Resource5=IDD_SHOW_COMMENT
Class7=MainMenuDlg
Resource6=IDD_EDIT_METRICS
Resource6=IDD_DIALOG_NAME
Class8=ConvertThemeDlg
Resource7=IDD_CHANGE_GAME_SETTINGS
Resource7=IDD_UNINSTALL_OLD_PACKAGES
Class9=EditMetricsDlg
Resource8=IDD_DIALOG_NAME
Resource9=IDD_SHOW_COMMENT
Resource8=IDD_EXPORTER
Resource9=IDD_CONVERT_THEME
Class10=EnterComment
Resource10=IDD_CONVERT_THEME
Resource10=IDD_ENTER_COMMENT
Class11=ShowComment
Resource11=IDD_ENTER_COMMENT
Resource12=IDD_EDIT_INSTALLATIONS
Resource11=IDD_INSTALL
Resource12=IDD_CHANGE_GAME_SETTINGS
Class12=ChangeGameSettings
Resource13=IDD_MENU
@@ -140,26 +140,27 @@ LastObject=EditInsallations
[DLG:IDD_MENU]
Type=1
Class=MainMenuDlg
ControlCount=19
ControlCount=20
Control1=IDOK,button,1342242817
Control2=IDC_STATIC,static,1342177294
Control3=IDC_EXPORT_PACKAGES,button,1342242816
Control4=IDC_STATIC,static,1342308352
Control3=IDC_STATIC,static,1342308354
Control4=IDC_EDIT_INSTALLATION,edit,1350633600
Control5=IDC_STATIC,button,1342177287
Control6=IDC_STATIC,button,1342177287
Control7=IDC_ANALYZE_ELEMENTS,button,1342242816
Control8=IDC_EDIT_INSTALLATIONS,button,1342242816
Control9=IDC_STATIC,static,1342308352
Control10=IDC_STATIC,button,1342177287
Control11=IDC_STATIC,static,1342308352
Control12=IDC_STATIC,button,1342177287
Control13=IDC_CHANGE_API,button,1342242816
Control14=IDC_STATIC,static,1342308352
Control15=IDC_STATIC,button,1342177287
Control16=IDC_CREATE_SONG,button,1342242816
Control6=IDC_EDIT_INSTALLATIONS,button,1342242816
Control7=IDC_STATIC,static,1342308352
Control8=IDC_STATIC,button,1342177287
Control9=IDC_EXPORT_PACKAGES,button,1342242816
Control10=IDC_STATIC,static,1342308352
Control11=IDC_STATIC,button,1342177287
Control12=IDC_ANALYZE_ELEMENTS,button,1342242816
Control13=IDC_STATIC,static,1342308352
Control14=IDC_STATIC,button,1342177287
Control15=IDC_CHANGE_API,button,1342242816
Control16=IDC_OPEN_STEPMANIA_INI,button,1342242816
Control17=IDC_STATIC,static,1342308352
Control18=IDC_STATIC,static,1342308354
Control19=IDC_EDIT_INSTALLATION,edit,1350633600
Control18=IDC_STATIC,button,1342177287
Control19=IDC_CREATE_SONG,button,1342242816
Control20=IDC_STATIC,static,1342308352
[CLS:MainMenuDlg]
Type=0
+24 -23
View File
@@ -155,37 +155,38 @@ BEGIN
IDC_STATIC,18,144,196,17
END
IDD_MENU DIALOGEX 0, 0, 332, 334
IDD_MENU DIALOGEX 0, 0, 332, 317
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "StepMania Tools Main Menu"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "Exit",IDOK,275,313,50,14
DEFPUSHBUTTON "Exit",IDOK,275,296,50,14
CONTROL 140,IDC_STATIC,"Static",SS_BITMAP,0,0,332,38
PUSHBUTTON "Export Packages",IDC_EXPORT_PACKAGES,20,130,70,15
LTEXT "Choose this option to create .smzip files that you can share with other StepMania and DWI users. A .smzip package can contain songs, courses, themes, background animations, and more.",
IDC_STATIC,105,125,215,25
GROUPBOX ".smzip Packages",IDC_STATIC,7,110,318,50
GROUPBOX "Themes",IDC_STATIC,7,165,318,44
PUSHBUTTON "Theme Tools",IDC_ANALYZE_ELEMENTS,20,183,70,15
PUSHBUTTON "Edit Installations",IDC_EDIT_INSTALLATIONS,20,75,70,15
LTEXT "Choose this option to edit the list of locations where you have StepMania or DWI installed. When you double-click on a .smzip file, you can choose to install the package to any of these locations.",
IDC_STATIC,105,70,215,25
GROUPBOX "Installations",IDC_STATIC,7,55,318,50
LTEXT "Using this feature, you can:\n - Catch redundant and misnamed theme elements\n - Edit theme metrics using a user-friendly interface",
IDC_STATIC,103,178,215,26
GROUPBOX "Game Settings",IDC_STATIC,6,214,320,49
PUSHBUTTON "Change Settings",IDC_CHANGE_API,20,233,70,15
LTEXT "Using this feature, you can:\n - Change the graphics API that StepMania will use.\n - Change the sound API that StepMania will use.",
IDC_STATIC,104,227,215,29
GROUPBOX "Songs",IDC_STATIC,6,267,320,38
PUSHBUTTON "Create Song",IDC_CREATE_SONG,20,282,70,15
LTEXT "Choose this option to create a new song in StepMania from your favorite mp3 or ogg music file.",
IDC_STATIC,104,281,215,23
RTEXT "Installation:",IDC_STATIC,37,42,63,9,0,
WS_EX_TRANSPARENT
EDITTEXT IDC_EDIT_INSTALLATION,105,40,220,12,ES_AUTOHSCROLL |
ES_READONLY
GROUPBOX "Installations",IDC_STATIC,7,55,318,42
PUSHBUTTON "Edit Installations",IDC_EDIT_INSTALLATIONS,20,72,70,15
LTEXT "Choose this option to edit the list of locations where you have StepMania or DWI installed. When you double-click on a .smzip file, you can choose to install the package to any of these locations.",
IDC_STATIC,105,67,215,25
GROUPBOX ".smzip Packages",IDC_STATIC,7,100,318,45
PUSHBUTTON "Export Packages",IDC_EXPORT_PACKAGES,19,118,70,15
LTEXT "Choose this option to create .smzip files that you can share with other StepMania and DWI users. A .smzip package can contain songs, courses, themes, background animations, and more.",
IDC_STATIC,105,113,215,25
GROUPBOX "Themes",IDC_STATIC,7,150,318,44
PUSHBUTTON "Theme Tools",IDC_ANALYZE_ELEMENTS,19,168,70,15
LTEXT "Using this feature, you can:\n - Catch redundant and misnamed theme elements\n - Edit theme metrics using a user-friendly interface",
IDC_STATIC,103,163,215,26
GROUPBOX "Game Settings",IDC_STATIC,5,199,320,49
PUSHBUTTON "Change Settings",IDC_CHANGE_API,19,210,70,15
PUSHBUTTON "Open StepMania.ini",IDC_OPEN_STEPMANIA_INI,19,228,70,15
LTEXT "Using this feature, you can:\n - Change the graphics API that StepMania will use.\n - Change the sound API that StepMania will use.",
IDC_STATIC,103,212,215,29
GROUPBOX "Songs",IDC_STATIC,5,252,320,38
PUSHBUTTON "Create Song",IDC_CREATE_SONG,19,267,70,15
LTEXT "Choose this option to create a new song in StepMania from your favorite mp3 or ogg music file.",
IDC_STATIC,103,266,215,23
END
IDD_CONVERT_THEME DIALOG DISCARDABLE 0, 0, 332, 258
@@ -397,7 +398,7 @@ BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 325
TOPMARGIN, 7
BOTTOMMARGIN, 327
BOTTOMMARGIN, 310
END
IDD_CONVERT_THEME, DIALOG