Minenash / CustomHUD

A highly customizable variable-based text HUD for Minecraft
MIT License
77 stars 23 forks source link

[Feature] Make lines go halfway down #100

Closed Aces-and-Jacks closed 1 year ago

Aces-and-Jacks commented 1 year ago

Not sure if this was already asked and if so I'm not sure what to search for but I was wondering if it's possible to make new lines go down half way, and if not if it'd be possible to add it

an example is this image where below looking for the abyss there's a line break. So basically instead of a full new line, it's half

Minenash commented 1 year ago

I'm not really sure what the asking for? Do you want it to be where the next line overlaps the prior line?

Aces-and-Jacks commented 1 year ago

So for example I have

FPS: something

XYZ: something

Another thing: something

And basically certain mods have HUD things that may overlap 2023-07-18_13 52 03

But If I create a new line it goes further down than necessary. I know shrinking the text on text editor wouldn't work since it uses Minecraft's font. So maybe somehow as a variable to shrink/expand the line size? Tho I don't really know if variables work like that. Sorry if this is explained poorly

Minenash commented 1 year ago

Assuming you're using 1.19.2 or above, you could have two TopLeft sections, like:

==Section: TopLeft==
Your first line
==Section: TopLeft, 0, 20==
The rest of your lines

Ofc changing 20 to be whatever you need it to be

Aces-and-Jacks commented 1 year ago

Is that like an x,y placement thing on the screen?

Minenash commented 1 year ago

It's an offset, so it's relatively to the normal position for that section, but yes.

Aces-and-Jacks commented 1 year ago

well that's nice, Didn't think about that. Thanks so much for the help

Minenash commented 1 year ago

No probably!

Aces-and-Jacks commented 1 year ago

I probably should've thought about that since a lot of hud mods have it but didn't come to mind till now