on init
{sets interface size, etc}
set_ui_height_px(50)
make_perfview
message("")
declare := 0
{sets up SnrTop label}
declare ui_label (1,1)
set_text(,"SnrTop Output:")
move_control(,2,1)
{sets up SnrBot label}
declare ui_label (1,1)
set_text(,"SnrBot Output:")
move_control(,3,1)
{sets up SnrTop output assignment menu}
declare
declare ui_menu
_read_persistent_var()
add_menu_item(,"Default",-1)
move_control(,2,2)
:= 0
while( < )
add_menu_item(,output_channel_name(),)
inc()
end while
:= get_engine_par(,0,-1,-1) {where "0" = the first group in the series of round-robin groups}
make_persistent()
{sets up SnrBot output assignment menu}
declare
declare ui_menu
_read_persistent_var()
add_menu_item(,"Default",-1)
move_control(,3,2)
:= 0
while( < )
add_menu_item(,output_channel_name(),)
inc()
end while
:= get_engine_par(,0,-1,-1) {where "0" = the first group in the series of round-robin groups}
make_persistent()
end on
{Defines what happens when the SnrTop output assignment menu is adjusted}
on ui_control ()
:= 0 {first group in group range, zero based}
while ( <= 0) {last group in group range, zero based}
set_engine_par(,,,-1,-1)
inc()
end while
end on
{Defines what happens when the SnrBot output assignment menu is adjusted}
on ui_control ()
:= 1 {first group in group range, zero based}
while ( <= 1) {last group in group range, zero based}
set_engine_par(,,,-1,-1)
inc()
end while
end on