Java Code Examples for com.badlogic.gdx.scenes.scene2d.ui.Skin#getColor()

The following examples show how to use com.badlogic.gdx.scenes.scene2d.ui.Skin#getColor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PageGroup.java    From gdx-texture-packer-gui with Apache License 2.0 5 votes vote down vote up
public RegionSpotlight(Skin skin) {
    whiteTex = skin.getRegion("white");
    spotlightBorder = skin.getPatch("custom/white_frame");
    font = skin.getFont("default-font");
    glText = new GlyphLayout();

    colorSpotlight = skin.getColor("orange");
    colorTextFrame = new Color(0x333333aa);
}
 
Example 2
Source File: IntValueLabel.java    From GdxDemo3D with Apache License 2.0 4 votes vote down vote up
public IntValueLabel (CharSequence text, int initialValue, Skin skin, String fontName, String colorName) {
	this(text, initialValue, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 3
Source File: FloatValueLabel.java    From GdxDemo3D with Apache License 2.0 4 votes vote down vote up
public FloatValueLabel (CharSequence text, float initialValue, Skin skin, String fontName, String colorName) {
	this(text, initialValue, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 4
Source File: ObjectValueLabel.java    From GdxDemo3D with Apache License 2.0 4 votes vote down vote up
public ObjectValueLabel (CharSequence text, T initialValue, Skin skin, String fontName, String colorName) {
	this(text, initialValue, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 5
Source File: IntValueLabel.java    From gdx-ai with Apache License 2.0 4 votes vote down vote up
public IntValueLabel (CharSequence text, int initialValue, Skin skin, String fontName, String colorName) {
	this(text, initialValue, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 6
Source File: FloatValueLabel.java    From gdx-ai with Apache License 2.0 4 votes vote down vote up
public FloatValueLabel (CharSequence text, float initialValue, Skin skin, String fontName, String colorName) {
	this(text, initialValue, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 7
Source File: FpsLabel.java    From gdx-ai with Apache License 2.0 4 votes vote down vote up
public FpsLabel (CharSequence text, Skin skin, String fontName, String colorName) {
	this(text, new LabelStyle(skin.getFont(fontName), skin.getColor(colorName)));
}
 
Example 8
Source File: FormatUtils.java    From ingress-apk-mod with Apache License 2.0 4 votes vote down vote up
public static Color getColorForLevel(Skin skin, int level) {
    return skin.getColor("level_" + level);
}
 
Example 9
Source File: FormatUtils.java    From ingress-apk-mod with Apache License 2.0 4 votes vote down vote up
public static Color getColorForRarity(Skin skin, ItemRarity rarity) {
    return skin.getColor("rarity_" + rarity.ordinal());
}