Package asis.gui

Source Code of asis.gui.SettingsNPCPotions

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

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

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

    LNumericSetting numPotions;
    LNumericSetting numChance;

    public SettingsNPCPotions(SPMainMenuPanel parent_) {
        super(parent_, "NPC Potions", ASIS.blue);
    }

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


        numPotions = new LNumericSetting("Number of Potions", ASIS.settingsFont, ASIS.blue,
                0, 100, 1);
        numPotions.tie(ASISSaveFile.GUISettings.NUMBER_OF_POTIONS, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(numPotions);
        AddSetting(numPotions);

        numChance = new LNumericSetting("Chance Per Potion", ASIS.settingsFont, ASIS.blue,
                0, 100, 1);
        numChance.tie(ASISSaveFile.GUISettings.CHANCE_PER_POTION, ASIS.save, SUMGUI.helpPanel, true);
        setPlacement(numChance);
        AddSetting(numChance);

        alignRight();
    }
}
TOP

Related Classes of asis.gui.SettingsNPCPotions

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.