Update version, add new sprites for health/reality.
@@ -16,8 +16,7 @@ object BridgeMixins {
|
||||
}
|
||||
fun getStrNum1(): String {
|
||||
if (num1 != 0) {
|
||||
val strNum1 = num1 + 20
|
||||
return strNum1.toString()
|
||||
return num1.toString()
|
||||
}
|
||||
return "1"
|
||||
}
|
||||
|
||||
@@ -15,6 +15,12 @@ class Bars {
|
||||
}
|
||||
|
||||
fun bars() {
|
||||
val width = 98f
|
||||
val height = 18f
|
||||
val xHealth = 5f
|
||||
val yHealth = 5f
|
||||
val xReality = 5f
|
||||
val yReality = 10f + height
|
||||
HudRenderCallback.EVENT.register(HudRenderCallback { drawContext: DrawContext?, tickDelta: Float ->
|
||||
val tessellator: Tessellator = Tessellator.getInstance()
|
||||
val buffer: BufferBuilder = tessellator.buffer
|
||||
@@ -22,30 +28,30 @@ class Bars {
|
||||
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599") {
|
||||
if (barsToggle) {
|
||||
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-160, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-160, MinecraftClient.getInstance().window.scaledHeight.toFloat(), 0F).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-120, MinecraftClient.getInstance().window.scaledHeight.toFloat(), 0F).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-120, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||
buffer.vertex(positionMatrix, xReality, yReality, 0f).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||
buffer.vertex(positionMatrix, xReality, yReality+height, 0f).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
||||
buffer.vertex(positionMatrix, xReality+width, yReality+height, 0f).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
||||
buffer.vertex(positionMatrix, xReality+width, yReality, 0f).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||
|
||||
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
||||
|
||||
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/mana/vials_00${BridgeMixins.getStrNum1()}.png"))
|
||||
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/mana/mana_${BridgeMixins.getStrNum1()}.png"))
|
||||
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
||||
|
||||
tessellator.draw()
|
||||
|
||||
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-180, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||
/*buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-180, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-180, MinecraftClient.getInstance().window.scaledHeight.toFloat(), 0F).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-140, MinecraftClient.getInstance().window.scaledHeight.toFloat(), 0F).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-140, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||
buffer.vertex(positionMatrix, MinecraftClient.getInstance().window.scaledWidth.toFloat()/2-140, MinecraftClient.getInstance().window.scaledHeight.toFloat() - 40, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()*/
|
||||
buffer.vertex(positionMatrix, xHealth, yHealth, 0f).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||
buffer.vertex(positionMatrix, xHealth, yHealth+height, 0f).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
||||
buffer.vertex(positionMatrix, xHealth+width, yHealth+height, 0f).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
||||
buffer.vertex(positionMatrix, xHealth+width, yHealth, 0f).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||
|
||||
|
||||
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
||||
if (BridgeMixins.getNum0() < 10) {
|
||||
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/health/vials_000${BridgeMixins.getStrNum0()}.png"))
|
||||
} else {
|
||||
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/health/vials_00${BridgeMixins.getStrNum0()}.png"))
|
||||
}
|
||||
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/health/health_${BridgeMixins.getStrNum0()}.png"))
|
||||
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
||||
|
||||
tessellator.draw()
|
||||
|
||||
@@ -2,6 +2,7 @@ package chickenmanfy.scify.modules
|
||||
|
||||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents
|
||||
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper
|
||||
import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents
|
||||
import net.minecraft.client.MinecraftClient
|
||||
import net.minecraft.client.option.KeyBinding
|
||||
import net.minecraft.client.util.InputUtil
|
||||
@@ -73,6 +74,7 @@ class Hotkey {
|
||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "54.39.244.190:25608")
|
||||
{
|
||||
MinecraftClient.getInstance().networkHandler!!.sendChatCommand("ec")
|
||||
println(ClientReceiveMessageEvents.CHAT)
|
||||
}
|
||||
}
|
||||
while (guide.wasPressed()) {
|
||||
|
||||
@@ -19,7 +19,7 @@ class Watermark {
|
||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "54.39.244.190:25608") {
|
||||
if (watermarkToggle) {
|
||||
val minecraftClient = MinecraftClient.getInstance()
|
||||
drawContext?.drawTextWithShadow(minecraftClient.textRenderer,"§nSciFy v0.1.4",minecraftClient.window.scaledWidth - minecraftClient.textRenderer.getWidth("SciFy v0.1.4") - 5, minecraftClient.window.scaledHeight - minecraftClient.textRenderer.fontHeight - 5, 0xff00ff)
|
||||
drawContext?.drawTextWithShadow(minecraftClient.textRenderer,"§nSciFy v0.1.5",minecraftClient.window.scaledWidth - minecraftClient.textRenderer.getWidth("SciFy v0.1.5") - 5, minecraftClient.window.scaledHeight - minecraftClient.textRenderer.fontHeight - 5, 0xff00ff)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
BIN
src/main/resources/assets/scify/healthmana/health/health_1.png
Normal file
|
After Width: | Height: | Size: 201 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_10.png
Normal file
|
After Width: | Height: | Size: 218 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_11.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_12.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_13.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_14.png
Normal file
|
After Width: | Height: | Size: 219 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_15.png
Normal file
|
After Width: | Height: | Size: 219 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_16.png
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_17.png
Normal file
|
After Width: | Height: | Size: 219 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_18.png
Normal file
|
After Width: | Height: | Size: 222 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_19.png
Normal file
|
After Width: | Height: | Size: 214 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_2.png
Normal file
|
After Width: | Height: | Size: 208 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_20.png
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_3.png
Normal file
|
After Width: | Height: | Size: 218 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_4.png
Normal file
|
After Width: | Height: | Size: 218 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_5.png
Normal file
|
After Width: | Height: | Size: 219 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_6.png
Normal file
|
After Width: | Height: | Size: 219 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_7.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_8.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
src/main/resources/assets/scify/healthmana/health/health_9.png
Normal file
|
After Width: | Height: | Size: 221 B |
|
Before Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 122 B |
|
Before Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 133 B |
|
Before Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 133 B |
|
Before Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 123 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_1.png
Normal file
|
After Width: | Height: | Size: 357 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_10.png
Normal file
|
After Width: | Height: | Size: 507 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_11.png
Normal file
|
After Width: | Height: | Size: 535 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_12.png
Normal file
|
After Width: | Height: | Size: 551 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_13.png
Normal file
|
After Width: | Height: | Size: 562 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_14.png
Normal file
|
After Width: | Height: | Size: 571 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_15.png
Normal file
|
After Width: | Height: | Size: 594 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_16.png
Normal file
|
After Width: | Height: | Size: 609 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_17.png
Normal file
|
After Width: | Height: | Size: 609 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_18.png
Normal file
|
After Width: | Height: | Size: 604 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_19.png
Normal file
|
After Width: | Height: | Size: 620 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_2.png
Normal file
|
After Width: | Height: | Size: 392 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_20.png
Normal file
|
After Width: | Height: | Size: 606 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_3.png
Normal file
|
After Width: | Height: | Size: 414 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_4.png
Normal file
|
After Width: | Height: | Size: 431 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_5.png
Normal file
|
After Width: | Height: | Size: 441 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_6.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_7.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_8.png
Normal file
|
After Width: | Height: | Size: 485 B |
BIN
src/main/resources/assets/scify/healthmana/mana/mana_9.png
Normal file
|
After Width: | Height: | Size: 495 B |
|
Before Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 135 B |
|
Before Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 136 B |
|
Before Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 126 B |