-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
exhq
committed
Aug 21, 2023
1 parent
a3a4961
commit 7cc097d
Showing
12 changed files
with
153 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dev.exhq; | ||
|
||
import io.wispforest.owo.config.annotation.Config; | ||
import io.wispforest.owo.config.annotation.ExcludeFromScreen; | ||
import io.wispforest.owo.config.annotation.Modmenu; | ||
|
||
@Modmenu(modId = "essm") | ||
@Config(name = "ESSMConfig", wrapperName = "ESSMConfig") | ||
public class ESSMConfigModel { | ||
|
||
public boolean VanillaHeartToggle = false; | ||
|
||
@ExcludeFromScreen | ||
public ESSMhud.PosData Heart = new ESSMhud.PosData(); | ||
public ESSMhud.PosData XP = new ESSMhud.PosData(); | ||
|
||
public ESSMhud.PosData Health = new ESSMhud.PosData(); | ||
|
||
public ESSMhud.PosData Mana = new ESSMhud.PosData(); | ||
public ESSMhud.PosData UsedMana = new ESSMhud.PosData(); | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dev.exhq; | ||
|
||
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.gui.DrawContext; | ||
|
||
public class ManaUsage implements HudRenderCallback { | ||
public static boolean showMana = false; | ||
public static String ManaUsage = "0"; | ||
|
||
@Override | ||
public void onHudRender(DrawContext drawContext, float tickDelta) { | ||
if (showMana){ | ||
drawContext.getMatrices().push(); | ||
ESSMhud.UsedMana.applyTransformations(drawContext.getMatrices()); | ||
drawContext.drawTextWithShadow(MinecraftClient.getInstance().textRenderer, ManaUsage, 0,0, 0xff54fcfc); | ||
drawContext.getMatrices().pop(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,39 @@ | ||
package dev.exhq; | ||
|
||
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.gui.DrawContext; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.Items; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class Trolley implements HudRenderCallback { | ||
private static final Identifier TROLLEYEMPTY = new Identifier(EchosShittySkyBlockMod.MOD_ID, "textures/trolley/trolleyempty.png"); | ||
private static final Identifier TROLLEY = new Identifier(EchosShittySkyBlockMod.MOD_ID, "textures/trolley/trolley.png"); | ||
|
||
private static final Identifier TROLLEYMANAEMPTY = new Identifier(EchosShittySkyBlockMod.MOD_ID, "textures/trolley/trolleymanaempty.png"); | ||
private static final Identifier TROLLEYMANA = new Identifier(EchosShittySkyBlockMod.MOD_ID, "textures/trolley/trolleymana.png"); | ||
public static int healthprogress = 128; | ||
|
||
public static int progress = 128; | ||
public static int manaprogress = 128; | ||
|
||
@Override | ||
public void onHudRender(DrawContext drawContext, float tickDelta) { | ||
int x = 0; | ||
int y = 0; | ||
drawContext.getMatrices().push(); | ||
ESSMhud.Trolley.applyTransformations(drawContext.getMatrices()); | ||
drawContext.drawTexture(TROLLEY, x,y,0,0,progress,128, 128,128); | ||
drawContext.drawTexture(TROLLEYEMPTY, x,y,0,0,128,16, 128,16); | ||
drawContext.drawTexture(TROLLEY, x,y,0,0, healthprogress,16, 128,16); | ||
drawContext.getMatrices().pop(); | ||
|
||
drawContext.getMatrices().push(); | ||
ESSMhud.Trolleymana.applyTransformations(drawContext.getMatrices()); | ||
drawContext.drawTexture(TROLLEYMANAEMPTY, x,y,0,0,128,16, 128,16); | ||
drawContext.drawTexture(TROLLEYMANA, x,y,0,0, manaprogress,16, 128,16); | ||
drawContext.getMatrices().pop(); | ||
|
||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-14.9 KB
(27%)
src/client/resources/assets/essm/textures/trolley/trolley.png
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.
Binary file added
BIN
+4.37 KB
src/client/resources/assets/essm/textures/trolley/trolleymanaempty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.