forked from unimatrix/web
Redesign the Mission Journal as a parchment ledger
This commit is contained in:
parent
3fb07357df
commit
7215f9aab2
1 changed files with 151 additions and 9 deletions
|
|
@ -183,7 +183,7 @@ final class OrganisationMenus implements Listener {
|
|||
});
|
||||
}
|
||||
private void warStatus(Player p,Runnable back){
|
||||
var screen=panel(p,"War report",false);screen.nativeStyle=DecisionsViewTransport.Style.JOURNAL;screen.nativeSetting="development.fullscreen-organisation-viewers";JsonObject result;
|
||||
var screen=panel(p,"War report",false);screen.nativeStyle=DecisionsViewTransport.Style.ORGANISATION;screen.nativeSetting="development.fullscreen-organisation-viewers";JsonObject result;
|
||||
try{result=bridge.warReport(p.getUniqueId());}catch(Exception unavailable){p.sendMessage("War reports are temporarily unavailable.");return;}
|
||||
var campaigns=result.getAsJsonArray("campaigns");
|
||||
if(campaigns==null||campaigns.isEmpty())put(screen,22,"No active deployment","No current roster lease.\nArrange wars through your Clan or POL control panel.",Material.MAP,()->warStatus(p,back));
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff