Examples of GuiImgButton


Examples of appeng.client.gui.widgets.GuiImgButton

  @Override
  public void initGui()
  {
    super.initGui();

    units = new GuiImgButton( this.guiLeft - 18, guiTop + 8, Settings.POWER_UNITS, AEConfig.instance.selectedPowerUnit() );
    buttonList.add( units );
  }
View Full Code Here

Examples of appeng.client.gui.widgets.GuiImgButton

    // buttonList.add( substitutionsBtn = new GuiImgButton( this.guiLeft + 84, this.guiTop + this.ySize - 163,
    // Settings.ACTIONS, ActionItems.SUBSTITUTION ) );
    // substitutionsBtn.halfSize = true;

    buttonList.add( clearBtn = new GuiImgButton( this.guiLeft + 74, this.guiTop + this.ySize - 163, Settings.ACTIONS, ActionItems.CLOSE ) );
    clearBtn.halfSize = true;

    buttonList.add( encodeBtn = new GuiImgButton( this.guiLeft + 147, this.guiTop + this.ySize - 142, Settings.ACTIONS, ActionItems.ENCODE ) );
  }
View Full Code Here

Examples of appeng.client.gui.widgets.GuiImgButton

    int offset = guiTop + 8;

    if ( customSortOrder )
    {
      buttonList.add( SortByBox = new GuiImgButton( this.guiLeft - 18, offset, Settings.SORT_BY, configSrc.getSetting( Settings.SORT_BY ) ) );
      offset += 20;
    }

    if ( viewCell || this instanceof GuiWirelessTerm )
    {
      buttonList.add( ViewBox = new GuiImgButton( this.guiLeft - 18, offset, Settings.VIEW_MODE, configSrc.getSetting( Settings.VIEW_MODE ) ) );
      offset += 20;
    }

    buttonList.add( SortDirBox = new GuiImgButton( this.guiLeft - 18, offset, Settings.SORT_DIRECTION, configSrc.getSetting( Settings.SORT_DIRECTION ) ) );
    offset += 20;

    buttonList.add( searchBoxSettings = new GuiImgButton( this.guiLeft - 18, offset, Settings.SEARCH_MODE, AEConfig.instance.settings
        .getSetting( Settings.SEARCH_MODE ) ) );
    offset += 20;

    if ( !(this instanceof GuiMEPortableCell) || this instanceof GuiWirelessTerm )
    {
      buttonList.add( terminalStyleBox = new GuiImgButton( this.guiLeft - 18, offset, Settings.TERMINAL_STYLE, AEConfig.instance.settings
          .getSetting( Settings.TERMINAL_STYLE ) ) );
    }

    searchField = new MEGuiTextField( fontRendererObj, this.guiLeft + Math.max( 80, offsetX ), this.guiTop + 4, 90, 12 );
    searchField.setEnableBackgroundDrawing( false );
View Full Code Here

Examples of appeng.client.gui.widgets.GuiImgButton

    if ( btn instanceof GuiImgButton )
    {
      boolean backwards = Mouse.isButtonDown( 1 );

      GuiImgButton iBtn = (GuiImgButton) btn;
      if ( iBtn.getSetting() != Settings.ACTIONS )
      {
        Enum cv = iBtn.getCurrentValue();
        Enum next = Platform.rotateEnum( cv, backwards, iBtn.getSetting().getPossibleValues() );

        if ( btn == terminalStyleBox )
          AEConfig.instance.settings.putSetting( iBtn.getSetting(), next );
        else if ( btn == searchBoxSettings )
          AEConfig.instance.settings.putSetting( iBtn.getSetting(), next );
        else
        {
          try
          {
            NetworkHandler.instance.sendToServer( new PacketValueConfig( iBtn.getSetting().name(), next.name() ) );
          }
          catch (IOException e)
          {
            AELog.error( e );
          }
        }

        iBtn.set( next );

        if ( next.getClass() == SearchBoxMode.class || next.getClass() == TerminalStyle.class )
          re_init();
      }
    }
View Full Code Here

Examples of appeng.client.gui.widgets.GuiImgButton

  @Override
  public void initGui()
  {
    super.initGui();

    units = new GuiImgButton( this.guiLeft - 18, guiTop + 8, Settings.POWER_UNITS, AEConfig.instance.selectedPowerUnit() );
    buttonList.add( units );
  }
View Full Code Here

Examples of appeng.client.gui.widgets.GuiImgButton

    addButtons();
  }

  protected void addButtons()
  {
    redstoneMode = new GuiImgButton( this.guiLeft - 18, guiTop + 8, Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE );
    fuzzyMode = new GuiImgButton( this.guiLeft - 18, guiTop + 28, Settings.FUZZY_MODE, FuzzyMode.IGNORE_ALL );
    craftMode = new GuiImgButton( this.guiLeft - 18, guiTop + 48, Settings.CRAFT_ONLY, YesNo.NO );

    buttonList.add( craftMode );
    buttonList.add( redstoneMode );
    buttonList.add( fuzzyMode );
  }
View Full Code Here
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.