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
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ plugins {
}

repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
content {
Expand Down
13 changes: 13 additions & 0 deletions schemas/areas.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
"type": "boolean",
"description": "Whether to fill gaps in the ground. Can only be disabled if hideOtherAreas is true."
},
"horizonTileReference": {
"type": "array",
"description": "World tile coordinates [x, y] or [x, y, plane] used to sample horizon fill height and material. When set, empty tiles outside this area's AABBs are filled to the scene edge.",
"items": {
"type": "integer"
},
"minItems": 2,
"maxItems": 3
},
"horizonFlatTerrain": {
"type": "boolean",
"description": "When true with horizonTileReference set, extend flat land instead of water (no underwater procgen)."
},
"areas": {
"type": "array",
"description": "A list of other areas to include in this area.",
Expand Down
1 change: 1 addition & 0 deletions src/main/java/rs117/hd/HdPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,7 @@ public void processPendingConfigChanges() {
client.setExpandedMapLoading(getExpandedMapLoadingChunks());
// fall-through
case KEY_HIDE_UNRELATED_AREAS:
case KEY_HORIZON_TILES:
if (client.getGameState() == GameState.LOGGED_IN)
client.setGameState(GameState.LOADING);
break;
Expand Down
20 changes: 17 additions & 3 deletions src/main/java/rs117/hd/HdPluginConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,28 @@ default boolean hideUnrelatedAreas() {
return true;
}

String KEY_HORIZON_TILES = "horizonTiles";
@ConfigItem(
keyName = KEY_HORIZON_TILES,
name = "Horizon tiles",
description =
"Expands water outside hidden areas to the loaded map edge so scenery is not cut off abruptly.<br>" +
"Only applies while Hide unrelated areas is enabled.",
position = 5,
section = generalSettings
)
default boolean horizonTiles() {
return true;
}

String KEY_ANTI_ALIASING_MODE = "antiAliasingMode";
@ConfigItem(
keyName = KEY_ANTI_ALIASING_MODE,
name = "Anti-Aliasing",
description =
"Improves pixelated edges at the cost of significantly higher GPU usage.<br>" +
"MSAA x16 is very expensive, so x8 is recommended if anti-aliasing is desired.",
position = 5,
position = 6,
section = generalSettings
)
default AntiAliasingMode antiAliasingMode()
Expand All @@ -160,7 +174,7 @@ default AntiAliasingMode antiAliasingMode()
description =
"Render the game at a different resolution and stretch it to fit the screen.<br>" +
"Reducing this can improve performance, particularly on very high resolution displays.",
position = 6,
position = 7,
section = generalSettings
)
@Units(Units.PERCENT)
Expand All @@ -173,7 +187,7 @@ default int sceneResolutionScale() {
keyName = "sceneScalingMode",
name = "Game Scaling Mode",
description = "The sampling function to use when upscaling the above reduced game resolution.",
position = 7,
position = 8,
section = generalSettings
)
default SceneScalingMode sceneScalingMode()
Expand Down
Loading