@@ -3,6 +3,7 @@ package com.lambda.client.module.modules.render
3
3
import com.lambda.client.event.SafeClientEvent
4
4
import com.lambda.client.event.events.RenderWorldEvent
5
5
import com.lambda.client.event.listener.listener
6
+ import com.lambda.client.manager.managers.ChestCountManager
6
7
import com.lambda.client.module.Category
7
8
import com.lambda.client.module.Module
8
9
import com.lambda.client.util.color.ColorHolder
@@ -39,7 +40,7 @@ object StorageESP : Module(
39
40
private val dispenser by setting(" Dispenser" , false , { page == Page .TYPE })
40
41
private val hopper by setting(" Hopper" , false , { page == Page .TYPE })
41
42
private val cart by setting(" Minecart" , false , { page == Page .TYPE })
42
- private val infinite by setting(" Infinite Range" , true ) // To avoid a hard to control range slider
43
+ private val infinite by setting(" Infinite Range" , true , { page == Page . TYPE } ) // To avoid a hard to control range slider
43
44
private val range by setting(" Range" , 64 , 8 .. 512 , 1 , { page == Page .TYPE && ! infinite }, unit = " blocks" )
44
45
45
46
/* Color settings */
@@ -61,12 +62,18 @@ object StorageESP : Module(
61
62
private val aTracer by setting(" Tracer Alpha" , 200 , 0 .. 255 , 1 , { page == Page .RENDER && tracer })
62
63
private val thickness by setting(" Line Thickness" , 2.0f , 0.25f .. 5.0f , 0.25f , { page == Page .RENDER })
63
64
65
+ /* Count settings */
66
+ val chestCountSetting by setting(" Count" , true , { page == Page .COUNT })
67
+ private val dubs by setting(" Dubs" , true , visibility = { chestCountSetting && page == Page .COUNT })
68
+
64
69
private enum class Page {
65
- TYPE , COLOR , RENDER
70
+ TYPE , COLOR , RENDER , COUNT
66
71
}
67
72
68
73
override fun getHudInfo (): String {
69
- return renderer.size.toString()
74
+ return if (chestCountSetting)
75
+ (if (dubs) " ${ChestCountManager .dubsCount} " else " ${ChestCountManager .chestCount} " )
76
+ else " "
70
77
}
71
78
72
79
private var cycler = HueCycler (600 )
0 commit comments