function SVMOD:EDITOR_Sounds(panel, data) panel:Clear() local bottomPanel = vgui.Create("DPanel", panel) bottomPanel:Dock(BOTTOM) bottomPanel:SetSize(0, 30) bottomPanel:SetPaintBackground(false) local function createComboBoxPanel(text, choices, fun) local comboBoxPanel = vgui.Create("DPanel", panel) comboBoxPanel:Dock(TOP) comboBoxPanel:DockMargin(0, 4, 0, 4) comboBoxPanel:SetSize(0, 30) comboBoxPanel:SetPaintBackground(false) local label = vgui.Create("DLabel", comboBoxPanel) label:SetPos(2, 4) label:SetFont("SV_Calibri18") label:SetText(text) label:SizeToContents() local comboBox = vgui.Create("DComboBox", comboBoxPanel) comboBox:Dock(RIGHT) comboBox:DockMargin(8, 0, 0, 0) comboBox:SetSize(300, 0) comboBox:SetText("") comboBox.OnSelect = function(self, _, val) fun(val) end for _, c in ipairs(choices) do comboBox:AddChoice(c) end return comboBox end SVMOD:CreateTitle(panel, language.GetPhrase("svmod.sounds.sounds")) local blinkersComboBox = createComboBoxPanel("Blinkers", { "light", "normal" }, function(val) data.Blinkers = val end) blinkersComboBox:SetValue(data.Blinkers or "normal") local hornComboBox = createComboBoxPanel("Horn", { "light", "normal", "heavy", "norway_yelp", "danish_yelp", "gtav_yelp", "uk_yelp" }, function(val) data.Horn = val end) hornComboBox:SetValue(data.Horn or "normal") local reversingComboBox = createComboBoxPanel("Reversing", { "" }, function(val) data.Reversing = val end) reversingComboBox:SetValue(data.Reversing or "") local sirenComboBox = createComboBoxPanel("Siren", { "", "american_police", "american_firetruck", "american_ambulance", "french_police", "french_gendarmerie", "french_firetruck", "french_ambulance", "german_ambulance", "german_firetruck", "german_police", "australia_ambulance", "australia_firetruck", "australia_police", "norway_wail", "norway_yelp", "danish_hilo", "danish_phaser", "danish_yelp", "gtav_wail", "gtav_yelp", "uk_hilo", "uk_wail", "uk_yelp" }, function(val) data.Siren = val end) sirenComboBox:SetValue(data.Siren or "") local creditComboBox = createComboBoxPanel("New horns and sirens added by Loui'S#0365", {"" }, function(val) end) end