Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions src/main/java/rs117/hd/HdPluginConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import rs117.hd.config.TextureResolution;
import rs117.hd.config.UIScalingMode;
import rs117.hd.config.VanillaShadowMode;
import rs117.hd.config.SkyboxTheme;

import static rs117.hd.HdPlugin.MAX_DISTANCE;
import static rs117.hd.HdPlugin.MAX_FOG_DEPTH;
Expand Down Expand Up @@ -797,12 +798,36 @@ default boolean characterDisplacement() {
default boolean pohThemeEnvironments() { return true; }


/*====== 3D Skybox settings ======*/

@ConfigSection(
name = "3D Skybox",
description = "Settings for high-resolution 3D panoramic skybox rendering templates.",
position = 4,
closedByDefault = true
)
String skyboxSettings = "skyboxSettings";

String KEY_SELECTED_SKYBOX_THEME = "selectedSkyboxTheme";
@ConfigItem(
keyName = KEY_SELECTED_SKYBOX_THEME,
name = "Skybox Style",
description = "Select the panoramic 3D skybox style.<br>Select 'None' to use default 117 skybox.",
position = 0,
section = skyboxSettings
)
default SkyboxTheme selectedSkyboxTheme()
{
return SkyboxTheme.PARTLY_CLOUDY;
}


/*====== Miscellaneous settings ======*/

@ConfigSection(
name = "Miscellaneous",
description = "Miscellaneous settings",
position = 4,
position = 5,
closedByDefault = true
)
String miscellaneousSettings = "miscellaneousSettings";
Expand Down Expand Up @@ -956,7 +981,7 @@ default boolean windowsHdrCorrection() {
@ConfigSection(
name = "Legacy",
description = "Legacy options. If you dislike a change, you might find an option to change it back here.",
position = 5,
position = 6,
closedByDefault = true
)
String legacySettings = "legacySettings";
Expand Down Expand Up @@ -1109,7 +1134,7 @@ default boolean legacyTzHaarReskin() {
@ConfigSection(
name = "Experimental",
description = "Experimental features - if you're experiencing issues you should consider disabling these.",
position = 6,
position = 7,
closedByDefault = true
)
String experimentalSettings = "experimentalSettings";
Expand Down
22 changes: 22 additions & 0 deletions src/main/java/rs117/hd/config/SkyboxTheme.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package rs117.hd.config;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum SkyboxTheme {
NONE("None (Vanilla/117)", null),
CLEAR_DAY("Clear Day (Autumn Field)", "/rs117/hd/skybox3d/autumn_field_puresky_4k.png"),
CLOUDY("Cloudy Overcast (Soil)", "/rs117/hd/skybox3d/overcast_soil_puresky_4k.png"),
STARRY_NIGHT("Starry Night (Qwantani)", "/rs117/hd/skybox3d/qwantani_night_puresky_4k.png"),
PARTLY_CLOUDY("Partly Cloudy (Sunflowers)", "/rs117/hd/skybox3d/sunflowers_puresky_4k.png");

private final String name;
private final String resourcePath;

@Override
public String toString() {
return name;
}
}
Loading