Compare commits
1
Commits
b14c5c4ffa
...
54578534d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54578534d1 |
@@ -1,38 +1,38 @@
|
||||
package org.saturnclient.cosmetics;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import org.saturnclient.client.ServiceClient;
|
||||
import org.saturnclient.client.player.SaturnPlayer;
|
||||
import org.saturnclient.common.ref.asset.IdentifierRef;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
public class Cloaks {
|
||||
|
||||
public static final String[] ALL_CLOAKS = {
|
||||
"glitch",
|
||||
"mercedes_flow",
|
||||
"crimson_mark",
|
||||
"bmw",
|
||||
"amg",
|
||||
"amg_petronas",
|
||||
"ferrari",
|
||||
"redbull",
|
||||
"black_hole_amethyst",
|
||||
"black_hole_flame",
|
||||
"black_hole_white",
|
||||
"albania_mark",
|
||||
"end",
|
||||
"spanish_empire",
|
||||
"spain_flag" };
|
||||
"glitch",
|
||||
"mercedes_flow",
|
||||
"crimson_mark",
|
||||
"redbull",
|
||||
"redbull_plus",
|
||||
"black_hole_amethyst",
|
||||
"black_hole_flame",
|
||||
"black_hole_white",
|
||||
"albania_mark",
|
||||
"end",
|
||||
"spanish_empire",
|
||||
"spain_flag",
|
||||
};
|
||||
|
||||
private static final String[] ANIMATED_CLOAKS = {
|
||||
"glitch",
|
||||
"black_hole_amethyst",
|
||||
"black_hole_flame",
|
||||
"black_hole_white" };
|
||||
"glitch",
|
||||
"black_hole_amethyst",
|
||||
"black_hole_flame",
|
||||
"black_hole_white",
|
||||
};
|
||||
|
||||
// Written by network callbacks, read by the UI thread.
|
||||
public static final List<String> availableCloaks = new CopyOnWriteArrayList<>();
|
||||
public static final List<String> availableCloaks =
|
||||
new CopyOnWriteArrayList<>();
|
||||
|
||||
public static void initialize() {
|
||||
availableCloaks.add(0, "");
|
||||
@@ -43,13 +43,19 @@ public class Cloaks {
|
||||
* has no texture for, which would otherwise draw as the missing texture.
|
||||
*/
|
||||
public static IdentifierRef getCurrentCloakTexture(String cloakName) {
|
||||
if (cloakName == null || !Arrays.asList(ALL_CLOAKS).contains(cloakName)) {
|
||||
if (
|
||||
cloakName == null || !Arrays.asList(ALL_CLOAKS).contains(cloakName)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) {
|
||||
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".gif");
|
||||
return IdentifierRef.ofSaturn(
|
||||
"textures/cloaks/" + cloakName + ".gif"
|
||||
);
|
||||
} else {
|
||||
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".png");
|
||||
return IdentifierRef.ofSaturn(
|
||||
"textures/cloaks/" + cloakName + ".png"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 151 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 167 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 140 KiB |
Reference in New Issue
Block a user