Skip to content

Commit

Permalink
Remove old toast system
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Oct 14, 2023
1 parent 8d59fa6 commit 199d7a7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 227 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,9 @@

@Mixin(Minecraft.class)
public abstract class MixinMinecraft {
private final Minecraft $this = (Minecraft) (Object) this;
@Shadow
public EntityPlayerSP thePlayer;

/**
* Taken from Skyblockcatia under MIT License
* Modified
* <a href="https://github.com/SteveKunG/SkyBlockcatia/blob/1.8.9/LICENSE.md">...</a>
*
* @author SteveKunG
*/
@Inject(method = "runGameLoop()V", at = @At(value = "INVOKE", target = "net/minecraft/client/renderer/EntityRenderer.updateCameraAndRender(FJ)V", shift = At.Shift.AFTER))
private void runGameLoop(CallbackInfo info) {
GuiManager.toastGui.drawToast(new ScaledResolution($this));
}

@Inject(method = "clickMouse()V", at = @At(value = "INVOKE", target = "net/minecraft/client/entity/EntityPlayerSP.swingItem()V", shift = At.Shift.AFTER))
private void clickMouse(CallbackInfo info) {
if (!Utils.INSTANCE.getInSkyblock()) return;
Expand Down
4 changes: 0 additions & 4 deletions src/main/kotlin/gg/skytils/skytilsmod/core/GuiManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import gg.skytils.skytilsmod.gui.LocationEditGui
import gg.skytils.skytilsmod.utils.GlState
import gg.skytils.skytilsmod.utils.Utils
import gg.skytils.skytilsmod.utils.toast.Toast
import gg.skytils.skytilsmod.utils.toasts.GuiToast
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
Expand All @@ -56,9 +55,6 @@ object GuiManager : PersistentSave(File(Skytils.modDir, "guipositions.json")) {
val elements = hashMapOf<Int, GuiElement>()
private val names = hashMapOf<String, GuiElement>()

@JvmField
var toastGui = GuiToast(Minecraft.getMinecraft())

@JvmField
var title: String? = null
var subtitle: String? = null
Expand Down
174 changes: 0 additions & 174 deletions src/main/kotlin/gg/skytils/skytilsmod/utils/toasts/GuiToast.kt

This file was deleted.

36 changes: 0 additions & 36 deletions src/main/kotlin/gg/skytils/skytilsmod/utils/toasts/IToast.kt

This file was deleted.

0 comments on commit 199d7a7

Please sign in to comment.