Skip to content

Commit

Permalink
darkmode config
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jun 30, 2024
1 parent 6957653 commit 9d2b465
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ command_history.txt
.vscode/settings.json
.vscode/recipe.json
.vscode/probe.code-snippets
config/darkmodeeverywhere-client.toml
1 change: 1 addition & 0 deletions automation/settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ $CONFIGS_TO_REMOVE_FROM_CLIENT_FILES = @(
"defaultoptions/servers.dat",
"defaultoptions/extra",
"darkmodeeverywhereshaders.json",
"darkmodeeverywhere-client.toml",
"ae2/client.json",
"explorerscompass-client.toml",
"theoneprobe-client.toml",
Expand Down
27 changes: 27 additions & 0 deletions defaultconfigs/darkmodeeverywhere-client.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#A list of class:method strings (render methods) that the dark shader will not be applied to.
#Each string consists of the class and the method (or any substring) to block the dark shader.
#For example, 'renderHunger' is sufficient to block 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood' (either will work).
METHOD_SHADER_BLACKLIST = ["mezz.jei.common.render.FluidTankRenderer:drawTextureWithMasking", "mezz.jei.library.render.FluidTankRenderer:drawTextureWithMasking", "renderCrosshair", "m_93080_", "renderSky", "m_202423_", "renderHotbar", "m_93009_", "m_193837_", "setupOverlayRenderState", "net.minecraftforge.client.gui.overlay.ForgeGui", "renderFood", "renderExperienceBar", "m_93071_", "renderLogo", "m_280037_", "m_280118_", "net.minecraft.client.gui.Gui", "net.minecraft.src.C_3431_", "renderDirtBackground", "m_280039_", "m_280039_"]
#Enabling this config will (every 5 seconds) dump which methods were used to render GUIs that the dark shader was applied to
#The dump will consist of a list of class:method strings, e.g. 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood'
#Use this feature to help find the render method strings of GUIs you would like to blacklist.
METHOD_SHADER_DUMP = false

["Inventory Button"]
#Pixels away from the left of the GUI in the x axis
#Range: > 0
X = 46
#Pixels away from the bottom of the GUI in the y axis
#Range: > 0
Y = 0

["Main Menu Button"]
#Enabled
SHOW = true
#Pixels away from the left of the GUI in the x axis
#Range: > 0
MAIN_X = 4
#Pixels away from the bottom of the GUI in the y axis
#Range: > 0
MAIN_Y = 40

0 comments on commit 9d2b465

Please sign in to comment.