ListBox




/// @description событие Draw

	if _text_font !=0 then draw_set_font(_text_font)
	draw_set_halign(fa_center);
	draw_set_valign(fa_middle);
	
	
	if _checked then 
	{
		draw_set_color(_text_foreground_color_check);
		draw_shapes(_type_shape, true);
		
		draw_set_color(_text_color_check);
	}
	else
	{		
		draw_set_color(_text_foreground_color_check);
		if _border then draw_shapes(_type_shape, false);
		draw_set_color(_text_color);
	}
	
	draw_text(x,y,_text);

 

/// @description Mouse LeftReleased
	
	_checked = !_checked;
	
	if script_exists(_checked_action) then script_execute(_checked_action);
	
	if(_sound_onclick) then audio_play_sound(_sound_onclick,0,false);