Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Add Paper Doll HUD Mod #138

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

DarkKronicle
Copy link
Contributor

@DarkKronicle DarkKronicle commented Apr 24, 2023

Adds the paper doll mod from KronHUD. Very similar. One of my favorite mods. Has a cool dynamic rotation thing that lerps it to it's new rotation so you can actually see your player rotate.

(I realize this image has an elytra in it, this is just the image I found of KronHUD [it looks identical])
image

@TheKodeToad
Copy link
Collaborator

Tysm! Please can you run ./gradlew applyLicenses?

// Originally from KronHUD
// Added here by DarkKronicle :)
// https://github.com/DarkKronicle/KronHUD/blob/master/src/main/java/io/github/darkkronicle/kronhud/gui/hud/PlayerHud.java
@AbstractTranslationKey("sol_client.mod.paperdoll")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only meant for abstract classes

Comment on lines +53 to +64
protected List<ModOption<?>> createOptions() {
List<ModOption<?>> options = super.createOptions();
Optional<String> format = Optional.empty();
options.add(
new SliderOption(
"sol_client.mod.paperdoll.option.rotation",
ModOptionStorage.of(Number.class, () -> rotation, (value) -> rotation = value.floatValue()),
format, 0, 360, 1
)
);
return options;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can already use the @Slider annotation for this (no ping 4u)

@RaptaG
Copy link
Contributor

RaptaG commented Apr 25, 2023

Holy cow yessir thank you darkkronicle!

@TheKodeToad

This comment was marked as off-topic.

@DarkKronicle

This comment was marked as off-topic.

@ArikSquad

This comment was marked as off-topic.

@RaptaG
Copy link
Contributor

RaptaG commented Apr 26, 2023

Before adding this into Sol, make sure to fix/implement this too DarkKronicle/KronHUD#125

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants