Package vazkii.botania.client.gui.lexicon.button

Examples of vazkii.botania.client.gui.lexicon.button.GuiButtonInvisible


  }

  @Override
  void populateIndex() {
    for(int i = page * 12; i < (page + 1) * 12; i++) {
      GuiButtonInvisible button = (GuiButtonInvisible) buttonList.get(i - page * 12);
      LexiconEntry entry = i >= entriesToDisplay.size() ? null : entriesToDisplay.get(i);
      if(entry != null)
        button.displayString = entry.getKnowledgeType().color + "" + (entry.isPriority() ? EnumChatFormatting.ITALIC : "") + StatCollector.translateToLocal(entry.getUnlocalizedName());
      else button.displayString = "";
    }
View Full Code Here


    buttonList.clear();
    if(isIndex()) {
      int x = 18;
      for(int i = 0; i < 12; i++) {
        int y = 16 + i * 12;
        buttonList.add(new GuiButtonInvisible(i, left + x, top + y, 110, 10, ""));
      }
      populateIndex();
    } else if(isCategoryIndex()) {
      int categories = allCategories.size();
      for(int i = 0; i < categories + 1; i++) {
View Full Code Here

  void populateIndex() {
    List<LexiconCategory> categoryList = BotaniaAPI.getAllCategories();
    int shift = 2;
    for(int i = shift; i < 12; i++) {
      int i_ = i - shift;
      GuiButtonInvisible button = (GuiButtonInvisible) buttonList.get(i);
      LexiconCategory category = i_ >= categoryList.size() ? null : categoryList.get(i_);
      if(category != null)
        button.displayString = StatCollector.translateToLocal(category.getUnlocalizedName());
      else {
        button.displayString = StatCollector.translateToLocal("botaniamisc.lexiconIndex");
View Full Code Here

TOP

Related Classes of vazkii.botania.client.gui.lexicon.button.GuiButtonInvisible

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.