Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.Color.toInt()


      Color c1 = new Color(0, 0, 0);
      double darkness = 0;
      long t = System.currentTimeMillis() % 1000;
      darkness = Math.cos(t * 2 * Math.PI / 1000) * 0.2 + 0.2;
      c1.setBlue(1f - (float)darkness);
      color = c1.toInt();
    }

    font.drawStringWithShadow(r.getFittingText(sMotd, width - 10 - margin2 - marginleft), x + marginleft, y + 11, color);

    GL11.glColor4f(1f, 1f, 1f, 1f);
View Full Code Here


      }

      GL11.glPushMatrix();
      float scale = button.getScale();
      GL11.glScalef(scale, scale, scale);
      font.drawStringWithShadow(text, left, 6, color.toInt());
      GL11.glPopMatrix();
    }
  }

  protected boolean isHovering(Widget widget) {
View Full Code Here

      }

      GL11.glPushMatrix();
      float scale = slider.getScale();
      GL11.glScalef(scale, scale, scale);
      font.drawString(slider.getText(), left, 6, color.toInt());
      GL11.glPopMatrix();
    }
  }

  public void render(GenericTextField textField) {
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.