summaryrefslogtreecommitdiff
path: root/setup/mainmenu.c
diff options
context:
space:
mode:
authorSimon Howard2006-09-26 23:50:06 +0000
committerSimon Howard2006-09-26 23:50:06 +0000
commite6028047cd51a6d14d4e30b0aae733f51a810f86 (patch)
tree68872a64879dbc8b62cd7c257a3d1b2726fb27e1 /setup/mainmenu.c
parentbfe085adcf3d8b978441ed977e52510bf3c8463f (diff)
downloadchocolate-doom-e6028047cd51a6d14d4e30b0aae733f51a810f86.tar.gz
chocolate-doom-e6028047cd51a6d14d4e30b0aae733f51a810f86.tar.bz2
chocolate-doom-e6028047cd51a6d14d4e30b0aae733f51a810f86.zip
Add "join game" dialog.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 675
Diffstat (limited to 'setup/mainmenu.c')
-rw-r--r--setup/mainmenu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup/mainmenu.c b/setup/mainmenu.c
index 853bba56..f5351214 100644
--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -71,6 +71,7 @@ extern void ConfigMouse();
extern void ConfigSound();
extern void CompatibilitySettings();
extern void StartMultiGame();
+extern void JoinMultiGame();
extern void MultiplayerConfig();
void MainMenu(void)
@@ -108,7 +109,9 @@ void MainMenu(void)
TXT_SignalConnect(button, "pressed", StartMultiGame, NULL);
TXT_AddWidget(window, button);
- TXT_AddWidget(window, TXT_NewButton("Join a Network game"));
+ button = TXT_NewButton("Join a Network game");
+ TXT_SignalConnect(button, "pressed", JoinMultiGame, NULL);
+ TXT_AddWidget(window, button);
button = TXT_NewButton("Multiplayer configuration");
TXT_SignalConnect(button, "pressed", MultiplayerConfig, NULL);