You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LongDelay("Long Delay", "Show tooltip after a longer delay (~0.40s), and only after the mouse has been still briefly on the item.", ImGuiHoveredFlags.DelayNormal)
82
82
}
83
83
84
-
constvalRELATION=0.02604
85
-
constvalBASE_SCALE=130
86
-
val width = mc.window.monitor!!.currentVideoMode!!.width
84
+
constvalBASE_SCALE=100
85
+
constvalBASE_SCALE_MULTI=1.8
87
86
88
-
// don't worry, I'm a professional
89
-
// linear interpolation :3
90
-
val defaultScale = (RELATION* width +BASE_SCALE).toInt()
87
+
fundeviceScaleMultiplier() =try {
88
+
val monitorWidth = mc.window.monitor!!.currentVideoMode!!.width.toDouble()
89
+
(monitorWidth /1920.0).coerceIn(0.5, 4.0)
90
+
} catch (_:Throwable) {
91
+
1.0
92
+
}
91
93
92
94
// General
93
-
internalval scaleSetting by setting("Scale", defaultScale, 50..300, 1, unit ="%").group(Group.General)
95
+
internalval scaleSetting by setting("Scale", BASE_SCALE, 50..300, 1, unit ="%").group(Group.General)
94
96
val alpha by setting("Alpha", 1.0f, 0.0f..1.0f, 0.01f).group(Group.General)
95
97
val disabledAlpha by setting("Disabled Alpha", 0.6f, 0.0f..1.0f, 0.01f).group(Group.General)
96
98
val tooltipType by setting("Tooltip Type", TooltipType.Stationary, description ="When to show the tooltip.").group(Group.General)
0 commit comments