Skip to content

TextAnchorProblem #9

@GRAINALCOHOL

Description

@GRAINALCOHOL

I found that the effect of TextAnchor does not match the expected behavior when using it. For example, TextAnchor.CENTER_CENTER is the same as the default position (like the actionbar), TextAnchor.TOP_CENTER appears at the midpoint between the top border of the screen and the crosshair, TextAnchor.BOTTOM_CENTER goes beyond the screen range. All TextAnchor enum values need to be corrected using y(-1f) to appear at the expected positions, as if the located screen range is offset downward (y+) by a certain distance.

I don't know if this is normal

Minecraft version 1.20.1
Mod loader Fabric
Fabric API 0.92.5
Fabric loader 0.16.14
Immersive Message API version 1.0.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions