Better implementation of #8810
This commit is contained in:
@@ -40,6 +40,10 @@ public class Team implements Comparable<Team>{
|
||||
|
||||
static{
|
||||
Mathf.rand.setSeed(8);
|
||||
//fix random seed shift caused by new team
|
||||
for(int i = 0; i < 3; i++){
|
||||
Mathf.random();
|
||||
}
|
||||
//create the whole 256 placeholder teams
|
||||
for(int i = 7; i < all.length; i++){
|
||||
new Team(i, "team#" + i, Color.HSVtoRGB(360f * Mathf.random(), 100f * Mathf.random(0.4f, 1f), 100f * Mathf.random(0.6f, 1f), 1f));
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CoreItemsDisplay extends Table{
|
||||
if(usedItems.contains(item)){
|
||||
image(item.uiIcon).size(iconSmall).padRight(3).tooltip(t -> t.background(Styles.black6).margin(4f).add(item.localizedName).style(Styles.outlineLabel));
|
||||
//TODO leaks garbage
|
||||
label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).minWidth(52f).left();
|
||||
label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).minWidth(52f).left().tooltip(t -> t.background(Styles.black6).margin(4f).label(() -> core == null ? "0" : core.items.get(item) + "").style(Styles.outlineLabel));
|
||||
|
||||
if(++i % 4 == 0){
|
||||
row();
|
||||
|
||||
Reference in New Issue
Block a user