add names to some major dialog elements

This commit is contained in:
DeltaNedas
2020-10-11 12:57:18 +01:00
parent a60ae3a060
commit 1539d86846
3 changed files with 34 additions and 34 deletions

View File

@@ -38,14 +38,15 @@ public class PausedDialog extends BaseDialog{
cont.label(() -> state.getSector() == null ? "" :
("[lightgray]Next turn in [accent]" + state.getSector().displayTimeRemaining() +
(state.rules.winWave > 0 && !state.getSector().isCaptured() ? "\n[lightgray]Reach wave[accent] " + state.rules.winWave + "[] to capture" : "")))
.visible(() -> state.getSector() != null).colspan(2);
.visible(() -> state.getSector() != null).colspan(2)
.name("turn");
cont.row();
float dw = 220f;
cont.defaults().width(dw).height(55).pad(5f);
cont.button("@back", Icon.left, this::hide);
cont.button("@settings", Icon.settings, ui.settings::show);
cont.button("@back", Icon.left, this::hide).name("back");
cont.button("@settings", Icon.settings, ui.settings::show).name("settings");
if(!state.rules.tutorial){
if(!state.isCampaign() && !state.isEditor()){