Add more game modification options

This commit is contained in:
David Vogel 2022-07-28 19:42:43 +02:00
parent cc7aa35627
commit 98f663f200
2 changed files with 28 additions and 1 deletions

View File

@ -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

View File

@ -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,