Skip to content

Commit

Permalink
feat: draw simon says progress on start button
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Jan 17, 2024
1 parent 244e724 commit fd1b292
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import gg.skytils.skytilsmod.features.impl.misc.Funny
import gg.skytils.skytilsmod.utils.RenderUtil
import gg.skytils.skytilsmod.utils.SuperSecretSettings
import gg.skytils.skytilsmod.utils.Utils
import gg.skytils.skytilsmod.utils.middleVec
import net.minecraft.block.BlockButtonStone
import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.client.renderer.GlStateManager
Expand Down Expand Up @@ -125,6 +126,13 @@ object SimonSaysSolver {

if (Skytils.config.simonSaysSolver && clickNeeded < clickInOrder.size) {
val matrixStack = UMatrixStack()
RenderUtil.drawLabel(
startBtn.middleVec(),
"${clickNeeded + 1}/${clickInOrder.size}",
Color.WHITE,
event.partialTicks,
matrixStack
)

for (i in clickNeeded..<clickInOrder.size) {
val pos = clickInOrder[i]
Expand Down

0 comments on commit fd1b292

Please sign in to comment.