2015-07-17 11:17:55 +02:00
|
|
|
package ellpeck.actuallyadditions.config;
|
|
|
|
|
|
|
|
import cpw.mods.fml.client.config.GuiConfig;
|
|
|
|
import cpw.mods.fml.client.config.IConfigElement;
|
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
|
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
|
|
import net.minecraftforge.common.config.ConfigCategory;
|
|
|
|
import net.minecraftforge.common.config.ConfigElement;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class GuiConfiguration extends GuiConfig{
|
|
|
|
|
|
|
|
public GuiConfiguration(GuiScreen parentScreen){
|
2015-08-29 01:09:09 +02:00
|
|
|
super(parentScreen, getConfigElements(), ModUtil.MOD_ID, false, false, ModUtil.NAME);
|
2015-07-17 11:17:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private static List<IConfigElement> getConfigElements(){
|
2015-07-17 23:22:10 +02:00
|
|
|
List<IConfigElement> list = new ArrayList<IConfigElement>();
|
2015-07-17 11:17:55 +02:00
|
|
|
for(int i = 0; i < ConfigCategories.values().length; i++){
|
|
|
|
list.add(new ConfigElement<ConfigCategory>(ConfigurationHandler.config.getCategory(ConfigCategories.values()[i].name.toLowerCase())));
|
|
|
|
}
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
}
|