From 9756dd7db1ff3985001b504bf9c6c5cc630bd5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Shadowsun=E2=84=A2?= <12494967+CattoGamer@users.noreply.github.com> Date: Sun, 4 Aug 2024 04:55:12 +0200 Subject: [PATCH] Add Options in Request Menu --- .../modules/scoreboard/controls/cl_htmlcontrols.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workshop/gamemodes/cinema_modded/gamemode/modules/scoreboard/controls/cl_htmlcontrols.lua b/workshop/gamemodes/cinema_modded/gamemode/modules/scoreboard/controls/cl_htmlcontrols.lua index 74ddbd5..5c5b3ba 100644 --- a/workshop/gamemodes/cinema_modded/gamemode/modules/scoreboard/controls/cl_htmlcontrols.lua +++ b/workshop/gamemodes/cinema_modded/gamemode/modules/scoreboard/controls/cl_htmlcontrols.lua @@ -43,6 +43,17 @@ function PANEL:Init() self.Navigating = true end + self.OptionsButton = vgui.Create( "DImageButton", self ) + self.OptionsButton:SetSize( ButtonSize, ButtonSize ) + self.OptionsButton:SetMaterial( "icon32/tool.png" ) + self.OptionsButton:Dock( LEFT ) + self.OptionsButton:DockMargin( Spacing, Margins, Spacing, Margins ) + self.OptionsButton.DoClick = function() + local menu = DermaMenu() + menu:AddOption( "YouTube Instance Switcher", function() RunConsoleCommand( "cinema_invidious_switch" ) end ) + menu:Open() + end + self.RefreshButton = vgui.Create( "DImageButton", self ) self.RefreshButton:SetSize( ButtonSize, ButtonSize ) self.RefreshButton:SetMaterial( "gui/HTML/refresh" )