Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.4.3 #66

Merged
merged 31 commits into from
Apr 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
63f60d5
Move kotlin classess to kotlin directory, move mixins to java directo…
GT3CH1 Mar 18, 2023
d8b70c2
Fix fly not behaving as expected
GT3CH1 Mar 18, 2023
98e3bdf
Finish fullbright bug
GT3CH1 Mar 18, 2023
f0522d7
Fix missing implements for IClientPlayerEntity, add setting for FreeC…
GT3CH1 Mar 19, 2023
b01093a
Switch Settings back to Java
GT3CH1 Mar 20, 2023
6534e63
Make Waypoints work per-dimension
GT3CH1 Mar 20, 2023
6291e1b
Move waypoint settings to own category, add fix to put waypoints back…
GT3CH1 Mar 20, 2023
6bfea45
Move waypoint settings to own category, add fix to put waypoints back…
GT3CH1 Mar 20, 2023
48bb195
Fix ESP's not showing when WorldRenderer.drawBox is overridden by oth…
GT3CH1 Mar 20, 2023
633c874
Change way to render esp's using planes instead.
GT3CH1 Mar 22, 2023
f6818e5
Waypoint Modifications (#56)
GT3CH1 Mar 23, 2023
4448e49
Cleanup waypoint classes
GT3CH1 Mar 23, 2023
8cc8ed6
invert w.hasDimensions in ModWaypoint
GT3CH1 Mar 23, 2023
b45f559
Fix #59 - getVelocity not implemented
GT3CH1 Apr 1, 2023
dd315f3
Add better mob selection for tracer/esp's (#62)
GT3CH1 Apr 1, 2023
f88d47f
Add java settings back?!
GT3CH1 Apr 1, 2023
a99ec73
Update doc comments
GT3CH1 Apr 1, 2023
4d5d560
Merge 1.19.4-dev into 1.19.4
GT3CH1 Apr 1, 2023
e0700c0
Merge branch '1.19.4' into 1.19.4-dev
GT3CH1 Apr 1, 2023
9574c3e
Update gavui version
GT3CH1 Apr 1, 2023
6d4a460
Merge 1.19.4 into 1.19.4-dev
GT3CH1 Apr 10, 2023
e53d5ae
Patch AntiHurt for issue #65
GT3CH1 Apr 10, 2023
3570d34
Esp/Tracer config do not need nullable extensions
GT3CH1 Apr 10, 2023
378613c
Use constant colors in ModHealthTag
GT3CH1 Apr 10, 2023
3c0a05e
Rework GuiEsp+GuiTracer
GT3CH1 Apr 10, 2023
ec58d9e
Make some properties in GuiWaypoint not nullable.
GT3CH1 Apr 10, 2023
7d51a18
Make some properties in GuiXray not nullable.
GT3CH1 Apr 10, 2023
3114672
Make configurations, event manager instance, etc. not-nullable in Gav…
GT3CH1 Apr 11, 2023
a8d20a8
Add ability to enable/disable viewbobbing with tracer mods.
GT3CH1 Apr 11, 2023
93c22ee
Add translation for tracer view bob cancel
GT3CH1 Apr 11, 2023
bbf018e
Bump mod version to 1.4.3
GT3CH1 Apr 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ loader_version=0.14.17
#Fabric api
fabric_version=0.75.3+1.19.4
# Mod Properties
mod_version=1.4.2
mod_version=1.4.3
maven_group=com.peasenet
archives_base_name=gavinsmod

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/peasenet/mixins/MixinGameRender.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023. Gavin Pease and contributors.
* Copyright (c) 2022-2022. Gavin Pease and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
Expand All @@ -22,6 +22,7 @@

import com.peasenet.main.GavinsMod;
import com.peasenet.util.event.CameraBobEvent;
import com.peasenet.util.event.CameraHurtEvent;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -33,7 +34,7 @@
public class MixinGameRender {
@Inject(method = "tiltViewWhenHurt", at = @At("HEAD"), cancellable = true)
public void checkAntiHurt(MatrixStack stack, float f, CallbackInfo ci) {
CameraBobEvent event = new CameraBobEvent();
CameraHurtEvent event = new CameraHurtEvent();
GavinsMod.eventManager.call(event);
if (event.isCancelled())
ci.cancel();
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/peasenet/config/EspConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package com.peasenet.config
* @author gt3ch1
* @version 03-02-2023
*/
class EspConfig : TracerEspConfig<EspConfig?>() {
class EspConfig : TracerEspConfig<EspConfig>() {
init {
key = "esp"
}
Expand Down
10 changes: 8 additions & 2 deletions src/main/kotlin/com/peasenet/config/TracerConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ package com.peasenet.config
* The configuration for tracers.
*
* @author gt3ch1
* @version 03-02-2023
* @version 04-11-2023
*/
class TracerConfig : TracerEspConfig<EspConfig?>() {
class TracerConfig : TracerEspConfig<EspConfig>() {
init {
key = "tracer"
}

var viewBobCancel: Boolean = true
set(value) {
field = value
saveConfig()
}
}
26 changes: 16 additions & 10 deletions src/main/kotlin/com/peasenet/gui/GuiSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ import com.peasenet.main.Mods.Companion.mods
import com.peasenet.mods.Mod
import com.peasenet.mods.Type
import com.peasenet.settings.SlideSetting
import com.peasenet.settings.ToggleSetting
import net.minecraft.text.Text
import java.util.function.Consumer

/**
* @author gt3ch1
* @version 03-02-2023
* @version 04-11-2023
* A settings gui to control certain features of the mod.
*/
class GuiSettings : GuiElement(Text.translatable("gavinsmod.gui.settings")) {
Expand All @@ -59,15 +60,15 @@ class GuiSettings : GuiElement(Text.translatable("gavinsmod.gui.settings")) {
val resetText = Text.translatable("gavinsmod.settings.reset")
val width = textRenderer.getWidth(resetText)
if (resetPos == null) resetPos = PointF(titleW.toFloat(), 1f)
resetButton.setTitle(resetText);
resetButton.title = resetText
if (resetWidth.toDouble() == 0.0) resetWidth = (width + 4).toFloat()
resetButton.width = resetWidth
resetButton.position = resetPos
resetButton.setDefaultPosition(resetButton.box)
resetButton.setBackground(Colors.DARK_RED)
resetButton.setCallback {
GavinsMod.gui!!.reset()
GavinsMod.guiSettings!!.reset()
GavinsMod.gui.reset()
GavinsMod.guiSettings.reset()
}
resetButton.isHoverable = true
}
Expand Down Expand Up @@ -109,8 +110,7 @@ class GuiSettings : GuiElement(Text.translatable("gavinsmod.gui.settings")) {
private fun addSettings(parent: Gui, category: Type.Category) {
val modList = ArrayList<Mod>()
// get all mods in esp category and have settings then add them to espDropdown
mods.stream().filter { m: Mod -> m.category === category && m.hasSettings() }
.forEach { e: Mod -> modList.add(e) }
mods.stream().filter { m: Mod -> m.category === category && m.hasSettings() }.forEach { e: Mod -> modList.add(e) }
for (m in modList) {
val modSettings = m.settings
for (s in modSettings) {
Expand Down Expand Up @@ -157,12 +157,18 @@ class GuiSettings : GuiElement(Text.translatable("gavinsmod.gui.settings")) {
*/
private fun miscSettings() {
val espAlpha = SlideSetting("gavinsmod.settings.alpha")
espAlpha.setCallback { GavinsMod.espConfig!!.alpha = espAlpha.value }
espAlpha.value = GavinsMod.espConfig!!.alpha
espAlpha.setCallback { GavinsMod.espConfig.alpha = espAlpha.value }
espAlpha.value = GavinsMod.espConfig.alpha
val tracerAlpha = SlideSetting("gavinsmod.settings.alpha")
tracerAlpha.setCallback { GavinsMod.tracerConfig!!.alpha = tracerAlpha.value }
tracerAlpha.value = GavinsMod.tracerConfig!!.alpha
tracerAlpha.setCallback { GavinsMod.tracerConfig.alpha = tracerAlpha.value }
tracerAlpha.value = GavinsMod.tracerConfig.alpha

val tracerViewBob = ToggleSetting("gavinsmod.settings.tracer.viewbobcancel")
tracerViewBob.setCallback { GavinsMod.tracerConfig.viewBobCancel = tracerViewBob.value }
tracerViewBob.value = GavinsMod.tracerConfig.viewBobCancel

espDropdown.addElement(espAlpha.gui)
tracerDropdown.addElement(tracerViewBob.gui)
tracerDropdown.addElement(tracerAlpha.gui)
}
}
Expand Down
Loading