Skip to content

Commit 3b8e216

Browse files
ScribbleScribble
authored andcommitted
Bump version
1 parent 953cd85 commit 3b8e216

File tree

6 files changed

+41
-12
lines changed

6 files changed

+41
-12
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'org.spongepowered.mixin'
1919
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
2020

2121

22-
version = "Alpha5-WIP"
22+
version = "Alpha5"
2323
group = "de.scribble.lp.tastools" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2424
archivesBaseName = "TASmod-1.12.2"
2525

src/main/java/de/pfannekuchen/infogui/gui/SettingsGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public static void drawOverlay() {
237237
if (showMOUSEPOS) {
238238
int x = Integer.parseInt(p.getProperty("MOUSEPOS_x"));
239239
int y = Integer.parseInt(p.getProperty("MOUSEPOS_y"));
240-
widths.replace(Settings.MOUSEPOS, drawRectWithText("Mouse Cursor: " + ClientProxy.virtual.nextMouse.getPath().get(0).cursorX + " " + ClientProxy.virtual.nextMouse.getPath().get(0).cursorY, x, y, Boolean.parseBoolean(p.getProperty("MOUSEPOS_hideRect"))));
240+
widths.replace(Settings.MOUSEPOS, drawRectWithText("Mouse Cursor: " + ClientProxy.virtual.getNextMouse().getPath().get(0).cursorX + " " + ClientProxy.virtual.getNextMouse().getPath().get(0).cursorY, x, y, Boolean.parseBoolean(p.getProperty("MOUSEPOS_hideRect"))));
241241
}
242242

243243
boolean showTRAJECTORIES = Boolean.parseBoolean(p.getProperty("TRAJECTORIES_visible"));
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package de.scribble.lp.tasmod.mixin;
2+
3+
import org.lwjgl.opengl.GL11;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.Shadow;
6+
import org.spongepowered.asm.mixin.injection.At;
7+
import org.spongepowered.asm.mixin.injection.Inject;
8+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
9+
10+
import net.minecraft.client.Minecraft;
11+
import net.minecraft.client.gui.Gui;
12+
import net.minecraft.client.gui.ScaledResolution;
13+
import net.minecraft.util.ResourceLocation;
14+
import net.minecraftforge.client.GuiIngameForge;
15+
16+
@Mixin(GuiIngameForge.class)
17+
public abstract class MixinInGameHud {
18+
19+
ResourceLocation potion = new ResourceLocation("tasmod:textures/potion.png");
20+
21+
@Inject(method="renderExperience", at=@At(value="HEAD"), remap = false)
22+
public void mixinRenderExperienceBar(CallbackInfo ci) {
23+
ScaledResolution scaledresolution = new ScaledResolution(Minecraft.getMinecraft());
24+
Minecraft.getMinecraft().getTextureManager().bindTexture(potion);
25+
int m = (scaledresolution.getScaledWidth() / 2)-6;
26+
int n = scaledresolution.getScaledHeight() - 31 - 19;
27+
GL11.glEnable(GL11.GL_BLEND);
28+
int skale=20;
29+
GL11.glColor4f(1, 1, 1, 0.3F);
30+
Gui.drawModalRectWithCustomSizedTexture(m-3, n, 0F, 0F, skale, skale, skale, skale);
31+
GL11.glDisable(GL11.GL_BLEND);
32+
33+
}
34+
}
35 KB
Loading

src/main/resources/mcmod.info

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@
55
"description": "Saves tickperfect inputs to a file and is able to play it back",
66
"version": "${version}",
77
"mcversion": "${mcversion}",
8-
"url": "",
8+
"url": "https://www.curseforge.com/minecraft/mc-mods/tasmod",
99
"updateUrl": "",
10-
"authorList": ["tr7zw, famous1622, ScribbleLP, Pfannekuchen"],
11-
"credits": "
12-
Thanks to tr7zw for the initial idea,
13-
famous for setting up and helping,
14-
Tickrate Code inspired by Guichaguri
15-
Tickrate 0 Code inspired by Cubitect
16-
RNG Math by Admiral_Stapler
17-
Special thanks to Darkmoon",
18-
"logoFile": "",
10+
"authorList": ["\u00A7btr7zw, famous1622, ScribbleLP, Pfannekuchen\u00A7r"],
11+
"credits": "\n\nThanks to \u00A76tr7zw\u00A7r for the initial idea,\n\u00A76famous\u00A7r for setting up and helping,\nTickrate Code inspired by \u00A76Guichaguri\u00A7r\nTickrate 0 Code inspired by \u00A76Cubitect\u00A7r\nRNG Math by \u00A76Admiral_Stapler\u00A7r\nSpecial thanks to \u00A76Darkmoon\u00A7r\n",
12+
"logoFile": "assets/tasmod/textures/potion.png",
1913
"screenshots": [],
2014
"dependencies": []
2115
}

src/main/resources/mixins.tasmod.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"MixinMinecraft",
4545
"MixinEntityRenderer",
4646
"MixinGuiScreen",
47+
"MixinInGameHud",
4748

4849
//Savestates
4950
"savestates.MixinChunkProviderClient",

0 commit comments

Comments
 (0)