Minor UI style tweaks
This commit is contained in:
@@ -77,9 +77,8 @@ public class Reconstructor extends UnitBlock{
|
||||
table.row();
|
||||
for(var upgrade : upgrades){
|
||||
if(upgrade[0].unlockedNow() && upgrade[1].unlockedNow()){
|
||||
table.table(Tex.whiteui, t -> {
|
||||
table.table(Styles.grayPanel, t -> {
|
||||
t.left();
|
||||
t.setColor(Pal.darkestGray);
|
||||
|
||||
t.image(upgrade[0].uiIcon).size(40).pad(10f).left();
|
||||
t.table(info -> {
|
||||
@@ -88,16 +87,13 @@ public class Reconstructor extends UnitBlock{
|
||||
}).pad(10).left();
|
||||
}).fill().padTop(5).padBottom(5);
|
||||
|
||||
table.table(t -> {
|
||||
t.setBackground(Tex.whiteui);
|
||||
t.setColor(Pal.darkestGray);
|
||||
table.table(Styles.grayPanel, t -> {
|
||||
|
||||
t.image(Icon.right).color(Pal.darkishGray).size(40).pad(10f);
|
||||
}).fill().padTop(5).padBottom(5);
|
||||
|
||||
table.table(Tex.whiteui, t -> {
|
||||
table.table(Styles.grayPanel, t -> {
|
||||
t.left();
|
||||
t.setColor(Pal.darkestGray);
|
||||
|
||||
t.image(upgrade[1].uiIcon).size(40).pad(10f).right();
|
||||
t.table(info -> {
|
||||
|
||||
@@ -136,9 +136,7 @@ public class UnitAssembler extends PayloadBlock{
|
||||
int tier = 0;
|
||||
for(var plan : plans){
|
||||
int ttier = tier;
|
||||
table.table(t -> {
|
||||
t.setBackground(Tex.whiteui);
|
||||
t.setColor(Pal.darkestGray);
|
||||
table.table(Styles.grayPanel, t -> {
|
||||
|
||||
if(plan.unit.isBanned()){
|
||||
t.image(Icon.cancel).color(Pal.remove).size(40).pad(10);
|
||||
@@ -146,7 +144,7 @@ public class UnitAssembler extends PayloadBlock{
|
||||
}
|
||||
|
||||
if(plan.unit.unlockedNow()){
|
||||
t.image(plan.unit.uiIcon).size(40).pad(10f).left();
|
||||
t.image(plan.unit.uiIcon).scaling(Scaling.fit).size(40).pad(10f).left();
|
||||
t.table(info -> {
|
||||
info.defaults().left();
|
||||
info.add(plan.unit.localizedName);
|
||||
|
||||
@@ -109,9 +109,7 @@ public class UnitFactory extends UnitBlock{
|
||||
table.row();
|
||||
|
||||
for(var plan : plans){
|
||||
table.table(t -> {
|
||||
t.setBackground(Tex.whiteui);
|
||||
t.setColor(Pal.darkestGray);
|
||||
table.table(Styles.grayPanel, t -> {
|
||||
|
||||
if(plan.unit.isBanned()){
|
||||
t.image(Icon.cancel).color(Pal.remove).size(40);
|
||||
|
||||
Reference in New Issue
Block a user