From a886bfa7d96c04a99d9f70a8f55ef392ba076366 Mon Sep 17 00:00:00 2001 From: NickCloud Date: Sat, 9 Oct 2021 17:38:09 +0200 Subject: [PATCH] Added team sync convar to F1 Menu (#27) Somehow forgott this convar in the last PR.. So now here it is --- lua/terrortown/lang/de/tttc.lua | 1 + lua/terrortown/lang/en/tttc.lua | 1 + lua/terrortown/lang/ru/tttc.lua | 1 + lua/terrortown/menus/gamemode/server_addons/tttc.lua | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/lua/terrortown/lang/de/tttc.lua b/lua/terrortown/lang/de/tttc.lua index 59017dd..18a8827 100644 --- a/lua/terrortown/lang/de/tttc.lua +++ b/lua/terrortown/lang/de/tttc.lua @@ -21,6 +21,7 @@ L["label_tttc_classes_option"] = "Können Spieler zwischen 2 Klassen wählen?" L["label_tttc_classes_extraslot"] = "Sollen Klassen Waffen auf einen Extra Waffenplatz kommen?" L["label_tttc_classes_respawn_keep"] = "Sollen Spieler ihre Klassen beim neu spawnen behalten?" L["label_tttc_classes_popup"] = "Aktiviere Klassen Popup" +L["label_tttc_classes_teamsync"] = "Sollen Klassen zu Teammates synchronisiert werden?" L["label_tttc_classes_different"] = "Wie viele verschiedene Klassen sollen aktiviert sein?" L["help_addons_tttc"] = "Einstellungen für TTTC" diff --git a/lua/terrortown/lang/en/tttc.lua b/lua/terrortown/lang/en/tttc.lua index 2ad2cd8..df93b1d 100644 --- a/lua/terrortown/lang/en/tttc.lua +++ b/lua/terrortown/lang/en/tttc.lua @@ -21,6 +21,7 @@ L["label_tttc_classes_option"] = "Can Players choose between 2 Classes?" L["label_tttc_classes_extraslot"] = "Should Class Weapons be put on an extra slot?" L["label_tttc_classes_respawn_keep"] = "Should Players keep their Classes on respawn?" L["label_tttc_classes_popup"] = "Enable Class Popup" +L["label_tttc_classes_teamsync"] = "Should Classes be synced to Teammates?" L["label_tttc_classes_different"] = "How many different classes should be available?" L["help_addons_tttc"] = "Settings for TTTC" diff --git a/lua/terrortown/lang/ru/tttc.lua b/lua/terrortown/lang/ru/tttc.lua index 6a8a28d..e9b1d48 100644 --- a/lua/terrortown/lang/ru/tttc.lua +++ b/lua/terrortown/lang/ru/tttc.lua @@ -21,6 +21,7 @@ L["ttt2_tttc_class_desc_not_provided"] = "Описание класса не п --L["label_tttc_classes_extraslot"] = "Should Class Weapons be put on an extra slot?" --L["label_tttc_classes_respawn_keep"] = "Should Players keep their Classes on respawn?" --L["label_tttc_classes_popup"] = "Enable Class Popup" +--L["label_tttc_classes_teamsync"] = "Should classes be synced to Teammates?" --L["label_tttc_classes_different"] = "How many different classes should be available?" --L["help_addons_tttc"] = "Settings for TTTC" diff --git a/lua/terrortown/menus/gamemode/server_addons/tttc.lua b/lua/terrortown/menus/gamemode/server_addons/tttc.lua index 1562080..541938d 100644 --- a/lua/terrortown/menus/gamemode/server_addons/tttc.lua +++ b/lua/terrortown/menus/gamemode/server_addons/tttc.lua @@ -38,6 +38,11 @@ function CLGAMEMODESUBMENU:Populate(parent) serverConvar = "ttt_classes_show_popup" }) + form:MakeCheckBox({ + label = "label_tttc_classes_teamsync", + serverConvar = "ttt_classes_sync_team" + }) + form:MakeSlider({ label = "label_tttc_classes_different", serverConvar = "ttt_classes_different",