diff --git a/files/modification.lua b/files/modification.lua index 9df9158..6abc03e 100644 --- a/files/modification.lua +++ b/files/modification.lua @@ -93,6 +93,11 @@ function Modification.RequiredChanges() -- Capturing will not work in fullscreen. config["fullscreen"] = "0" + magic["DRAW_PARALLAX_BACKGROUND"] = ModSettingGet("noita-mapcap.disable-background") and "0" or "1" + magic["DEBUG_PAUSE_GRID_UPDATE"] = ModSettingGet("noita-mapcap.disable-physics") and "1" or "0" + magic["DEBUG_PAUSE_BOX2D"] = ModSettingGet("noita-mapcap.disable-physics") and "1" or "0" + magic["DEBUG_DISABLE_POSTFX_DITHERING"] = ModSettingGet("noita-mapcap.disable-postfx") and "1" or "0" + return config, magic end diff --git a/settings.lua b/settings.lua index dd5e965..3d4aada 100644 --- a/settings.lua +++ b/settings.lua @@ -262,9 +262,31 @@ modSettings = { ui_name = "Game modifications:", not_setting = true, }, + { + id = "disable-background", + ui_name = " Disable parallax background", + ui_description = "Turns the world background black.", + value_default = DebugAPI.IsDevBuild(), -- Defaults to true in dev build, false in regular Noita. + scope = MOD_SETTING_SCOPE_RUNTIME_RESTART, + }, + { + id = "disable-physics", + ui_name = " Disable pixel and entity physics", + ui_description = "Will freeze all pixel simulations and rigid body dynamics.", + value_default = DebugAPI.IsDevBuild(), -- Defaults to true in dev build, false in regular Noita. + scope = MOD_SETTING_SCOPE_RUNTIME_RESTART, + show_fn = function() return DebugAPI.IsDevBuild() end, + }, + { + id = "disable-postfx", + ui_name = " Disable post FX", + ui_description = "Will disable the following postprocessing:\n- Dithering", + value_default = DebugAPI.IsDevBuild(), -- Defaults to true in dev build, false in regular Noita. + scope = MOD_SETTING_SCOPE_RUNTIME_RESTART, + }, { id = "modify-entities", - ui_name = " Modify entities", + ui_name = " Disable entity logic", ui_description = "If enabled, the mod will disable some components of all encountered entities.\nThis will:\n- Disable AI\n- Disable falling\n- Disable hovering and rotation animations\n- Reduce explosions\n \nThis may slow down things a bit.\nAnd it may make Noita more likely to crash.\nUse at your own risk.", value_default = false, scope = MOD_SETTING_SCOPE_RUNTIME,