// Path: scripting/wrapper/settings/SettingList.java
// public class SettingList extends Setting {
// 	
// 	public String[] options;
// 	public String selected;
// 	
// 	protected SettingList() { }
// 	
// 	public SettingList(String display, String... options) throws IllegalArgumentException {
// 		super(display);
// 		
// 		this.options = options;
// 		if (options.length == 0)
// 			throw new IllegalArgumentException("Must have at least 1 option!");
// 		selected = options[0];
// 	}
// 	
// 	public SettingList(String display, String firstOption, String... options) {
// 		this(display, ArrayUtils.addAll(new String[] { firstOption }, options));
// 	}
// 
// 	@Override
// 	public Object getValue() {
// 		return selected;
// 	}
// 	
// 	@Override
// 	protected void write(DataOutput out) throws IOException {
// 		super.write(out);
// 		ScriptPacket.writeStringArray(options, out);
// 		out.writeUTF(selected);
// 	}
// 
// 	@Override
// 	protected Setting read(DataInput in) throws IOException {
// 		super.read(in);
// 		options = ScriptPacket.readStringArray(in);
// 		selected = in.readUTF();
// 		return this;
// 	}
// 	
// }


import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraft.util.ResourceLocation;
import scripting.wrapper.settings.SettingList;
import com.mcf.davidee.guilib.core.Scrollbar.Shiftable;
import com.mcf.davidee.guilib.vanilla.ButtonVanilla;
package scripting.gui.settings;



public class SetListButton extends ButtonVanilla implements ISetting, Shiftable {
	
	private final SettingList setting;
	
	private int centerX;
	private int textX;

// Path: scripting/wrapper/settings/SettingList.java
// public class SettingList extends Setting {
// 	
// 	public String[] options;
// 	public String selected;
// 	
// 	protected SettingList() { }
// 	
// 	public SettingList(String display, String... options) throws IllegalArgumentException {
// 		super(display);
// 		
// 		this.options = options;
// 		if (options.length == 0)
// 			throw new IllegalArgumentException("Must have at least 1 option!");
// 		selected = options[0];
// 	}
// 	
// 	public SettingList(String display, String firstOption, String... options) {
// 		this(display, ArrayUtils.addAll(new String[] { firstOption }, options));
// 	}
// 
// 	@Override
// 	public Object getValue() {
// 		return selected;
// 	}
// 	
// 	@Override
// 	protected void write(DataOutput out) throws IOException {
// 		super.write(out);
// 		ScriptPacket.writeStringArray(options, out);
// 		out.writeUTF(selected);
// 	}
// 
// 	@Override
// 	protected Setting read(DataInput in) throws IOException {
// 		super.read(in);
// 		options = ScriptPacket.readStringArray(in);
// 		selected = in.readUTF();
// 		return this;
// 	}
// 	
// }


// Path: scripting/gui/settings/SetListButton.java
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraft.util.ResourceLocation;
import scripting.wrapper.settings.SettingList;
import com.mcf.davidee.guilib.core.Scrollbar.Shiftable;
import com.mcf.davidee.guilib.vanilla.ButtonVanilla;

package scripting.gui.settings;



public class SetListButton extends ButtonVanilla implements ISetting, Shiftable {
	
	private final SettingList setting;
	
	private int centerX;
	private int textX;

	public SetListButton(SettingList setting) {