Cleanup
This commit is contained in:
@@ -36,12 +36,17 @@ public class ContentInfoDialog extends BaseDialog{
|
||||
table.row();
|
||||
|
||||
if(content.description != null){
|
||||
table.add("@category.purpose").color(Pal.accent).fillX().padTop(10);
|
||||
table.row();
|
||||
table.add("[lightgray]" + content.displayDescription()).wrap().fillX().padLeft(10).width(500f).left();
|
||||
var any = content.stats.toMap().size > 0;
|
||||
|
||||
if(any){
|
||||
table.add("@category.purpose").color(Pal.accent).fillX().padTop(10);
|
||||
table.row();
|
||||
}
|
||||
|
||||
table.add("[lightgray]" + content.displayDescription()).wrap().fillX().padLeft(any ? 10 : 0).width(500f).padTop(any ? 0 : 10).left();
|
||||
table.row();
|
||||
|
||||
if(!content.stats.useCategories){
|
||||
if(!content.stats.useCategories && any){
|
||||
table.add("@category.general").fillX().color(Pal.accent);
|
||||
table.row();
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
stable.background(Styles.black6);
|
||||
|
||||
stable.table(title -> {
|
||||
title.add("[accent]" + sector.name());
|
||||
title.add("[accent]" + sector.name()).padLeft(3);
|
||||
if(sector.preset == null){
|
||||
title.add().growX();
|
||||
|
||||
@@ -396,6 +396,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
closeOnBack();
|
||||
setFillParent(true);
|
||||
cont.pane(t -> {
|
||||
t.marginRight(19f);
|
||||
t.defaults().size(48);
|
||||
|
||||
t.button(Icon.none, Styles.clearTogglei, () -> {
|
||||
|
||||
@@ -484,7 +484,7 @@ public class ResearchDialog extends BaseDialog{
|
||||
infoTable.table(b -> {
|
||||
b.margin(0).left().defaults().left();
|
||||
|
||||
if(selectable){
|
||||
if(selectable && (node.content.description != null || node.content.stats.toMap().size > 0)){
|
||||
b.button(Icon.info, Styles.cleari, () -> ui.content.show(node.content)).growY().width(50f);
|
||||
}
|
||||
b.add().grow();
|
||||
@@ -579,7 +579,7 @@ public class ResearchDialog extends BaseDialog{
|
||||
});
|
||||
|
||||
infoTable.row();
|
||||
if(node.content.description != null && selectable){
|
||||
if(node.content.description != null && node.content.inlineDescription && selectable){
|
||||
infoTable.table(t -> t.margin(3f).left().labelWrap(node.content.displayDescription()).color(Color.lightGray).growX()).fillX();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user