本文整理汇总了Java中com.badlogic.gdx.graphics.Color.ORANGE属性的典型用法代码示例。如果您正苦于以下问题:Java Color.ORANGE属性的具体用法?Java Color.ORANGE怎么用?Java Color.ORANGE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.badlogic.gdx.graphics.Color
的用法示例。
在下文中一共展示了Color.ORANGE属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invoke
public CalculateColorText invoke() {
color = Color.CHARTREUSE;
text = "A";
switch (rand) {
case 0:
color = Color.CHARTREUSE;
text = "A";
break;
case 1:
color = Color.CORAL;
text = "E";
break;
case 2:
color = Color.ORANGE;
text = "I";
break;
case 3:
color = Color.SKY;
text = "O";
break;
case 4:
color = Color.LIME;
text = "U";
break;
}
return this;
}
示例2: drawmap
private void drawmap() {
MapPixmap imageBG = MapPixmap.getInstance();
decalBackground = Decal.newDecal(new TextureRegion(new Texture(imageBG.getImage(1, 1))));
decalBackground.setPosition(0, 0, 0);
decalBackground.setDimensions(800, 800);
decalBackground.setBlending(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
Texture text = null;
groupCenter = new Group();
switch (InformationEnklave.getInstance().getFaction()){
case 1:{
text = managerAssets.getAssetsCombat().getTexture(NameFiles.enklavered);
break;
}
case 2:{
text = managerAssets.getAssetsCombat().getTexture(NameFiles.enklaveblue);
break;
}
case 3:{
text = managerAssets.getAssetsCombat().getTexture(NameFiles.enklavegreen);
break;
}
}
Vector2 crop = Scaling.fit.apply(text.getWidth(),text.getHeight(),WIDTH,HEIGHT);
Image enklave = new Image(new TextureRegion(text));
enklave.setSize(crop.x*0.6f,crop.y*0.6f);
enklave.setPosition(WIDTH / 2 - enklave.getWidth() / 2, HEIGHT / 2 - enklave.getHeight() / 1.7F);
groupCenter.addActor(enklave);
labelDistance = new Label("Distance: ",new Label.LabelStyle(Font.getFont((int)(HEIGHT*0.025f)),Color.ORANGE));
groupCenter.addActor(labelDistance);
}
示例3: addDescriptorModel
private void addDescriptorModel(){
float ypos = camera.project(arrayDecal.get(centerisequal).getPosition().cpy()).y - (HEIGHT * 0.195f);
labelDesc = new Label(nameRes.get(0),new Label.LabelStyle(Font.getFont((int)(HEIGHT*0.03f)),Color.WHITE));labelDesc.setAlignment(Align.center);
labelDesc.setPosition(WIDTH/2-labelDesc.getWidth()/2,ypos+labelDesc.getHeight());//HEIGHT*0.485f);
labelValue = new Label(String.valueOf(Math.round(InformationProfile.getInstance().getDateUserGame().getScrap())),new Label.LabelStyle(Font.getFont((int)(HEIGHT*0.025f)),Color.ORANGE));
labelValue.setPosition(WIDTH/2-labelValue.getWidth()/2,ypos);labelValue.setAlignment(Align.center);
progressbar = ProgressBarEnergy.getInstance();
}
示例4: FireDamageLabel
public FireDamageLabel(int damage, GameObject source)
{
super(String.valueOf(damage), source, Color.ORANGE);
}