Skip to content
Permalink
Browse files

Tweak heart render overlay to test with https://github.com/SlimeKnigh…

  • Loading branch information...
TheTemportalist
TheTemportalist committed Jun 1, 2016
1 parent d4e571f commit 334b9d04b1fa9b1ba6d8a4d46779a58e8f3334f0
@@ -1,7 +1,7 @@
package temportalist.origin.foundation.client

import net.minecraftforge.client.event.{MouseEvent, RenderGameOverlayEvent}
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import net.minecraftforge.fml.common.eventhandler.{EventPriority, SubscribeEvent}
import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent
import net.minecraftforge.fml.relauncher.{Side, SideOnly}
import temportalist.origin.api.client.EnumHUDOverlay
@@ -57,7 +57,7 @@ trait IModClient extends IHasMod {
types.foreach(this.overlays(_) += overlay)
}

@SubscribeEvent
@SubscribeEvent(priority = EventPriority.HIGHEST)
final def pre(event: RenderGameOverlayEvent.Pre): Unit = {
this.overlays(EnumHUDOverlay.PRE).foreach(_.pre(event))
}
@@ -36,12 +36,16 @@ object OverlayHealth extends IOverlay {

val heartSide: Int = 9

// based on https://github.com/SlimeKnights/TinkersConstruct/blob/1.7.10/src/main/java/tconstruct/armor/ArmorProxyClient.java#L229
override def pre(event: Pre): Unit = {
/*
val ticon_Valid: Boolean = !Loader.isModLoaded("TConstruct")
if (!ticon_Valid) return
*/
val rpghud_Valid: Boolean = !Loader.isModLoaded("rpghud")
val tukmc_Vz_borderlands_Valid: Boolean =
!Loader.isModLoaded("tukmc_Vz") || Loader.isModLoaded("borderlands")
if (!ticon_Valid || !rpghud_Valid || !tukmc_Vz_borderlands_Valid) return
if (!rpghud_Valid || !tukmc_Vz_borderlands_Valid) return
if (event.getType != ElementType.HEALTH) return

val reso = event.getResolution

0 comments on commit 334b9d0

Please sign in to comment.
You can’t perform that action at this time.