Skip to content

Commit

Permalink
fix ui
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 committed Apr 2, 2024
1 parent 6f1f08a commit f75dd44
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object IRCModule : Module() {
"NotPermitted" -> "You are missing the required permissions!"
"NotBanned" -> "You are not banned!"
"Banned" -> "You are banned!"
"RateLimited" -> "You have been rate limited. Please try again later."
"RateLimited" -> "Please do not spam."
"PrivateMessageNotAccepted" -> "Private message not accepted!"
"EmptyMessage" -> "You are trying to send an empty message!"
"MessageTooLong" -> "Message is too long!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ class TickBase : Module() {

@EventTarget
fun onUpdate(event: UpdateEvent) {
if (ticks < 0) ticks = 0
if (test.get()) {
ticks --
if (ticks > 0) ticks --
if (ticks == 1) {
mc.gameSettings.limitFramerate = prev_fps
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Speed : Module() {
private val mode: SpeedMode
get() = modes.find { modeValue.equals(it.modeName) } ?: throw NullPointerException() // this should not happen

private val modeValue: ListValue = object : ListValue("Mode", modes.map { it.modeName }.toTypedArray(), "VulcanHop") {
private val modeValue: ListValue = object : ListValue("Mode", modes.map { it.modeName }.toTypedArray(), "HypixelHop") {
override fun onChange(oldValue: String, newValue: String) {
if (state) onDisable()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ class FireballFly : FlyMode("Fireball") {
mc.gameSettings.keyBindBack.pressed = GameSettings.isKeyDown(mc.gameSettings.keyBindBack)
mc.thePlayer.inventory.currentItem = startingSlot
FDPClient.moduleManager[FreeLook::class.java]!!.disable()
FDPClient.moduleManager[Freeze::class.java]!!.state = false
}

override fun onPacket(event: PacketEvent) {
val packet = event.packet

if (packet is S27PacketExplosion ) {
velocitypacket = true
FDPClient.moduleManager[Freeze::class.java]!!.state = false
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,31 +169,6 @@ class VulcanSpeeds : SpeedMode("Vulcan") {
}

}
"YPort2" -> {
if (wasTimer) {
mc.timer.timerSpeed = 1.0f
wasTimer = false
}
if (portSwitcher > 1) {
mc.thePlayer.motionY = -0.2784
mc.timer.timerSpeed = 1.5f
wasTimer = true
if(portSwitcher > 1) {
portSwitcher = 0
}
}
if (mc.thePlayer.onGround && MovementUtils.isMoving()) {
mc.thePlayer.jump()
MovementUtils.strafe()
if(portSwitcher >= 1) {
mc.thePlayer.motionY = 0.2
mc.timer.timerSpeed = 1.5f
}
portSwitcher++
}else if(MovementUtils.getSpeed() < 0.225){
MovementUtils.strafe(0.225f)
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import net.ccbluex.liquidbounce.utils.MinecraftInstance
import net.ccbluex.liquidbounce.utils.MouseUtils
import net.ccbluex.liquidbounce.utils.render.RenderUtils
import com.mojang.realmsclient.gui.ChatFormatting
import net.ccbluex.liquidbounce.ui.i18n.LanguageManager
import net.minecraft.util.StringUtils
import org.lwjgl.opengl.GL11

import java.awt.Color
Expand Down Expand Up @@ -46,8 +48,9 @@ class CategoryElement(val category: ModuleCategory): MinecraftInstance() {
if (lastHeight >= 10F) lastHeight -= 10F
handleScrolling(wheel, height)
drawScroll(x, y + 50F, width, height)
Fonts.fontLarge.drawString("${ChatFormatting.GRAY}Modules > ${ChatFormatting.RESET}$name", x + 10F, y + 10F, -1)
Fonts.fontSmall.drawString("$name", x - 190F, y - 12F, -1)
Fonts.fontLarge.drawString("${ChatFormatting.GRAY}Modules > ${ChatFormatting.RESET}${
StringUtils.stripControlCodes(LanguageManager.get(name.replace('%',' ')))}", x + 10F, y + 10F, -1)
Fonts.fontSmall.drawString(StringUtils.stripControlCodes(LanguageManager.get(name.replace('%',' '))), x - 190F, y - 12F, -1)
if (mouseY < y + 50F || mouseY >= y + height)
mouseY = -1
RenderUtils.makeScissorBox(x, y + 50F, x + width, y + height)
Expand Down

0 comments on commit f75dd44

Please sign in to comment.