Skip to content

Commit

Permalink
Add -1 and +1 parallel world capture area
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Mar 26, 2024
1 parent 9202886 commit ae6bcd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion files/config.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit ae6bcd9

Please sign in to comment.