com.badlogic.gdx.scenes.scene2d.ui.Window.getColor()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Window.getColor()方法的一些代码示例,展示了Window.getColor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.getColor()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Window
类名称:Window
方法名:getColor

Window.getColor介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

protected void drawStageBackground (Batch batch, float parentAlpha, float x, float y, float width, float height) {
  Color color = getColor();
  batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
  style.stageBackground.draw(batch, x, y, width, height);
}

代码示例来源:origin: libgdx/libgdx

protected void drawStageBackground (Batch batch, float parentAlpha, float x, float y, float width, float height) {
  Color color = getColor();
  batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
  style.stageBackground.draw(batch, x, y, width, height);
}

代码示例来源:origin: libgdx/libgdx

protected void drawBackground (Batch batch, float parentAlpha, float x, float y) {
  super.drawBackground(batch, parentAlpha, x, y);
  // Manually draw the title table before clipping is done.
  titleTable.getColor().a = getColor().a;
  float padTop = getPadTop(), padLeft = getPadLeft();
  titleTable.setSize(getWidth() - padLeft - getPadRight(), padTop);
  titleTable.setPosition(padLeft, getHeight() - padTop);
  drawTitleTable = true;
  titleTable.draw(batch, parentAlpha);
  drawTitleTable = false; // Avoid drawing the title table again in drawChildren.
}

代码示例来源:origin: libgdx/libgdx

protected void drawBackground (Batch batch, float parentAlpha, float x, float y) {
  super.drawBackground(batch, parentAlpha, x, y);
  // Manually draw the title table before clipping is done.
  titleTable.getColor().a = getColor().a;
  float padTop = getPadTop(), padLeft = getPadLeft();
  titleTable.setSize(getWidth() - padLeft - getPadRight(), padTop);
  titleTable.setPosition(padLeft, getHeight() - padTop);
  drawTitleTable = true;
  titleTable.draw(batch, parentAlpha);
  drawTitleTable = false; // Avoid drawing the title table again in drawChildren.
}

代码示例来源:origin: com.badlogicgames.gdx/gdx

protected void drawStageBackground (Batch batch, float parentAlpha, float x, float y, float width, float height) {
  Color color = getColor();
  batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
  style.stageBackground.draw(batch, x, y, width, height);
}

代码示例来源:origin: com.badlogicgames.gdx/gdx

protected void drawBackground (Batch batch, float parentAlpha, float x, float y) {
  super.drawBackground(batch, parentAlpha, x, y);
  // Manually draw the title table before clipping is done.
  titleTable.getColor().a = getColor().a;
  float padTop = getPadTop(), padLeft = getPadLeft();
  titleTable.setSize(getWidth() - padLeft - getPadRight(), padTop);
  titleTable.setPosition(padLeft, getHeight() - padTop);
  drawTitleTable = true;
  titleTable.draw(batch, parentAlpha);
  drawTitleTable = false; // Avoid drawing the title table again in drawChildren.
}

相关文章