コード例 #1
0
  public SelectBoxItem(SelectBoxVO vo, IResource rm) {
    super(rm.getSkin(), vo.style.isEmpty() ? "default" : vo.style);
    dataVO = vo;
    this.rm = rm;
    setX(dataVO.x);
    setY(dataVO.y);
    setScaleX(dataVO.scaleX);
    setScaleY(dataVO.scaleY);
    this.setRotation(dataVO.rotation);

    if (dataVO.zIndex < 0) dataVO.zIndex = 0;

    if (dataVO.tint == null) {
      setTint(new Color(1, 1, 1, 1));
    } else {
      setTint(new Color(dataVO.tint[0], dataVO.tint[1], dataVO.tint[2], dataVO.tint[3]));
    }
  }
コード例 #2
0
  public TextBoxItem(TextBoxVO vo, IResource rm) {
    super(vo.defaultText, rm.getSkin(), vo.style.isEmpty() ? "default" : vo.style);

    this.rm = rm;
    dataVO = vo;
    setX(dataVO.x);
    setY(dataVO.y);
    setScaleX(dataVO.scaleX);
    setScaleY(dataVO.scaleY);
    this.setRotation(dataVO.rotation);

    if (dataVO.zIndex < 0) dataVO.zIndex = 0;

    if (dataVO.tint == null) {
      setTint(new Color(1, 1, 1, 1));
    } else {
      setTint(new Color(dataVO.tint[0], dataVO.tint[1], dataVO.tint[2], dataVO.tint[3]));
    }

    setFocusTraversal(false);
    renew();
  }
コード例 #3
0
ファイル: ImageItem.java プロジェクト: derptoy/ogm
 public ImageItem(SimpleImageVO vo, IResource rm) {
   super(rm.getAsset(vo.imageName));
   init(vo, rm);
 }