Compare commits
1
Commits
b14c5c4ffa
...
54578534d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54578534d1 |
@@ -1,38 +1,38 @@
|
|||||||
package org.saturnclient.cosmetics;
|
package org.saturnclient.cosmetics;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
import org.saturnclient.client.ServiceClient;
|
import org.saturnclient.client.ServiceClient;
|
||||||
import org.saturnclient.client.player.SaturnPlayer;
|
import org.saturnclient.client.player.SaturnPlayer;
|
||||||
import org.saturnclient.common.ref.asset.IdentifierRef;
|
import org.saturnclient.common.ref.asset.IdentifierRef;
|
||||||
|
|
||||||
import java.util.*;
|
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
|
||||||
|
|
||||||
public class Cloaks {
|
public class Cloaks {
|
||||||
|
|
||||||
public static final String[] ALL_CLOAKS = {
|
public static final String[] ALL_CLOAKS = {
|
||||||
"glitch",
|
"glitch",
|
||||||
"mercedes_flow",
|
"mercedes_flow",
|
||||||
"crimson_mark",
|
"crimson_mark",
|
||||||
"bmw",
|
"redbull",
|
||||||
"amg",
|
"redbull_plus",
|
||||||
"amg_petronas",
|
"black_hole_amethyst",
|
||||||
"ferrari",
|
"black_hole_flame",
|
||||||
"redbull",
|
"black_hole_white",
|
||||||
"black_hole_amethyst",
|
"albania_mark",
|
||||||
"black_hole_flame",
|
"end",
|
||||||
"black_hole_white",
|
"spanish_empire",
|
||||||
"albania_mark",
|
"spain_flag",
|
||||||
"end",
|
};
|
||||||
"spanish_empire",
|
|
||||||
"spain_flag" };
|
|
||||||
|
|
||||||
private static final String[] ANIMATED_CLOAKS = {
|
private static final String[] ANIMATED_CLOAKS = {
|
||||||
"glitch",
|
"glitch",
|
||||||
"black_hole_amethyst",
|
"black_hole_amethyst",
|
||||||
"black_hole_flame",
|
"black_hole_flame",
|
||||||
"black_hole_white" };
|
"black_hole_white",
|
||||||
|
};
|
||||||
|
|
||||||
// Written by network callbacks, read by the UI thread.
|
// 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() {
|
public static void initialize() {
|
||||||
availableCloaks.add(0, "");
|
availableCloaks.add(0, "");
|
||||||
@@ -43,13 +43,19 @@ public class Cloaks {
|
|||||||
* has no texture for, which would otherwise draw as the missing texture.
|
* has no texture for, which would otherwise draw as the missing texture.
|
||||||
*/
|
*/
|
||||||
public static IdentifierRef getCurrentCloakTexture(String cloakName) {
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) {
|
if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) {
|
||||||
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".gif");
|
return IdentifierRef.ofSaturn(
|
||||||
|
"textures/cloaks/" + cloakName + ".gif"
|
||||||
|
);
|
||||||
} else {
|
} 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