Progress on automatic ping colors
This commit is contained in:
parent
b5df22f881
commit
f1e711fe4c
3 changed files with 21 additions and 2 deletions
|
@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||
loader_version=0.9.2+build.206
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.0.0
|
||||
mod_version = 1.1.0
|
||||
maven_group = com.vladmarica
|
||||
archives_base_name = BetterPingDisplay
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package com.vladmarica.betterpingdisplay.hud;
|
||||
|
||||
|
||||
// start: #00e676
|
||||
// mid #d6cd30
|
||||
// end #e53935
|
||||
public class PingColors {
|
||||
public static int getColor(int ping) {
|
||||
if (ping < 0) {
|
||||
return 0x535353;
|
||||
}
|
||||
if (ping < 150) {
|
||||
return 0x00E676;
|
||||
}
|
||||
if (ping < 300) {
|
||||
return 0xC6FF00;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "modid",
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
|
||||
"name": "Better Ping Display",
|
||||
"description": "Shows the actual ping number instead of just bars in the player list.!",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue