Skip to content

Commit

Permalink
Add Options in Request Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
CattoGamer committed Aug 4, 2024
1 parent 92795f2 commit 9756dd7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit 9756dd7

Please sign in to comment.