Skip to content

Commit

Permalink
Sync LunarClient Mods & Options
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarClientBot committed Jun 9, 2024
1 parent 74857e0 commit 120430e
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 88 deletions.
92 changes: 46 additions & 46 deletions api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,52 @@ public final class ModChat {
.notifyClient()
.build();

/**
* Copies the hovered chat message when holding the keybind and clicking.
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> COPY_CHAT = SimpleOption.<Boolean>builder()
.comment("Copies the hovered chat message when holding the keybind and clicking.")
.node("chat", "copy-chat").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* Displays a preview of an image when hovering over it.
*
* @since 1.1.3
*/
public static final SimpleOption<Boolean> HOVER_IMAGE_PREVIEW = SimpleOption.<Boolean>builder()
.comment("Displays a preview of an image when hovering over it.")
.node("chat", "hover-image-preview").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* The minimum size for an image to be displayed, as a percentage of your screen.
*
* @since 1.1.3
*/
public static final NumberOption<Double> MIN_IMAGE_SIZE = NumberOption.<Double>number()
.comment("The minimum size for an image to be displayed, as a percentage of your screen.")
.node("chat", "min-image-size").type(TypeToken.get(Double.class))
.min(0.0D).max(100.0D)
.notifyClient()
.build();

/**
* The maximum size for an image to be displayed, as a percentage of your screen.
*
* @since 1.1.3
*/
public static final NumberOption<Double> MAX_IMAGE_SIZE = NumberOption.<Double>number()
.comment("The maximum size for an image to be displayed, as a percentage of your screen.")
.node("chat", "max-image-size").type(TypeToken.get(Double.class))
.min(0.0D).max(100.0D)
.notifyClient()
.build();

/**
* No documentation available.
*
Expand Down Expand Up @@ -246,52 +292,6 @@ public final class ModChat {
.notifyClient()
.build();

/**
* Copies the hovered chat message when holding the keybind and clicking.
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> COPY_CHAT = SimpleOption.<Boolean>builder()
.comment("Copies the hovered chat message when holding the keybind and clicking.")
.node("chat", "copy-chat").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* Displays a preview of an image when hovering over it.
*
* @since 1.1.3
*/
public static final SimpleOption<Boolean> HOVER_IMAGE_PREVIEW = SimpleOption.<Boolean>builder()
.comment("Displays a preview of an image when hovering over it.")
.node("chat", "hover-image-preview").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* The minimum size for an image to be displayed, as a percentage of your screen.
*
* @since 1.1.3
*/
public static final NumberOption<Double> MIN_IMAGE_SIZE = NumberOption.<Double>number()
.comment("The minimum size for an image to be displayed, as a percentage of your screen.")
.node("chat", "min-image-size").type(TypeToken.get(Double.class))
.min(0.0D).max(100.0D)
.notifyClient()
.build();

/**
* The maximum size for an image to be displayed, as a percentage of your screen.
*
* @since 1.1.3
*/
public static final NumberOption<Double> MAX_IMAGE_SIZE = NumberOption.<Double>number()
.comment("The maximum size for an image to be displayed, as a percentage of your screen.")
.node("chat", "max-image-size").type(TypeToken.get(Double.class))
.min(0.0D).max(100.0D)
.notifyClient()
.build();

private ModChat() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public final class ModHypixelMod {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> LEVEL_HEAD = SimpleOption.<Boolean>builder()
.node("hypixel-mod", "level-head").type(TypeToken.get(Boolean.class))
public static final SimpleOption<Boolean> HYPIXEL_AUTOCOMPLETE = SimpleOption.<Boolean>builder()
.node("hypixel-mod", "hypixel-autocomplete").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand All @@ -139,8 +139,8 @@ public final class ModHypixelMod {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> HYPIXEL_AUTOCOMPLETE = SimpleOption.<Boolean>builder()
.node("hypixel-mod", "hypixel-autocomplete").type(TypeToken.get(Boolean.class))
public static final SimpleOption<Boolean> LEVEL_HEAD = SimpleOption.<Boolean>builder()
.node("hypixel-mod", "level-head").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand Down
64 changes: 32 additions & 32 deletions docs/developers/mods/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,38 @@ public void toggleChatExample(Player viewer, boolean value) {
- Type: `Boolean`
- Default: `true`

- __`COPY_CHAT`__
- Copies the hovered chat message when holding the keybind and clicking.
- Config Key: `copy-chat`
- Values
- Type: `Boolean`
- Default: `false`

- __`HOVER_IMAGE_PREVIEW`__
- Displays a preview of an image when hovering over it.
- Config Key: `hover-image-preview`
- Values
- Type: `Boolean`
- Default: `false`

- __`MIN_IMAGE_SIZE`__
- The minimum size for an image to be displayed, as a percentage of your screen.
- Config Key: `min-image-size`
- Values
- Type: `Double`
- Default: `0.0D`
- Minimum: `0.0D`
- Maximum: `100.0D`

- __`MAX_IMAGE_SIZE`__
- The maximum size for an image to be displayed, as a percentage of your screen.
- Config Key: `max-image-size`
- Values
- Type: `Double`
- Default: `100.0D`
- Minimum: `0.0D`
- Maximum: `100.0D`

- __`SMOOTH_CHAT`__
- Config Key: `smooth-chat`
- Values
Expand Down Expand Up @@ -151,35 +183,3 @@ public void toggleChatExample(Player viewer, boolean value) {
- Type: `Boolean`
- Default: `true`

- __`COPY_CHAT`__
- Copies the hovered chat message when holding the keybind and clicking.
- Config Key: `copy-chat`
- Values
- Type: `Boolean`
- Default: `false`

- __`HOVER_IMAGE_PREVIEW`__
- Displays a preview of an image when hovering over it.
- Config Key: `hover-image-preview`
- Values
- Type: `Boolean`
- Default: `false`

- __`MIN_IMAGE_SIZE`__
- The minimum size for an image to be displayed, as a percentage of your screen.
- Config Key: `min-image-size`
- Values
- Type: `Double`
- Default: `0.0D`
- Minimum: `0.0D`
- Maximum: `100.0D`

- __`MAX_IMAGE_SIZE`__
- The maximum size for an image to be displayed, as a percentage of your screen.
- Config Key: `max-image-size`
- Values
- Type: `Double`
- Default: `100.0D`
- Minimum: `0.0D`
- Maximum: `100.0D`

12 changes: 6 additions & 6 deletions docs/developers/mods/hypixelmod.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ public void toggleHypixelModsExample(Player viewer, boolean value) {
- Type: `Boolean`
- Default: `false`

- __`LEVEL_HEAD`__
- Config Key: `level-head`
- Values
- Type: `Boolean`
- Default: `false`

- __`HYPIXEL_AUTOCOMPLETE`__
- Config Key: `hypixel-autocomplete`
- Values
- Type: `Boolean`
- Default: `true`

- __`LEVEL_HEAD`__
- Config Key: `level-head`
- Values
- Type: `Boolean`
- Default: `false`

- __`LEVEL_COLOR`__
- Config Key: `level-color`
- Values
Expand Down

1 comment on commit 120430e

@LunarClientBot
Copy link
Collaborator Author

@LunarClientBot LunarClientBot commented on 120430e Jun 9, 2024

Choose a reason for hiding this comment

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

📄 Documentation Deployment

Status:✅ Completed
Environment:preview
URL:https://f8a6f7a8.lunarclient-dev.pages.dev

Please sign in to comment.