|
| 1 | +/* |
| 2 | + * This file is part of Apollo, licensed under the MIT License. |
| 3 | + * |
| 4 | + * Copyright (c) 2023 Moonsworth |
| 5 | + * |
| 6 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | + * of this software and associated documentation files (the "Software"), to deal |
| 8 | + * in the Software without restriction, including without limitation the rights |
| 9 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | + * copies of the Software, and to permit persons to whom the Software is |
| 11 | + * furnished to do so, subject to the following conditions: |
| 12 | + * |
| 13 | + * The above copyright notice and this permission notice shall be included in all |
| 14 | + * copies or substantial portions of the Software. |
| 15 | + * |
| 16 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | + * SOFTWARE. |
| 23 | + */ |
| 24 | +package com.lunarclient.apollo.mods.impl; |
| 25 | + |
| 26 | +import com.lunarclient.apollo.option.NumberOption; |
| 27 | +import com.lunarclient.apollo.option.SimpleOption; |
| 28 | +import io.leangen.geantyref.TypeToken; |
| 29 | +import java.awt.Color; |
| 30 | + |
| 31 | +/** |
| 32 | + * Enjoy some of your favorite songs provided by Styngr. |
| 33 | + * |
| 34 | + * @since %release_version% |
| 35 | + */ |
| 36 | +public final class ModRadio { |
| 37 | + |
| 38 | + /** |
| 39 | + * No documentation available. |
| 40 | + * |
| 41 | + * @since %release_version% |
| 42 | + */ |
| 43 | + public static final SimpleOption<Boolean> ENABLED = SimpleOption.<Boolean>builder() |
| 44 | + .node("radio", "enabled").type(TypeToken.get(Boolean.class)) |
| 45 | + .notifyClient() |
| 46 | + .build(); |
| 47 | + |
| 48 | + /** |
| 49 | + * No documentation available. |
| 50 | + * |
| 51 | + * @since %release_version% |
| 52 | + */ |
| 53 | + public static final NumberOption<Float> SCALE = NumberOption.<Float>number() |
| 54 | + .node("radio", "scale").type(TypeToken.get(Float.class)) |
| 55 | + .min(0.5F).max(1.5F) |
| 56 | + .notifyClient() |
| 57 | + .build(); |
| 58 | + |
| 59 | + /** |
| 60 | + * No documentation available. |
| 61 | + * |
| 62 | + * @since %release_version% |
| 63 | + */ |
| 64 | + public static final NumberOption<Integer> VOLUME = NumberOption.<Integer>number() |
| 65 | + .node("radio", "volume").type(TypeToken.get(Integer.class)) |
| 66 | + .min(0).max(100) |
| 67 | + .notifyClient() |
| 68 | + .build(); |
| 69 | + |
| 70 | + /** |
| 71 | + * No documentation available. |
| 72 | + * |
| 73 | + * @since %release_version% |
| 74 | + */ |
| 75 | + public static final SimpleOption<Boolean> MUTE_RADIO = SimpleOption.<Boolean>builder() |
| 76 | + .node("radio", "mute-radio").type(TypeToken.get(Boolean.class)) |
| 77 | + .notifyClient() |
| 78 | + .build(); |
| 79 | + |
| 80 | + /** |
| 81 | + * No documentation available. |
| 82 | + * |
| 83 | + * @since %release_version% |
| 84 | + */ |
| 85 | + public static final SimpleOption<Boolean> BACKGROUND = SimpleOption.<Boolean>builder() |
| 86 | + .node("radio", "background").type(TypeToken.get(Boolean.class)) |
| 87 | + .notifyClient() |
| 88 | + .build(); |
| 89 | + |
| 90 | + /** |
| 91 | + * If this is disabled the background will change size with the text. |
| 92 | + * |
| 93 | + * @since %release_version% |
| 94 | + */ |
| 95 | + public static final SimpleOption<Boolean> STATIC_BACKGROUND_WIDTH = SimpleOption.<Boolean>builder() |
| 96 | + .comment("If this is disabled the background will change size with the text.") |
| 97 | + .node("radio", "static-background-width").type(TypeToken.get(Boolean.class)) |
| 98 | + .notifyClient() |
| 99 | + .build(); |
| 100 | + |
| 101 | + /** |
| 102 | + * If this is disabled the background will change size with the text. |
| 103 | + * |
| 104 | + * @since %release_version% |
| 105 | + */ |
| 106 | + public static final SimpleOption<Boolean> STATIC_BACKGROUND_HEIGHT = SimpleOption.<Boolean>builder() |
| 107 | + .comment("If this is disabled the background will change size with the text.") |
| 108 | + .node("radio", "static-background-height").type(TypeToken.get(Boolean.class)) |
| 109 | + .notifyClient() |
| 110 | + .build(); |
| 111 | + |
| 112 | + /** |
| 113 | + * No documentation available. |
| 114 | + * |
| 115 | + * @since %release_version% |
| 116 | + */ |
| 117 | + public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number() |
| 118 | + .node("radio", "background-width").type(TypeToken.get(Integer.class)) |
| 119 | + .min(60).max(300) |
| 120 | + .notifyClient() |
| 121 | + .build(); |
| 122 | + |
| 123 | + /** |
| 124 | + * No documentation available. |
| 125 | + * |
| 126 | + * @since %release_version% |
| 127 | + */ |
| 128 | + public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number() |
| 129 | + .node("radio", "background-height").type(TypeToken.get(Integer.class)) |
| 130 | + .min(22).max(64) |
| 131 | + .notifyClient() |
| 132 | + .build(); |
| 133 | + |
| 134 | + /** |
| 135 | + * No documentation available. |
| 136 | + * |
| 137 | + * @since %release_version% |
| 138 | + */ |
| 139 | + public static final SimpleOption<Boolean> BORDER = SimpleOption.<Boolean>builder() |
| 140 | + .node("radio", "border").type(TypeToken.get(Boolean.class)) |
| 141 | + .notifyClient() |
| 142 | + .build(); |
| 143 | + |
| 144 | + /** |
| 145 | + * No documentation available. |
| 146 | + * |
| 147 | + * @since %release_version% |
| 148 | + */ |
| 149 | + public static final NumberOption<Float> BORDER_THICKNESS = NumberOption.<Float>number() |
| 150 | + .node("radio", "border-thickness").type(TypeToken.get(Float.class)) |
| 151 | + .min(0.5F).max(3.0F) |
| 152 | + .notifyClient() |
| 153 | + .build(); |
| 154 | + |
| 155 | + /** |
| 156 | + * No documentation available. |
| 157 | + * |
| 158 | + * @since %release_version% |
| 159 | + */ |
| 160 | + public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder() |
| 161 | + .node("radio", "border-color").type(TypeToken.get(Color.class)) |
| 162 | + .notifyClient() |
| 163 | + .build(); |
| 164 | + |
| 165 | + /** |
| 166 | + * No documentation available. |
| 167 | + * |
| 168 | + * @since %release_version% |
| 169 | + */ |
| 170 | + public static final SimpleOption<Color> BACKGROUND_COLOR = SimpleOption.<Color>builder() |
| 171 | + .node("radio", "background-color").type(TypeToken.get(Color.class)) |
| 172 | + .notifyClient() |
| 173 | + .build(); |
| 174 | + |
| 175 | + /** |
| 176 | + * No documentation available. |
| 177 | + * |
| 178 | + * @since %release_version% |
| 179 | + */ |
| 180 | + public static final SimpleOption<Boolean> SHOW_COVER_ART = SimpleOption.<Boolean>builder() |
| 181 | + .node("radio", "show-cover-art").type(TypeToken.get(Boolean.class)) |
| 182 | + .notifyClient() |
| 183 | + .build(); |
| 184 | + |
| 185 | + /** |
| 186 | + * No documentation available. |
| 187 | + * |
| 188 | + * @since %release_version% |
| 189 | + */ |
| 190 | + public static final SimpleOption<Boolean> SHOW_PROGRESS = SimpleOption.<Boolean>builder() |
| 191 | + .node("radio", "show-progress").type(TypeToken.get(Boolean.class)) |
| 192 | + .notifyClient() |
| 193 | + .build(); |
| 194 | + |
| 195 | + /** |
| 196 | + * No documentation available. |
| 197 | + * |
| 198 | + * @since %release_version% |
| 199 | + */ |
| 200 | + public static final SimpleOption<Boolean> SONG_SCROLL_ANIMATION = SimpleOption.<Boolean>builder() |
| 201 | + .node("radio", "song-scroll-animation").type(TypeToken.get(Boolean.class)) |
| 202 | + .notifyClient() |
| 203 | + .build(); |
| 204 | + |
| 205 | + /** |
| 206 | + * No documentation available. |
| 207 | + * |
| 208 | + * @since %release_version% |
| 209 | + */ |
| 210 | + public static final SimpleOption<Boolean> SHOW_WHEN_NOTHING_PLAYING = SimpleOption.<Boolean>builder() |
| 211 | + .node("radio", "show-when-nothing-playing").type(TypeToken.get(Boolean.class)) |
| 212 | + .notifyClient() |
| 213 | + .build(); |
| 214 | + |
| 215 | + /** |
| 216 | + * No documentation available. |
| 217 | + * |
| 218 | + * @since %release_version% |
| 219 | + */ |
| 220 | + public static final SimpleOption<Boolean> BOLD_ARIST_NAME = SimpleOption.<Boolean>builder() |
| 221 | + .node("radio", "bold-arist-name").type(TypeToken.get(Boolean.class)) |
| 222 | + .notifyClient() |
| 223 | + .build(); |
| 224 | + |
| 225 | + /** |
| 226 | + * No documentation available. |
| 227 | + * |
| 228 | + * @since %release_version% |
| 229 | + */ |
| 230 | + public static final SimpleOption<Boolean> BOLD_SONG_NAME = SimpleOption.<Boolean>builder() |
| 231 | + .node("radio", "bold-song-name").type(TypeToken.get(Boolean.class)) |
| 232 | + .notifyClient() |
| 233 | + .build(); |
| 234 | + |
| 235 | + /** |
| 236 | + * No documentation available. |
| 237 | + * |
| 238 | + * @since %release_version% |
| 239 | + */ |
| 240 | + public static final SimpleOption<Boolean> SHOW_DURATION = SimpleOption.<Boolean>builder() |
| 241 | + .node("radio", "show-duration").type(TypeToken.get(Boolean.class)) |
| 242 | + .notifyClient() |
| 243 | + .build(); |
| 244 | + |
| 245 | + /** |
| 246 | + * No documentation available. |
| 247 | + * |
| 248 | + * @since %release_version% |
| 249 | + */ |
| 250 | + public static final SimpleOption<Boolean> SHOW_PLAY_BUTTON = SimpleOption.<Boolean>builder() |
| 251 | + .node("radio", "show-play-button").type(TypeToken.get(Boolean.class)) |
| 252 | + .notifyClient() |
| 253 | + .build(); |
| 254 | + |
| 255 | + /** |
| 256 | + * No documentation available. |
| 257 | + * |
| 258 | + * @since %release_version% |
| 259 | + */ |
| 260 | + public static final SimpleOption<Color> SONG_NAME_TEXT_COLOR = SimpleOption.<Color>builder() |
| 261 | + .node("radio", "song-name-text-color").type(TypeToken.get(Color.class)) |
| 262 | + .notifyClient() |
| 263 | + .build(); |
| 264 | + |
| 265 | + /** |
| 266 | + * No documentation available. |
| 267 | + * |
| 268 | + * @since %release_version% |
| 269 | + */ |
| 270 | + public static final SimpleOption<Color> ARTIST_NAME_TEXT_COLOR = SimpleOption.<Color>builder() |
| 271 | + .node("radio", "artist-name-text-color").type(TypeToken.get(Color.class)) |
| 272 | + .notifyClient() |
| 273 | + .build(); |
| 274 | + |
| 275 | + /** |
| 276 | + * No documentation available. |
| 277 | + * |
| 278 | + * @since %release_version% |
| 279 | + */ |
| 280 | + public static final SimpleOption<Color> RADIO_PROGRESS_BAR_COLOR = SimpleOption.<Color>builder() |
| 281 | + .node("radio", "radio-progress-bar-color").type(TypeToken.get(Color.class)) |
| 282 | + .notifyClient() |
| 283 | + .build(); |
| 284 | + |
| 285 | + private ModRadio() { |
| 286 | + } |
| 287 | + |
| 288 | +} |
0 commit comments