From ae6bcd9743785f9ebe10839b9e6310876e1565fb Mon Sep 17 00:00:00 2001 From: David Vogel Date: Tue, 26 Mar 2024 12:07:50 +0100 Subject: [PATCH] Add -1 and +1 parallel world capture area --- files/config.lua | 14 +++++++++++++- settings.lua | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/files/config.lua b/files/config.lua index 4204e68..f4ad447 100644 --- a/files/config.lua +++ b/files/config.lua @@ -1,4 +1,4 @@ --- Copyright (c) 2022 David Vogel +-- Copyright (c) 2022-2024 David Vogel -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT @@ -40,6 +40,18 @@ Config.CaptureArea = { BottomRight = Vec2(17920, 41984), -- in world coordinates. This pixel is not included in the rectangle. }, + -- Main -1 parallel world: The main world with 3 parts: sky, normal and hell. + ["1x3 -1"] = { + TopLeft = Vec2(-17920, -31744) + Vec2(-35840, 0), -- in world coordinates. + BottomRight = Vec2(17920, 41984) + Vec2(-35840, 0), -- in world coordinates. This pixel is not included in the rectangle. + }, + + -- Main +1 parallel world: The main world with 3 parts: sky, normal and hell. + ["1x3 +1"] = { + TopLeft = Vec2(-17920, -31744) + Vec2(35840, 0), -- in world coordinates. + BottomRight = Vec2(17920, 41984) + Vec2(35840, 0), -- in world coordinates. This pixel is not included in the rectangle. + }, + -- Extended: Main world + a fraction of the parallel worlds to the left and right. ["1.5x3"] = { TopLeft = Vec2(-25600, -31744), -- in world coordinates. diff --git a/settings.lua b/settings.lua index 7c0dfed..01b1e8f 100644 --- a/settings.lua +++ b/settings.lua @@ -1,4 +1,4 @@ --- Copyright (c) 2022-2023 David Vogel +-- Copyright (c) 2022-2024 David Vogel -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT @@ -95,7 +95,7 @@ modSettings = { ui_name = " Rectangle", ui_description = "The area to be captured.\nSee documentation for more information.", value_default = "1x1", - values = { { "1x1", "Base layout" }, { "1x3", "Main World" }, { "1.5x3", "Extended" }, { "3x3", "3 Worlds" }, { "custom", "Custom" } }, + values = { { "1x1", "Base layout" }, { "1x3", "Main World" }, { "1x3 -1", "Main -1 Parallel World" }, { "1x3 +1", "Main +1 Parallel World" }, { "1.5x3", "Extended" }, { "3x3", "3 Worlds" }, { "custom", "Custom" } }, scope = MOD_SETTING_SCOPE_RUNTIME, show_fn = function() return modSettings:GetNextValue("capture-mode") == "area" end, },