From 20d7c330a6cbc186df856dca05037a1b11c8cb47 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Tue, 20 Feb 2024 18:02:21 +0100 Subject: [PATCH] Add new capture area preset "3 Worlds" does contain the base layout of a "New Game", but 9 times (3x3). --- AREAS.md | 13 +++++++++++++ files/config.lua | 6 ++++++ settings.lua | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/AREAS.md b/AREAS.md index eb27675..c7160cf 100644 --- a/AREAS.md +++ b/AREAS.md @@ -64,3 +64,16 @@ Bottom = 41984 The end result will have a size of `51200 x 73728 pixels ~= 3775 megapixels`. ![Base layout](images/scale32_extended.png) + +## `3 Worlds` + +This area consists of `Main world` plus a full left and right parallel world. + +``` lua +Left = -53760 +Top = -31744 +Right = 53760 +Bottom = 41984 +``` + +The end result will have a size of `107520 x 73728 pixels ~= 7927 megapixels`. diff --git a/files/config.lua b/files/config.lua index e0f3aad..4204e68 100644 --- a/files/config.lua +++ b/files/config.lua @@ -45,4 +45,10 @@ Config.CaptureArea = { TopLeft = Vec2(-25600, -31744), -- in world coordinates. BottomRight = Vec2(25600, 41984), -- in world coordinates. This pixel is not included in the rectangle. }, + + -- Extended: Main world + each parallel world to the left and right. + ["3x3"] = { + TopLeft = Vec2(-53760, -31744), -- in world coordinates. + BottomRight = Vec2(53760, 41984), -- in world coordinates. This pixel is not included in the rectangle. + }, } diff --git a/settings.lua b/settings.lua index 4ebccfd..7c0dfed 100644 --- a/settings.lua +++ b/settings.lua @@ -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" }, { "custom", "Custom" } }, + values = { { "1x1", "Base layout" }, { "1x3", "Main World" }, { "1.5x3", "Extended" }, { "3x3", "3 Worlds" }, { "custom", "Custom" } }, scope = MOD_SETTING_SCOPE_RUNTIME, show_fn = function() return modSettings:GetNextValue("capture-mode") == "area" end, },