Turn notification
This commit is contained in:
@@ -41,7 +41,13 @@ public class HudFragment extends Fragment{
|
||||
|
||||
private long lastToast;
|
||||
|
||||
@Override
|
||||
public void build(Group parent){
|
||||
Events.on(TurnEvent.class, e -> {
|
||||
//TODO localize, clean up, etc
|
||||
int attacked = universe.getSectorsAttacked();
|
||||
showToast("New turn: [accent]" + universe.getTurn() + "[]" + (attacked > 0 ? "\n[scarlet]" + Iconc.warning + " " + attacked + " sectors attacked!": ""));
|
||||
});
|
||||
|
||||
//menu at top left
|
||||
parent.fill(cont -> {
|
||||
|
||||
Reference in New Issue
Block a user