/*
 * Copyright  2014 - 2017 | Wurst-Imperium | All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package net.wurstclient.features.special_features;

import net.wurstclient.features.SearchTags;
import net.wurstclient.features.Spf;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.settings.ModeSetting;

@SearchTags({"HackList", "CheatList", "mod list", "hack list", "cheat list"})
public final class ModListSpf extends Spf
{
	private final ModeSetting mode =
		new ModeSetting("Mode", new String[]{"Auto", "Count", "Hidden"}, 0)
		{
			@Override
			public void update()
			{
				if(getSelected() == 0)
					animations.unlock();
				else
					animations.lock(() -> false);
			}
		};
	private final CheckboxSetting animations =
		new CheckboxSetting("Animations", true);
	
	public ModListSpf()
	{
		super("ModList",
			"Shows a list of active mods on the screen.\n"
				+ "lAutor mode renders the whole list if it fits onto the screen.\n"
				+ "lCountr mode only renders the number of active mods.\n"
				+ "lHiddenr mode renders nothing.");
		
		settings.add(mode);
		settings.add(animations);
	}
	
	public int getMode()
	{
		return mode.getSelected();
	}
	
	public boolean isAnimations()
	{
		return animations.isChecked();
	}
}

@@ -512,16 +512,29 @@
 chTags(%7B
+%22ArrayList%22, 
 %22HackLis
@@ -562,16 +562,31 @@
  list%22, 
+%22array list%22,%0A%09
 %22hack li

Update ModListSpf