Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: scalable ch player arrow #521

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,14 @@ object Config : Vigilant(
)
var crystalHollowMapPlaces = false

@Property(
type = PropertyType.DECIMAL_SLIDER, name = "Crystal Hollows map player arrow scale",
description = "Scale the arro indicating the arrorw on the crystal hollows map",
Kemmisch marked this conversation as resolved.
Show resolved Hide resolved
category = "Mining", subcategory = "Crystal Hollows",
minF = 0.5f, maxF = 10f, decimalPlaces = 1
)
var crystalHollowsMapPlayerScale = 1.5F

Kemmisch marked this conversation as resolved.
Show resolved Hide resolved
@Property(
type = PropertyType.SWITCH, name = "Crystal Hollows waypoints",
description = "Shows waypoints to special places inside the Crystal Hollows.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ object CHWaypoints {
}
val x = (mc.thePlayer.posX - 202).coerceIn(0.0, 624.0)
val y = (mc.thePlayer.posZ - 202).coerceIn(0.0, 624.0)
val scale = Skytils.config.crystalHollowsMapPlayerScale

// player marker code
val wr = UGraphics.getFromTessellator()
Expand All @@ -307,8 +308,8 @@ object CHWaypoints {

// Rotate about the center to match the player's yaw
stack.rotate((mc.thePlayer.rotationYawHead + 180f) % 360f, 0f, 0f, 1f)
stack.scale(1.5f, 1.5f, 1.5f)
stack.translate(-0.125f, 0.125f, 0.0f)
stack.scale(scale*1.5,scale*1.5,scale*1.5)
stack.translate(-0.125f*scale/1.5, 0.125f*scale/1.5, 0.0)
UGraphics.color4f(1f, 1f, 1f, 1f)
UGraphics.enableAlpha()
val d1 = 0.0
Expand Down
Loading