本文整理了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
暂无
代码示例来源: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.
}
内容来源于网络,如有侵权,请联系作者删除!