Skip to content

Commit

Permalink
fixup! C: TimeControl
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer committed Apr 10, 2024
1 parent a737e8b commit b830261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustryX/features/TimeControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static float getGameSpeed(){
}

public static void draw(Table table){
table.label(() -> "沙漏:x" + Strings.autoFixed(getGameSpeed(), 2)).width(18f * 6);
table.label(() -> "x" + Strings.autoFixed(getGameSpeed(), 2)).width(18f * 3);

table.button("/2", Styles.cleart, () -> setGameSpeed(gameSpeed * 0.5f)).tooltip("[acid]将时间流速放慢到一半").size(40f, 30f);
table.button("×2", Styles.cleart, () -> setGameSpeed(gameSpeed * 2f)).tooltip("[acid]将时间流速加快到两倍").size(40f, 30f);
Expand All @@ -80,6 +80,6 @@ public static void draw(Table table){
if(!Strings.canParsePositiveInt(s)) return false;
int num = Integer.parseInt(s);
return 2 <= num && num < 10000;
}).tooltip("允许的范围:2~9999").size(90f, 30f);
}).tooltip("允许的范围:2~9999").size(80f, 30f);
}
}

0 comments on commit b830261

Please sign in to comment.