This commit is contained in:
J-VdS
2020-09-22 18:42:59 +02:00
parent f4003fd463
commit 393ca67291
2 changed files with 0 additions and 10 deletions

View File

@@ -40,15 +40,10 @@ public class Rules{
public boolean reactorExplosions = true;
/** Whether schematics are allowed */
public boolean schematicAllowed = true;
<<<<<<< HEAD
=======
/** Whether copying is allowed */
public boolean copyAllowed = true;
/** Whether friendly explosions can occur and set fire/damage other blocks. */
public boolean damageExplosions = true;
/** Whether fire is enabled. */
public boolean fire = true;
>>>>>>> fee15caf7aa42f112eebe4c465885b6c37fd51a5
/** Whether units use and require ammo. */
public boolean unitAmmo = false;
/** How fast unit pads build units. */

View File

@@ -344,12 +344,7 @@ public class DesktopInput extends InputHandler{
table.button(Icon.paste, Styles.clearPartiali, () -> {
ui.schematics.show();
<<<<<<< HEAD
}).tooltip("Schematics");
=======
}).tooltip("@schematics").disabled(d -> !state.rules.schematicAllowed);
>>>>>>> fee15caf7aa42f112eebe4c465885b6c37fd51a5
table.button(Icon.tree, Styles.clearPartiali, () -> {
ui.research.show();