Skip to content

Commit

Permalink
Temporarily disabled /dae2 gui
Browse files Browse the repository at this point in the history
  • Loading branch information
DaNussi committed Oct 22, 2023
1 parent 196f837 commit 9333b4f
Show file tree
Hide file tree
Showing 7 changed files with 591 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class CommandInit {
public static void onCommandsRegister(RegisterCommandsEvent event) {
LiteralArgumentBuilder<CommandSourceStack> builder = Commands.literal("dae2");

new GuiCommand().ConfigureCommand(builder);
// new GuiCommand().ConfigureCommand(builder);

new StartCommand().ConfigureCommand(builder);
new StopCommand().ConfigureCommand(builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.renderer.GameRenderer;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.nussi.dedicated_applied_energistics.DedicatedAppliedEnegistics;
Expand Down Expand Up @@ -49,10 +50,10 @@ public void render(PoseStack poseStack, int mouseX, int mouseY, float partialTic



RenderSystem.setShader(GameRenderer::getPositionTexShader);
RenderSystem.setShaderColor(1,1,1,1);
// RenderSystem.setShader(GameRenderer::getPositionTexShader);
// RenderSystem.setShaderColor(1,1,1,1);
RenderSystem.setShaderTexture(0, IMAGE_SETTINGS_INFO);
blit(poseStack, 0, 0, 0, 0, IMAGE_SETTINGS_WIDTH, IMAGE_SETTINGS_HEIGHT, IMAGE_SETTINGS_WIDTH, IMAGE_SETTINGS_HEIGHT);
GuiComponent.blit(poseStack, 0, 0, 0, 0, IMAGE_SETTINGS_WIDTH, IMAGE_SETTINGS_HEIGHT, IMAGE_SETTINGS_WIDTH, IMAGE_SETTINGS_HEIGHT);

// String text = "Hello, Minecraft!";
// int x = width / 2 - font.width(text);
Expand All @@ -61,6 +62,8 @@ public void render(PoseStack poseStack, int mouseX, int mouseY, float partialTic
// GuiComponent.drawString(poseStack, font, text, x, y, color);




// Add ticking logic for EditBox in editBox
if(this.button != null) this.button.renderButton(poseStack, mouseX, mouseY, partialTicks);
}
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9333b4f

Please sign in to comment.