本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Label.getColor()
方法的一些代码示例,展示了Label.getColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getColor()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Label
类名称:Label
方法名:getColor
暂无
代码示例来源:origin: libgdx/libgdx
public void draw (Batch batch, float parentAlpha) {
validate();
Color color = tempColor.set(getColor());
color.a *= parentAlpha;
if (style.background != null) {
batch.setColor(color.r, color.g, color.b, color.a);
style.background.draw(batch, getX(), getY(), getWidth(), getHeight());
}
if (style.fontColor != null) color.mul(style.fontColor);
cache.tint(color);
cache.setPosition(getX(), getY());
cache.draw(batch);
}
代码示例来源:origin: libgdx/libgdx
public void draw (Batch batch, float parentAlpha) {
validate();
Color color = tempColor.set(getColor());
color.a *= parentAlpha;
if (style.background != null) {
batch.setColor(color.r, color.g, color.b, color.a);
style.background.draw(batch, getX(), getY(), getWidth(), getHeight());
}
if (style.fontColor != null) color.mul(style.fontColor);
cache.tint(color);
cache.setPosition(getX(), getY());
cache.draw(batch);
}
代码示例来源:origin: langurmonkey/gaiasky
public OwnCheckBox(String text, Skin skin, float space) {
super(text, skin);
this.regularColor = getLabel().getColor().cpy();
this.getCells().get(0).padRight(space);
}
代码示例来源:origin: langurmonkey/gaiasky
public OwnCheckBox(String text, Skin skin, String styleName, float space) {
super(text, skin, styleName);
this.regularColor = getLabel().getColor().cpy();
this.getCells().get(0).padRight(space);
}
代码示例来源:origin: SquidPony/SquidLib
Color.abgr8888ToColor(lb.getColor(), encodedColor);
代码示例来源:origin: crashinvaders/gdx-texture-packer-gui
public NoPageHint(Skin skin) {
String text = App.inst().getI18n().get("atlasPreviewNoPageMsg");
Label lblMessage = new Label(text, new Label.LabelStyle(skin.getFont("default-font"), Color.WHITE));
lblMessage.setAlignment(Align.center);
lblMessage.getColor().a = 0.25f;
setActor(lblMessage);
setFillParent(true);
align(Align.center);
setTouchable(Touchable.disabled);
setBackground(skin.getDrawable("noPreviewFill"));
}
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public void draw (Batch batch, float parentAlpha) {
validate();
Color color = tempColor.set(getColor());
color.a *= parentAlpha;
if (style.background != null) {
batch.setColor(color.r, color.g, color.b, color.a);
style.background.draw(batch, getX(), getY(), getWidth(), getHeight());
}
if (style.fontColor != null) color.mul(style.fontColor);
cache.tint(color);
cache.setPosition(getX(), getY());
cache.draw(batch);
}
代码示例来源:origin: bladecoder/bladecoder-adventure-engine
msg.getColor().a = 0;
msg.addAction(sequence(Actions.fadeIn(0.4f, Interpolation.fade),
Actions.delay(t.time, sequence(fadeOut(0.4f, Interpolation.fade), Actions.removeActor()))));
内容来源于网络,如有侵权,请联系作者删除!