An ok reusable motor appearance
This commit is contained in:
parent
c1c4f99992
commit
05263e5056
BIN
core/resources/datafiles/textures/motors/reusable.png
Normal file
BIN
core/resources/datafiles/textures/motors/reusable.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
@ -13,6 +13,7 @@ public class MotorAppearance extends Appearance {
|
|||||||
|
|
||||||
private static MotorAppearance ESTES = new MotorAppearance("/datafiles/textures/motors/estes.png");
|
private static MotorAppearance ESTES = new MotorAppearance("/datafiles/textures/motors/estes.png");
|
||||||
private static MotorAppearance AEROTECH = new MotorAppearance("/datafiles/textures/motors/aerotech.png");
|
private static MotorAppearance AEROTECH = new MotorAppearance("/datafiles/textures/motors/aerotech.png");
|
||||||
|
private static MotorAppearance REUSABLE = new MotorAppearance("/datafiles/textures/motors/reusable.png", new Color(195, 60, 50), .6);
|
||||||
|
|
||||||
public static Appearance getAppearance(Motor m) {
|
public static Appearance getAppearance(Motor m) {
|
||||||
if (m instanceof ThrustCurveMotor) {
|
if (m instanceof ThrustCurveMotor) {
|
||||||
@ -24,7 +25,7 @@ public class MotorAppearance extends Appearance {
|
|||||||
return AEROTECH;
|
return AEROTECH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Appearance.MISSING;
|
return REUSABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected MotorAppearance(final String resource) {
|
protected MotorAppearance(final String resource) {
|
||||||
@ -39,4 +40,16 @@ public class MotorAppearance extends Appearance {
|
|||||||
new ResourceDecalImage(resource), EdgeMode.REPEAT));
|
new ResourceDecalImage(resource), EdgeMode.REPEAT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected MotorAppearance(final String resource, Color c, double shine) {
|
||||||
|
super(
|
||||||
|
c,
|
||||||
|
shine,
|
||||||
|
new Decal(
|
||||||
|
new Coordinate(0, 0),
|
||||||
|
new Coordinate(0, 0),
|
||||||
|
new Coordinate(1, 1),
|
||||||
|
0,
|
||||||
|
new ResourceDecalImage(resource), EdgeMode.REPEAT));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user