隐藏原版主副切换按钮
This commit is contained in:
parent
d1e323a6a4
commit
13eacebbfb
|
|
@ -72,12 +72,12 @@ public abstract class PatternEncodingTermScaleButtonsMixin<T extends AEBaseMenu>
|
||||||
ScaleEncodingPatternC2SPacket.Operation.DIV5);
|
ScaleEncodingPatternC2SPacket.Operation.DIV5);
|
||||||
this.eap$swapOutputsButton = eap$createStandaloneButton(
|
this.eap$swapOutputsButton = eap$createStandaloneButton(
|
||||||
EAP$SWAP_OUTPUT_TEXTURE,
|
EAP$SWAP_OUTPUT_TEXTURE,
|
||||||
"主副切换",
|
Component.translatable("extendedae_plus.tooltip.swap_processing_outputs"),
|
||||||
ScaleEncodingPatternC2SPacket.Operation.SWAP_OUTPUTS
|
ScaleEncodingPatternC2SPacket.Operation.SWAP_OUTPUTS
|
||||||
);
|
);
|
||||||
this.eap$restoreRatioButton = eap$createStandaloneButton(
|
this.eap$restoreRatioButton = eap$createStandaloneButton(
|
||||||
EAP$RESTORE_RATIO_TEXTURE,
|
EAP$RESTORE_RATIO_TEXTURE,
|
||||||
"恢复比例",
|
Component.translatable("extendedae_plus.tooltip.restore_processing_ratio"),
|
||||||
ScaleEncodingPatternC2SPacket.Operation.RESTORE_RATIO
|
ScaleEncodingPatternC2SPacket.Operation.RESTORE_RATIO
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -156,7 +156,7 @@ public abstract class PatternEncodingTermScaleButtonsMixin<T extends AEBaseMenu>
|
||||||
}
|
}
|
||||||
|
|
||||||
@Unique
|
@Unique
|
||||||
private ScaledTextureButton eap$createStandaloneButton(ResourceLocation texture, String tooltipText,
|
private ScaledTextureButton eap$createStandaloneButton(ResourceLocation texture, Component tooltipText,
|
||||||
ScaleEncodingPatternC2SPacket.Operation op) {
|
ScaleEncodingPatternC2SPacket.Operation op) {
|
||||||
return new ScaledTextureButton(
|
return new ScaledTextureButton(
|
||||||
texture,
|
texture,
|
||||||
|
|
@ -167,7 +167,7 @@ public abstract class PatternEncodingTermScaleButtonsMixin<T extends AEBaseMenu>
|
||||||
16,
|
16,
|
||||||
16,
|
16,
|
||||||
0.375f,
|
0.375f,
|
||||||
Component.literal(tooltipText),
|
tooltipText,
|
||||||
btn -> PacketDistributor.sendToServer(new ScaleEncodingPatternC2SPacket(op))
|
btn -> PacketDistributor.sendToServer(new ScaleEncodingPatternC2SPacket(op))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.extendedae_plus.mixin.ae2.client.gui;
|
||||||
|
|
||||||
|
import appeng.client.gui.me.items.ProcessingEncodingPanel;
|
||||||
|
import appeng.client.gui.widgets.ActionButton;
|
||||||
|
import org.spongepowered.asm.mixin.Final;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
|
@Mixin(value = ProcessingEncodingPanel.class, remap = false)
|
||||||
|
public abstract class ProcessingEncodingPanelMixin {
|
||||||
|
@Shadow
|
||||||
|
@Final
|
||||||
|
private ActionButton cycleOutputBtn;
|
||||||
|
|
||||||
|
@Inject(method = "setVisible", at = @At("TAIL"), remap = false)
|
||||||
|
private void eap$hideVanillaCycleOutputButton(boolean visible, CallbackInfo ci) {
|
||||||
|
this.cycleOutputBtn.setVisibility(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -104,6 +104,8 @@
|
||||||
"extendedae_plus.tooltip.frequency": "Frequency: %d",
|
"extendedae_plus.tooltip.frequency": "Frequency: %d",
|
||||||
"extendedae_plus.tooltip.master_mode": "Mode: %s",
|
"extendedae_plus.tooltip.master_mode": "Mode: %s",
|
||||||
"extendedae_plus.tooltip.locked": "Lock Status: %s",
|
"extendedae_plus.tooltip.locked": "Lock Status: %s",
|
||||||
|
"extendedae_plus.tooltip.swap_processing_outputs": "Swap Primary/Secondary Outputs",
|
||||||
|
"extendedae_plus.tooltip.restore_processing_ratio": "Restore Simplified Ratio",
|
||||||
|
|
||||||
"screen.extendedae_plus.title": "ExtendedAE Plus Configuration",
|
"screen.extendedae_plus.title": "ExtendedAE Plus Configuration",
|
||||||
"config.extendedae_plus": "ExtendedAE Plus",
|
"config.extendedae_plus": "ExtendedAE Plus",
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,8 @@
|
||||||
"extendedae_plus.tooltip.master_mode": "模式: %s",
|
"extendedae_plus.tooltip.master_mode": "模式: %s",
|
||||||
"extendedae_plus.tooltip.locked": "锁定状态: %s",
|
"extendedae_plus.tooltip.locked": "锁定状态: %s",
|
||||||
"extendedae_plus.tooltip.locked_state": "状态: %s",
|
"extendedae_plus.tooltip.locked_state": "状态: %s",
|
||||||
|
"extendedae_plus.tooltip.swap_processing_outputs": "主副切换",
|
||||||
|
"extendedae_plus.tooltip.restore_processing_ratio": "恢复比例",
|
||||||
|
|
||||||
"gui.extendedae_plus.frequency_input.title": "设置频率",
|
"gui.extendedae_plus.frequency_input.title": "设置频率",
|
||||||
"gui.extendedae_plus.frequency_input.field": "频率",
|
"gui.extendedae_plus.frequency_input.field": "频率",
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
"ae2.accessor.PatternAccessTermScreenSlotsRowAccessor",
|
"ae2.accessor.PatternAccessTermScreenSlotsRowAccessor",
|
||||||
"ae2.client.gui.AEBaseScreenMixin",
|
"ae2.client.gui.AEBaseScreenMixin",
|
||||||
"ae2.client.gui.InterfaceScreenMixin",
|
"ae2.client.gui.InterfaceScreenMixin",
|
||||||
|
"ae2.client.gui.ProcessingEncodingPanelMixin",
|
||||||
"ae2.client.gui.PatternEncodingTermScreenMixin",
|
"ae2.client.gui.PatternEncodingTermScreenMixin",
|
||||||
"ae2.client.gui.PatternEncodingTermScaleButtonsMixin",
|
"ae2.client.gui.PatternEncodingTermScaleButtonsMixin",
|
||||||
"ae2.client.gui.PatternEncodingTermUploadMixin",
|
"ae2.client.gui.PatternEncodingTermUploadMixin",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user