sp614x / optifine

1.8k stars 418 forks source link

HUD properties #1560

Open Madis0 opened 6 years ago

Madis0 commented 6 years ago

It would be nice if we could customize the HUD more, including but not limited to:

Inspiration taken from Bedrock Minecraft, which uses a JSON file for similar properties.

JackDotJS commented 6 years ago

Yes PLEASE! I'd love more GUI customization for resource packs.

sp614x commented 6 years ago

What should be configurable and in which GUIs?

Madis0 commented 6 years ago

I mainly want to change the location and size of the HUD elements, like health, hunger and XP (separate settings for their alternative variants like horse health and jump).

The goal is to have a customized HUD without having to create and maintain a full mod for it. It could, for many people, replace mods like these:

Transparency support would be nice too since it doesn't seem to exist in vanilla.

Optionally you could add properties for hotbar and boss bar too, but these are not a priority for me.

sp614x commented 6 years ago

Changing the position/transparency of the the HUD elements should be possible.

Sphax84 commented 6 years ago

Being able the following would be a great step forward in the GUI customization:

Madis0 commented 6 years ago

Color of titles and any text element

Already possible without Optifine, just append a color code at the start of any text element using resource packs.

JackDotJS commented 6 years ago

Doesn't that get overridden by custom names from multiplayer servers and anvils? This should let you set the absolute default color, which would also be great for dark GUIs.

Sphax84 commented 6 years ago

Already possible without Optifine, just append a color code at the start of any text element using resource packs.

This is not a valid solution: 1) Would require to edit/alter ALL the language files (and there are a ton, and would prevent language updates after) 2) Would be valid only for vanilla containers, not for containers with customized name

For PureBDcraft, we would love to change most titles in white instead of that grey. On Bedrock, we also changed the Enchanting table title in yellow/golden color to fit with background. ;)

JackDotJS commented 6 years ago

In addition to being able to set the default color of any texts, it would be nice to be able to adjust the text shadows as well. Color and position in particular.

Madis0 commented 6 years ago

One important property I seem to have missed in HUD is orientation, with values ltr (left-to-right) and rtl (right-to-left), respectively.

That could be used, for example, for making all bars face the same way like RPGhud or for flipping the whole HUD for better usability in right-to-left countries.