mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Disable sector info for specific sectors (#6151)
* showSectorLandInfo * showSectorLandInfo type
This commit is contained in:
parent
095cc27ea6
commit
ec1124499f
2 changed files with 2 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||
Effect.shake(5f, 5f, core);
|
||||
core.thrusterTime = 1f;
|
||||
|
||||
if(state.isCampaign() && Vars.showSectorLandInfo){
|
||||
if(state.isCampaign() && Vars.showSectorLandInfo && (state.rules.sector.preset == null || state.rules.sector.preset.showSectorLandInfo)){
|
||||
ui.announce("[accent]" + state.rules.sector.name() + "\n" +
|
||||
(state.rules.sector.info.resources.any() ? "[lightgray]" + bundle.get("sectors.resources") + "[white] " +
|
||||
state.rules.sector.info.resources.toString(" ", u -> u.emoji()) : ""), 5);
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ public class SectorPreset extends UnlockableContent{
|
|||
public float difficulty;
|
||||
public float startWaveTimeMultiplier = 2f;
|
||||
public boolean addStartingItems = false;
|
||||
public boolean showSectorLandInfo = true;
|
||||
|
||||
public SectorPreset(String name, Planet planet, int sector){
|
||||
super(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue