Package asis.gui

Source Code of asis.gui.SettingsIncreasedSpawns

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package asis.gui;

import asis.ASIS;
import asis.ASISSaveFile;
import asis.ASISSaveFile.GUISettings;
import lev.gui.LCheckBox;
import lev.gui.LDoubleSetting;
import lev.gui.LNumericSetting;
import skyproc.gui.SPMainMenuPanel;
import skyproc.gui.SPSettingPanel;
import skyproc.gui.SUMGUI;

/**
*
* @author pc tech
*/
public class SettingsIncreasedSpawns extends SPSettingPanel {

    LDoubleSetting spawn0weight;
    LDoubleSetting spawn1weight;
    LDoubleSetting spawn2weight;
    LDoubleSetting spawn3weight;
    LDoubleSetting spawn4weight;
    LDoubleSetting spawn5weight;
    LDoubleSetting spawn6weight;
    LDoubleSetting spawn7weight;
    LDoubleSetting spawn8weight;
    LDoubleSetting spawn9weight;
    LDoubleSetting reducedInteriorSpawns;

    public SettingsIncreasedSpawns(SPMainMenuPanel parent_) {
        super(parent_, "Increased Spawns", ASIS.blue);
    }

    @Override
    protected void initialize() {
        super.initialize();


        spawn0weight = new LDoubleSetting("Weighting for NO Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn0weight.tie(GUISettings.ISSPAWN0WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn0weight);
        AddSetting(spawn0weight);

        spawn1weight = new LDoubleSetting("Spawn Weight for 1 Spawn", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn1weight.tie(GUISettings.ISSPAWN1WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn1weight);
        AddSetting(spawn1weight);

        spawn2weight = new LDoubleSetting("Spawn Weight for 2 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn2weight.tie(GUISettings.ISSPAWN2WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn2weight);
        AddSetting(spawn2weight);

        spawn3weight = new LDoubleSetting("Spawn Weight for 3 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn3weight.tie(GUISettings.ISSPAWN3WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn3weight);
        AddSetting(spawn3weight);

        spawn4weight = new LDoubleSetting("Spawn Weight for 4 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn4weight.tie(GUISettings.ISSPAWN4WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn4weight);
        AddSetting(spawn4weight);

        spawn5weight = new LDoubleSetting("Spawn Weight for 5 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn5weight.tie(GUISettings.ISSPAWN5WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn5weight);
        AddSetting(spawn5weight);

        spawn6weight = new LDoubleSetting("Spawn Weight for 6 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn6weight.tie(GUISettings.ISSPAWN6WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn6weight);
        AddSetting(spawn6weight);

        spawn7weight = new LDoubleSetting("Spawn Weight for 7 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn7weight.tie(GUISettings.ISSPAWN7WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn7weight);
        AddSetting(spawn7weight);

        spawn8weight = new LDoubleSetting("Spawn Weight for 8 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn8weight.tie(GUISettings.ISSPAWN8WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn8weight);
        AddSetting(spawn8weight);

        spawn9weight = new LDoubleSetting("Spawn Weight for 9 Spawns", ASIS.settingsFontSmall, ASIS.blue,
                0, 1000, 1);
        spawn9weight.tie(GUISettings.ISSPAWN9WEIGHT, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(spawn9weight);
        AddSetting(spawn9weight);

        reducedInteriorSpawns = new LDoubleSetting("Reduced Interior Spawns", ASIS.settingsFontSmall, ASIS.blue, 0, 1000, 1);
        reducedInteriorSpawns.tie(ASISSaveFile.GUISettings.ISREDUCEDINTERIORSPAWNS, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(reducedInteriorSpawns);
        AddSetting(reducedInteriorSpawns);

        alignRight();
    }
}
TOP

Related Classes of asis.gui.SettingsIncreasedSpawns

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.