Dropdown Menu for Replika Delay Time

treynterrio
treynterrio Member Posts: 64 Member
edited October 22 in Scripting Workshop

Hi there, I want to script a dropdown menu for the Replika Delay rate but I don't know where I should start.

anyone who could help me with this?

I've created the dropdown already but I need help with the code for the ui_control

Is $ENGINE_PAR_RDL_TIME_UNIT right for this?

declare ui_menu $delay_menu
add_menu_item($delay_menu, "1/1", 0)
add_menu_item($delay_menu, "1/1 triplet", 1)
add_menu_item($delay_menu, "1/2", 2)
add_menu_item($delay_menu, "1/2 triplet", 3)
add_menu_item($delay_menu, "1/4", 4)
add_menu_item($delay_menu, "1/4 triplet", 5)
add_menu_item($delay_menu, "1/8", 6)
add_menu_item($delay_menu, "1/8 triplet", 7)
add_menu_item($delay_menu, "1/16", 8)
add_menu_item($delay_menu, "1/16 triplet", 9)
add_menu_item($delay_menu, "1/32", 10)
add_menu_item($delay_menu, "1/32 triplet", 11)
add_menu_item($delay_menu, "1/64", 12)
add_menu_item($delay_menu, "1/64", 13)
set_control_par(get_ui_id($delay_menu),$CONTROL_PAR_TEXTPOS_Y,10)
set_control_par_str(get_ui_id($delay_menu),$CONTROL_PAR_PICTURE,"")
set_control_par(get_ui_id($delay_menu),$CONTROL_PAR_POS_X,39)
set_control_par(get_ui_id($delay_menu),$CONTROL_PAR_POS_Y,145)
This discussion has been closed.
Back To Top