Package org.spout.api.component.widget

Examples of org.spout.api.component.widget.LabelComponent


        backgroundRect.setSprite(new Rectangle(-WIDTH * SCALE, -WIDTH, HEIGHT * 2 * SCALE, HEIGHT * 2));
        backgroundRect.setSource(new Rectangle(0, 0, WIDTH, HEIGHT));
        popup.attachWidget(plugin, background);

        // Draw title
        LabelComponent labelComponent = label.add(LabelComponent.class);
        labelComponent.setFont(VanillaRenderMaterials.FONT);
        labelComponent.setText(ChatStyle.GRAY + title);
        label.getTransform().add(0, 0.45f);
        popup.attachWidget(plugin, label);

        for (InventoryConverter converter : converters) {
          for (Widget widget : converter.getWidgets()) {
View Full Code Here


  private final RenderPartPack expPack = new RenderPartPack(VanillaRenderMaterials.ICONS_MATERIAL);

  @Override
  public void init(Widget exp, HUD hud) {
    super.init(exp, hud);
    final LabelComponent lvlTxt = widget.add(LabelComponent.class);
    widget.getTransform().add(-0.02f, -0.79f);
    lvlTxt.setFont(VanillaRenderMaterials.FONT);
    lvlTxt.setText(ChatStyle.GREEN + "50");

    // Setup survival-specific hud components
    boolean survival = true;
    if (survival) {
      // Experience bar
View Full Code Here

TOP

Related Classes of org.spout.api.component.widget.LabelComponent

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.