Fixed objective team selection

This commit is contained in:
Anuken
2026-02-23 00:53:51 -05:00
parent 48d3fa1c11
commit dc1e36bcd2
2 changed files with 3 additions and 3 deletions

View File

@@ -140,10 +140,10 @@ public class MapObjectivesDialog extends BaseDialog{
setInterpreter(Team.class, (cont, name, type, field, remover, indexer, get, set) -> {
name(cont, name, remover, indexer);
cont.table(t -> t.left().button(
b -> b.image(Tex.whiteui).size(iconSmall).update(i -> i.setColor(get.get().color)),
b -> b.image(Tex.whiteui).update(i -> i.setColor(get.get().color)).grow(),
Styles.squarei,
() -> showTeamSelect(set)
).fill().pad(4f)).growX().fillY();
).margin(4f).pad(4f).size(50f)).growX().fillY();
});
setProvider(Color.class, (type, cons) -> cons.get(Pal.accent.cpy()));