Added an option to disable the colored crafting status
This commit is contained in:
parent
b8e2d73aa0
commit
6476a519bb
|
@ -44,6 +44,7 @@ import appeng.client.gui.AEBaseGui;
|
|||
import appeng.client.gui.widgets.GuiScrollbar;
|
||||
import appeng.client.gui.widgets.ISortSource;
|
||||
import appeng.container.implementations.ContainerCraftingCPU;
|
||||
import appeng.core.AEConfig;
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.localization.GuiText;
|
||||
import appeng.core.sync.network.NetworkHandler;
|
||||
|
@ -324,15 +325,15 @@ public class GuiCraftingCPU extends AEBaseGui implements ISortSource
|
|||
lines++;
|
||||
scheduled = true;
|
||||
}
|
||||
|
||||
if ( active || scheduled )
|
||||
|
||||
if ( AEConfig.instance.useColoredCraftingStatus && ( active || scheduled ) )
|
||||
{
|
||||
int bgcol = ( active ? AEColor.Green.blackVariant : AEColor.Yellow.blackVariant ) | 0x5A000000;
|
||||
int startX = (x * (1 + sectionLength) + xo) * 2;
|
||||
int startY = ((y * offY + yo) - 3) * 2;
|
||||
drawRect( startX, startY, startX + (sectionLength * 2), startY + (offY * 2) - 2, bgcol);
|
||||
}
|
||||
|
||||
|
||||
int negY = ((lines - 1) * 5) / 2;
|
||||
int downY = 0;
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
|
|||
|
||||
public boolean enableEffects = true;
|
||||
public boolean useLargeFonts = false;
|
||||
public boolean useColoredCraftingStatus;
|
||||
public final int[] craftByStacks = new int[] { 1, 10, 100, 1000 };
|
||||
public final int[] priorityByStacks = new int[] { 1, 10, 100, 1000 };
|
||||
public final int[] levelByStacks = new int[] { 1, 10, 100, 1000 };
|
||||
|
@ -156,6 +157,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
|
|||
|
||||
public int craftingCalculationTimePerTick = 5;
|
||||
|
||||
|
||||
@SubscribeEvent
|
||||
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs)
|
||||
{
|
||||
|
@ -170,6 +172,7 @@ public class AEConfig extends Configuration implements IConfigurableObject, ICon
|
|||
this.disableColoredCableRecipesInNEI = this.get( "Client", "disableColoredCableRecipesInNEI", true ).getBoolean( true );
|
||||
this.enableEffects = this.get( "Client", "enableEffects", true ).getBoolean( true );
|
||||
this.useLargeFonts = this.get( "Client", "useTerminalUseLargeFont", false ).getBoolean( false );
|
||||
this.useColoredCraftingStatus = this.get( "Client", "useColoredCraftingStatus", true ).getBoolean( true );
|
||||
|
||||
// load buttons..
|
||||
for (int btnNum = 0; btnNum < 4; btnNum++)
|
||||
|
|
Loading…
Reference in a new issue