Add -1 and +1 parallel world capture area

This commit is contained in:
David Vogel 2024-03-26 12:07:50 +01:00
parent 920288614b
commit ae6bcd9743
2 changed files with 15 additions and 3 deletions

View File

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

View File

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