Search in sources :

Example 1 with GuiButtonSkillTreeTab

use of am2.guis.controls.GuiButtonSkillTreeTab in project ArsMagica2 by Mithion.

the class GuiSkillTrees method initGui.

@Override
public void initGui() {
    super.initGui();
    int l = (width - xSize) / 2 + 8;
    int i1 = (height - ySize) / 2;
    offense = new GuiButtonSkillTreeTab(0, l, i1, SkillTrees.Offense);
    defense = new GuiButtonSkillTreeTab(0, l + GuiButtonSkillTreeTab.buttonWidth + buttonPadding, i1, SkillTrees.Defense);
    utility = new GuiButtonSkillTreeTab(0, l + GuiButtonSkillTreeTab.buttonWidth * 2 + buttonPadding * 2, i1, SkillTrees.Utility);
    talents = new GuiButtonSkillTreeTab(0, l + GuiButtonSkillTreeTab.buttonWidth * 3 + buttonPadding * 3, i1, SkillTrees.Talents);
    affinity = new GuiButtonSkillTreeTab(0, l + GuiButtonSkillTreeTab.buttonWidth * 4 + buttonPadding * 4, i1, SkillTrees.Affinity);
    offense.setActive(true);
    this.buttonList.add(offense);
    this.buttonList.add(defense);
    this.buttonList.add(utility);
    if (ExtendedProperties.For(Minecraft.getMinecraft().thePlayer).getMagicLevel() >= 5)
        this.buttonList.add(talents);
    if (!ArcaneCompendium.instance.getEntry("affinity").isLocked())
        this.buttonList.add(affinity);
}
Also used : GuiButtonSkillTreeTab(am2.guis.controls.GuiButtonSkillTreeTab)

Aggregations

GuiButtonSkillTreeTab (am2.guis.controls.GuiButtonSkillTreeTab)1