fix lowercase colorname (#2094)

This commit is contained in:
zethnest
2020-05-21 21:32:48 +08:00
committed by GitHub
parent 42ba97f872
commit 1c9ad2266d
6 changed files with 6 additions and 6 deletions

View File

@@ -180,7 +180,7 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
} }
if(Core.settings.getBool("playerchat") && ((textFadeTime > 0 && lastText != null) || typing)){ if(Core.settings.getBool("playerchat") && ((textFadeTime > 0 && lastText != null) || typing)){
String text = textFadeTime <= 0 || lastText == null ? "[LIGHT_GRAY]" + Strings.animated(Time.time(), 4, 15f, ".") : lastText; String text = textFadeTime <= 0 || lastText == null ? "[lightgray]" + Strings.animated(Time.time(), 4, 15f, ".") : lastText;
float width = 100f; float width = 100f;
float visualFadeTime = 1f - Mathf.curve(1f - textFadeTime, 0.9f); float visualFadeTime = 1f - Mathf.curve(1f - textFadeTime, 0.9f);
font.setColor(1f, 1f, 1f, textFadeTime <= 0 || lastText == null ? 1f : visualFadeTime); font.setColor(1f, 1f, 1f, textFadeTime <= 0 || lastText == null ? 1f : visualFadeTime);

View File

@@ -48,7 +48,7 @@ public class ContentDisplay{
for(BlockStat stat : map.keys()){ for(BlockStat stat : map.keys()){
table.table(inset -> { table.table(inset -> {
inset.left(); inset.left();
inset.add("[LIGHT_GRAY]" + stat.localized() + ":[] ").left(); inset.add("[lightgray]" + stat.localized() + ":[] ").left();
Array<StatValue> arr = map.get(stat); Array<StatValue> arr = map.get(stat);
for(StatValue value : arr){ for(StatValue value : arr){
value.display(inset); value.display(inset);

View File

@@ -36,7 +36,7 @@ public class AdminsDialog extends FloatingDialog{
Table res = new Table(Tex.button); Table res = new Table(Tex.button);
res.margin(14f); res.margin(14f);
res.labelWrap("[LIGHT_GRAY]" + info.lastName).width(w - h - 24f); res.labelWrap("[lightgray]" + info.lastName).width(w - h - 24f);
res.add().growX(); res.add().growX();
res.button(Icon.cancel, () -> { res.button(Icon.cancel, () -> {
ui.showConfirm("$confirm", "$confirmunadmin", () -> { ui.showConfirm("$confirm", "$confirmunadmin", () -> {

View File

@@ -37,7 +37,7 @@ public class BansDialog extends FloatingDialog{
Table res = new Table(Tex.button); Table res = new Table(Tex.button);
res.margin(14f); res.margin(14f);
res.labelWrap("IP: [LIGHT_GRAY]" + info.lastIP + "\n[]Name: [LIGHT_GRAY]" + info.lastName).width(w - h - 24f); res.labelWrap("IP: [lightgray]" + info.lastIP + "\n[]Name: [lightgray]" + info.lastName).width(w - h - 24f);
res.add().growX(); res.add().growX();
res.button(Icon.cancel, () -> { res.button(Icon.cancel, () -> {
ui.showConfirm("$confirm", "$confirmunban", () -> { ui.showConfirm("$confirm", "$confirmunban", () -> {

View File

@@ -70,7 +70,7 @@ public class GameOverDialog extends FloatingDialog{
for(Item item : content.items()){ for(Item item : content.items()){
if(state.stats.itemsDelivered.get(item, 0) > 0){ if(state.stats.itemsDelivered.get(item, 0) > 0){
t.table(items -> { t.table(items -> {
items.add(" [LIGHT_GRAY]" + state.stats.itemsDelivered.get(item, 0)); items.add(" [lightgray]" + state.stats.itemsDelivered.get(item, 0));
items.image(item.icon(Cicon.small)).size(8 * 3).pad(4); items.image(item.icon(Cicon.small)).size(8 * 3).pad(4);
}).left(); }).left();
t.row(); t.row();

View File

@@ -138,7 +138,7 @@ public class ServerControl implements ApplicationListener{
nextMapOverride = null; nextMapOverride = null;
if(map != null){ if(map != null){
Call.onInfoMessage((state.rules.pvp Call.onInfoMessage((state.rules.pvp
? "[YELLOW]The " + event.winner.name + " team is victorious![]" : "[SCARLET]Game over![]") ? "[yellow]The " + event.winner.name + " team is victorious![]" : "[scarlet]Game over![]")
+ "\nNext selected map:[accent] " + map.name() + "[]" + "\nNext selected map:[accent] " + map.name() + "[]"
+ (map.tags.containsKey("author") && !map.tags.get("author").trim().isEmpty() ? " by[accent] " + map.author() + "[white]" : "") + "." + + (map.tags.containsKey("author") && !map.tags.get("author").trim().isEmpty() ? " by[accent] " + map.author() + "[white]" : "") + "." +
"\nNew game begins in " + roundExtraTime + " seconds."); "\nNew game begins in " + roundExtraTime + " seconds.");