Skip to content

Commit

Permalink
Move switcher to queue menu
Browse files Browse the repository at this point in the history
  • Loading branch information
CattoGamer committed Aug 4, 2024
1 parent 0676f14 commit 2210308
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ function QUEUE:Init()
end
self.Options:AddItem(RefreshButton)

local InstanceButton = vgui.Create( "TheaterButton" )
InstanceButton:SetText( "YouTube Instance Switcher" )
InstanceButton.DoClick = function(self)
RunConsoleCommand( "cinema_invidious_switch" )
end
self.Options:AddItem(InstanceButton)

end

function QUEUE:AddVideo( vid )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ 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 2210308

Please sign in to comment.