Skip to content
Draft
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
10 changes: 10 additions & 0 deletions src/main/java/rs117/hd/HdPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,11 @@ private void updateCachedConfigs() {

if (configSeasonalHemisphere == SeasonalHemisphere.NORTHERN) {
switch (time.getMonth()) {
case MARCH:
case APRIL:
case MAY:
configSeasonalTheme = SeasonalTheme.SPRING;
break;
case SEPTEMBER:
case OCTOBER:
case NOVEMBER:
Expand All @@ -1679,6 +1684,11 @@ private void updateCachedConfigs() {
case AUGUST:
configSeasonalTheme = SeasonalTheme.WINTER;
break;
case SEPTEMBER:
case OCTOBER:
case NOVEMBER:
configSeasonalTheme = SeasonalTheme.SPRING;
break;
default:
configSeasonalTheme = SeasonalTheme.SUMMER;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rs117/hd/HdPluginConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ default boolean parallaxOcclusionMapping() {
@ConfigItem(
keyName = KEY_SEASONAL_THEME,
name = "Seasonal Theme",
description = "Festive themes for Gielinor.",
description = "Festive themes for Gielinor. Select Summer to Disable",
position = 0,
section = environmentSettings
)
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/rs117/hd/config/SeasonalTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
@RequiredArgsConstructor
public enum SeasonalTheme {
AUTOMATIC,
SPRING,
SUMMER,
AUTUMN,
WINTER,
WINTER
;
}
3 changes: 3 additions & 0 deletions src/main/java/rs117/hd/scene/EnvironmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public void startUp() {
map.put(env.key, env);

Environment.OVERWORLD = map.getOrDefault("OVERWORLD", Environment.DEFAULT);
Environment.SPRING = map.getOrDefault("SPRING", Environment.DEFAULT);
Environment.AUTUMN = map.getOrDefault("AUTUMN", Environment.DEFAULT);
Environment.WINTER = map.getOrDefault("WINTER", Environment.DEFAULT);

Expand Down Expand Up @@ -479,6 +480,8 @@ private Environment getCurrentEnvironment() {

private Environment getOverworldEnvironment() {
switch (plugin.configSeasonalTheme) {
case SPRING:
return Environment.SPRING;
case AUTUMN:
return Environment.AUTUMN;
case WINTER:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/rs117/hd/scene/environments/Environment.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Environment {
.setFogColor(rgb("#ff00ff"))
.normalize();

public static Environment OVERWORLD, AUTUMN, WINTER;
public static Environment OVERWORLD, SPRING, AUTUMN, WINTER;

public String key;
@JsonAdapter(AreaManager.Adapter.class)
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/rs117/hd/scene/environments.json
Original file line number Diff line number Diff line change
Expand Up @@ -2155,6 +2155,26 @@
"windSpeed": 15,
"windStrength": 50
},
{
"key": "SPRING",
"ambientColor": "#f4fdff",
"ambientStrength": 1.45,
"directionalColor": [
260,
260,
220
],
"directionalStrength": 3.15,
"sunAngles": [
48,
265
],
"fogColor": "#9fcaff",
"fogDepth": 8,
"windAngle": 40,
"windSpeed": 10,
"windStrength": 30
},
{
"key": "AUTUMN",
"ambientColor": [
Expand Down
60 changes: 60 additions & 0 deletions src/main/resources/rs117/hd/scene/materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -3180,6 +3180,66 @@
"name": "LEAVES_ORANGE_TOP",
"parent": "LEAVES_TOP"
},
{
"name": "LEAVES_MAGIC_SIDE",
"parent": "LEAVES_SIDE"
},
{
"name": "LEAVES_MAGIC_TOP",
"parent": "LEAVES_TOP"
},
{
"name": "SPRING_CHERRY_BLOSSOM_LEAVES_TOP",
"hasTransparency": true,
"textureScale": [
1.025,
1.025,
1.0
],
"materialsToReplace": [
"LEAVES_ORANGE_TOP"
],
"replacementCondition": "season == SeasonalTheme.SPRING"
},
{
"name": "SPRING_CHERRY_BLOSSOM_LEAVES_SIDE",
"hasTransparency": true,
"textureScale": [
1.025,
1.025,
1.0
],
"materialsToReplace": [
"LEAVES_ORANGE_SIDE"
],
"replacementCondition": "season == SeasonalTheme.SPRING"
},
{
"name": "SPRING_JACARDANDA_LEAVES_TOP",
"hasTransparency": true,
"textureScale": [
1.025,
1.025,
1.0
],
"materialsToReplace": [
"LEAVES_MAGIC_TOP"
],
"replacementCondition": "season == SeasonalTheme.SPRING"
},
{
"name": "SPRING_JACARDANDA_LEAVES_SIDE",
"hasTransparency": true,
"textureScale": [
1.025,
1.025,
1.0
],
"materialsToReplace": [
"LEAVES_MAGIC_SIDE"
],
"replacementCondition": "season == SeasonalTheme.SPRING"
},
{
"name": "AUTUMN_LEAVES_YELLOW_SIDE",
"hasTransparency": true,
Expand Down
29 changes: 21 additions & 8 deletions src/main/resources/rs117/hd/scene/model_overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -32397,6 +32397,19 @@
"description": "Magic Tree",
"baseMaterial": "BARK_STONEPINE",
"windDisplacementMode": "VERTEX_WITH_HEMISPHERE_BLEND",
"uvType": "BOX",
"uvOrientation": 150,
"uvScale": 0.35,
"materialOverrides": {
"LEAVES_SIDE": {
"windDisplacementMode": "VERTEX",
"textureMaterial": "LEAVES_MAGIC_SIDE"
},
"LEAVES_TOP": {
"windDisplacementMode": "VERTEX",
"textureMaterial": "LEAVES_MAGIC_TOP"
}
},
"objectIds": [
"MAGIC_TREE_SEEDLING",
"MAGIC_TREE_1",
Expand All @@ -32413,10 +32426,7 @@
"MAGIC_TREE_FULLYGROWN_1",
"MAGIC_TREE_FULLYGROWN_2",
"MAGICTREE"
],
"uvType": "BOX",
"uvOrientation": 150,
"uvScale": 0.35
]
},
{
"description": "Magic Tree Stump",
Expand Down Expand Up @@ -35354,6 +35364,7 @@
"DUNGEONKIT_BARS03_SLOPE02",
"DUNGEONKIT_BARS01_LEFT01",
"DUNGEONKIT_BARS01_RIGHT01",

"DUNGEONKIT_BARS03_LEFT01",
"DUNGEONKIT_BARS03_RIGHT01",
"DUNGEONKIT_BARS03_BROKEN01"
Expand Down Expand Up @@ -41157,8 +41168,7 @@
"DAGANNOTH_PUDDLE"
],
"uvType": "BOX"
},
{
}, {
"description": "Waterbirth Water Leak",
"baseMaterial": "GRAY_60",
"objectIds": [
Expand Down Expand Up @@ -42083,7 +42093,8 @@
"description": "Misthalin Mystery Boat",
"objectIds": [
"MISTMYST_BOAT_LUMBRIDGE",
"MISTMYST_BOAT_ISLAND",
"MISTMYST_BOAT_ISLAND"
,
"SEASLUG_ROWBOAT"
],
"baseMaterial": "WOOD_GRAIN_3",
Expand Down Expand Up @@ -47713,7 +47724,9 @@
"uvType": "BOX"
},
{
"colors": "a < 255",
"colors":
"a < 255"
,
"baseMaterial": "GRAY_85",
"flatNormals": true,
"receiveShadows": false
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.