From a2f2112967f99b75f74e9e615d4062c16b681023 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Sat, 22 Jul 2023 00:31:46 +0200 Subject: [PATCH] Add Connection Option menu Menu for Changing queue time and downloadspeed --- src/m_menu.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 282d203a4..82f87be65 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -325,7 +325,6 @@ menu_t OP_ProtocolDef; menu_t OP_DiscordOptionsDef; #endif menu_t OP_HUDOptionsDef, OP_ChatOptionsDef; -menu_t OP_HudOffsetDef; menu_t OP_GameOptionsDef, OP_ServerOptionsDef; #ifndef NONET menu_t OP_AdvServerOptionsDef; @@ -341,6 +340,10 @@ static patch_t *addonsp[NUM_EXT+5]; static void M_DeleteProtocol(void); +// Saturn +menu_t OP_ConnectDef; +menu_t OP_HudOffsetDef; + // Bird menu_t OP_BirdDef; menu_t OP_TiltDef; @@ -1111,13 +1114,15 @@ static menuitem_t OP_MainMenu[] = {IT_SUBMENU|IT_STRING, NULL, "HUD Options...", &OP_HUDOptionsDef, 60}, {IT_SUBMENU|IT_STRING, NULL, "Gameplay Options...", &OP_GameOptionsDef, 70}, {IT_SUBMENU|IT_STRING, NULL, "Server Options...", &OP_ServerOptionsDef, 80}, + + {IT_SUBMENU|IT_STRING, NULL, "Connection Options...", &OP_ConnectDef, 90}, - {IT_SUBMENU|IT_STRING, NULL, "Data Options...", &OP_DataOptionsDef, 100}, + {IT_SUBMENU|IT_STRING, NULL, "Data Options...", &OP_DataOptionsDef, 110}, - {IT_CALL|IT_STRING, NULL, "Tricks & Secrets (F1)", M_Manual, 120}, - {IT_CALL|IT_STRING, NULL, "Play Credits", M_Credits, 130}, - - {IT_SUBMENU|IT_STRING, NULL, "Bird", &OP_BirdDef, 150}, + {IT_CALL|IT_STRING, NULL, "Tricks & Secrets (F1)", M_Manual, 130}, + {IT_CALL|IT_STRING, NULL, "Play Credits", M_Credits, 140}, + + {IT_SUBMENU|IT_STRING, NULL, "Bird", &OP_BirdDef, 160}, }; static menuitem_t OP_ControlsMenu[] = @@ -1717,6 +1722,13 @@ static menuitem_t OP_BirdMenu[] = {IT_STRING | IT_SUBMENU, NULL, "Advanced Music Options...", &OP_AdvancedBirdDef, 120}, }; +static menuitem_t OP_ConnectMenu[] = +{ + {IT_HEADER, NULL, "Connection Options", NULL, 20}, + {IT_STRING | IT_CVAR, NULL, "Serverqueue waittime", &cv_connectawaittime, 40}, + {IT_STRING | IT_CVAR, NULL, "Addon Download Speed", &cv_downloadspeed, 60}, +}; + static menuitem_t OP_TiltMenu[] = { {IT_STRING | IT_CVAR, NULL, "Camera Tilting", &cv_tilting, 0}, @@ -2269,6 +2281,8 @@ menu_t OP_EraseDataDef = DEFAULTMENUSTYLE("M_DATA", OP_EraseDataMenu, &OP_DataOp menu_t OP_HudOffsetDef = DEFAULTMENUSTYLE(NULL, OP_HudOffsetMenu, &OP_HUDOptionsDef, 30, 30); +menu_t OP_ConnectDef = DEFAULTMENUSTYLE(NULL, OP_ConnectMenu, &OP_MainDef, 30, 30); + menu_t OP_BirdDef = DEFAULTMENUSTYLE(NULL, OP_BirdMenu, &OP_MainDef, 30, 30); menu_t OP_TiltDef = DEFAULTMENUSTYLE(NULL, OP_TiltMenu, &OP_BirdDef, 30, 60); menu_t OP_AdvancedBirdDef = DEFAULTMENUSTYLE(NULL, OP_AdvancedBirdMenu, &OP_BirdDef, 30, 60);