feat: Option to show the etherwarp overlay while not sneaking.
This commit is contained in:
@@ -19,6 +19,7 @@ object EtherwarpOverlay : FirmamentFeature {
|
|||||||
|
|
||||||
object TConfig : ManagedConfig(identifier, Category.ITEMS) {
|
object TConfig : ManagedConfig(identifier, Category.ITEMS) {
|
||||||
var etherwarpOverlay by toggle("etherwarp-overlay") { false }
|
var etherwarpOverlay by toggle("etherwarp-overlay") { false }
|
||||||
|
var onlyShowWhileSneaking by toggle("only-show-while-sneaking") { true }
|
||||||
var cube by toggle("cube") { true }
|
var cube by toggle("cube") { true }
|
||||||
val cubeColour by colour("cube-colour") { ChromaColour.fromStaticRGB(172, 0, 255, 60) }
|
val cubeColour by colour("cube-colour") { ChromaColour.fromStaticRGB(172, 0, 255, 60) }
|
||||||
var wireframe by toggle("wireframe") { false }
|
var wireframe by toggle("wireframe") { false }
|
||||||
@@ -32,7 +33,7 @@ object EtherwarpOverlay : FirmamentFeature {
|
|||||||
fun renderEtherwarpOverlay(event: WorldRenderLastEvent) {
|
fun renderEtherwarpOverlay(event: WorldRenderLastEvent) {
|
||||||
if (!TConfig.etherwarpOverlay) return
|
if (!TConfig.etherwarpOverlay) return
|
||||||
val player = MC.player ?: return
|
val player = MC.player ?: return
|
||||||
if (!player.isSneaking) return
|
if (TConfig.onlyShowWhileSneaking && !player.isSneaking) return
|
||||||
val world = player.world
|
val world = player.world
|
||||||
val camera = MC.camera ?: return
|
val camera = MC.camera ?: return
|
||||||
val heldItem = MC.stackInHand
|
val heldItem = MC.stackInHand
|
||||||
|
|||||||
@@ -135,6 +135,8 @@
|
|||||||
"firmament.config.etherwarp-overlay.cube.description": "Displays a full cube on the block",
|
"firmament.config.etherwarp-overlay.cube.description": "Displays a full cube on the block",
|
||||||
"firmament.config.etherwarp-overlay.etherwarp-overlay": "Etherwarp Overlay",
|
"firmament.config.etherwarp-overlay.etherwarp-overlay": "Etherwarp Overlay",
|
||||||
"firmament.config.etherwarp-overlay.etherwarp-overlay.description": "Display an overlay that tells you what block you will warp to.",
|
"firmament.config.etherwarp-overlay.etherwarp-overlay.description": "Display an overlay that tells you what block you will warp to.",
|
||||||
|
"firmament.config.etherwarp-overlay.only-show-while-sneaking": "Only show while sneaking",
|
||||||
|
"firmament.config.etherwarp-overlay.only-show-while-sneaking.description": "Displays the Etherwarp overlay only while sneaking.",
|
||||||
"firmament.config.etherwarp-overlay.wireframe": "Outline",
|
"firmament.config.etherwarp-overlay.wireframe": "Outline",
|
||||||
"firmament.config.etherwarp-overlay.wireframe.description": "Displays a full outline on the block",
|
"firmament.config.etherwarp-overlay.wireframe.description": "Displays a full outline on the block",
|
||||||
"firmament.config.fairy-souls": "Fairy Souls",
|
"firmament.config.fairy-souls": "Fairy Souls",
|
||||||
|
|||||||
Reference in New Issue
Block a user