Skip to content

Commit

Permalink
Add new capture area preset
Browse files Browse the repository at this point in the history
"3 Worlds" does contain the base layout of a "New Game", but 9 times (3x3).
  • Loading branch information
Dadido3 committed Feb 20, 2024
1 parent 05e6b18 commit 20d7c33
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions AREAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
6 changes: 6 additions & 0 deletions files/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
},
}
2 changes: 1 addition & 1 deletion settings.lua
Original file line number Diff line number Diff line change
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" }, { "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,
},
Expand Down

0 comments on commit 20d7c33

Please sign in to comment.