function SSUI_DropDown_Initialize() local info = UIElements[ this:GetName() ]; local button = {}; local checked = {}; if( info == nil ) then return; end if( info.multi ) then for id in SSConfig_GetValue( info.var ) do checked[ id ] = 1; end end for key, value in info.table do button = {}; button.text = value; button.func = SSUI_DropDown_OnClick; button.arg1 = this:GetName(); button.arg2 = checked[ key ]; button.checked = checked[ key ]; if( info.multi ) then button.keepShownOnClick = 1; end UIDropDownMenu_AddButton( button ); endend