X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.lua;h=7a5ff80e80b0d68e8b96541ac71155b4977a609a;hb=8cbf100e6126c1550a6436970d777a652ac1182e;hp=3a59040b78624649b0df8b78548eb5fe0ccd86ba;hpb=ccc6ab80f92f39a4a3ae9580b95ff5703de027c4;p=nageru diff --git a/theme.lua b/theme.lua index 3a59040..7a5ff80 100644 --- a/theme.lua +++ b/theme.lua @@ -107,9 +107,8 @@ function transition_clicked(num, t) zoom_dst = temp end -function channel_clicked(num, t) - -- Presumably change the preview here. - io.write("STUB: channel_clicked\n") +function channel_clicked(num) + preview_signal_num = num end -- Called every frame. Get the chain for displaying at input , @@ -154,10 +153,7 @@ function get_chain(num, t, width, height) return main_chain_hq.chain, prepare end if num == 1 then -- Preview. - prepare = function() - simple_chain_lq_input:connect_signal(preview_signal_num) - end - return simple_chain_lq, prepare + num = preview_signal_num + 2 end if num == 2 then prepare = function()