ref: a16cb18b8457862602c6877dad2f729b7c5238dc
parent: fdd021c5650584421751a91b81a98ed6dbc9ef2f
author: Simon Howard <[email protected]>
date: Sun Mar 31 15:16:25 EDT 2013
Change WAD selectors in setup tool to file selection widgets. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2572
--- a/setup/multiplayer.c
+++ b/setup/multiplayer.c
@@ -101,6 +101,8 @@
"Deathmatch 2.0",
};
+static char *wad_extensions[] = { "wad", "lmp", "deh", NULL };
+
char *net_player_name;
char *chat_macros[10];
@@ -154,7 +156,7 @@
{
int have_wads = 0;
int i;
-
+
for (i=0; i<NUM_WADS; ++i)
{
if (wads[i] != NULL && strlen(wads[i]) > 0)
@@ -263,7 +265,7 @@
AddWADs(exec);
TXT_Shutdown();
-
+
M_SaveDefaults();
PassThroughArguments(exec);
@@ -568,7 +570,9 @@
for (i=0; i<NUM_WADS; ++i)
{
- TXT_AddWidget(window, TXT_NewInputBox(&wads[i], 60));
+ TXT_AddWidget(window,
+ TXT_NewFileSelector(&wads[i], 60, "Select a WAD file",
+ wad_extensions));
}
}