Package net.minecraft.src

Examples of net.minecraft.src.StringTranslate


    /**
     * Adds the buttons (and other controls) to the screen in question.
     */
    public void initGui() {
        StringTranslate stringTranslate = StringTranslate.getInstance();
        this.buttonList.clear();
        //this.buttonList.add(new GuiButtonEx(202, this.width / 2 - 100, this.height / 6 + 148, "Reset To Defaults"));
        this.buttonList.add(new GuiButtonEx(200, this.width / 2 - 100, this.height / 6 + 168, stringTranslate.translateKey("gui.done")));
       
        slots = new ControlSlot(this);
        slots.registerScrollButtons(201, 202);
    }
View Full Code Here


  }

  public void initGui() {
    int textWidth;

    StringTranslate translate = StringTranslate.getInstance();

    singleplayer = new GenericButton(translate.translateKey("menu.singleplayer"));
    singleplayer.setGeometry(width - 110, height - 155, 100, 20);

    multiplayer = new GenericButton(translate.translateKey("menu.multiplayer"));
    multiplayer.setGeometry(width - 110, height - 130, 100, 20);

    resources = new GenericButton(translate.translateKey("options.resourcepack"));
    resources.setGeometry(width - 110, height - 105, 100, 20);

    buildNumber = new GenericLabel(SpoutClient.getSpoutcraftVersion() + SpoutClient.getSpoutcraftBuild());   
    textWidth = Spoutcraft.getRenderDelegate().getMinecraftFont().getTextWidth(buildNumber.getText());
    buildNumber.setTextColor(new Color(0x6CC0DC));
    buildNumber.setGeometry(Math.min(90 - textWidth, width - 296 - textWidth), height - 99, 75, 20);

    about = new GenericButton("About");
    about.setGeometry(Math.min(98, width - 288), height - 105, 51, 20);

    options = new GenericButton(translate.translateKey("menu.options"));
    options.setGeometry(Math.min(159, width - 227), height - 105, 51, 20);

    quit = new GenericButton(translate.translateKey("menu.quit"));
    quit.setGeometry(Math.min(220, width - 166), height - 105, 61, 20);

    background.setGeometry(0, 0, width, height);
    background.setPriority(RenderPriority.Highest);
    background.setAnchor(WidgetAnchor.TOP_LEFT);
View Full Code Here

    mods = UpdateManager.sortMods(UpdateManager.loadedModsSet,
        UpdateManager.loadedModsMap);
    for (UpdateManagerMod mod : mods)
      listWidth = Math.max(listWidth,
          fontRenderer.getStringWidth(mod.getModName()) + 20);
    StringTranslate translations = StringTranslate.getInstance();
    int shiftx = 10;
    int shifty = 40;

    controlList.add(new GuiButton(0, shiftx, height - 30, fontRenderer
        .getStringWidth("Back") + 8, 20, "Back"));
View Full Code Here

TOP

Related Classes of net.minecraft.src.StringTranslate

Copyright © 2018 www.massapicom. 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.