mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-22 21:17:33 +00:00
Fix some stuff
- Mark mod as compatible - Change mod description - Update go version - Speed up image stitching 2x - Fix stitching progress bar
This commit is contained in:
parent
c78a8b56ae
commit
47f58553cf
@ -1,6 +1,6 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- "1.14.x"
|
- "1.15.x"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
|
@ -72,6 +72,14 @@ func (mbi *MedianBlendedImage) At(x, y int) color.Color {
|
|||||||
return mbi.cachedRow.RGBAAt(x, y)
|
return mbi.cachedRow.RGBAAt(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Opaque returns whether the image is fully opaque.
|
||||||
|
//
|
||||||
|
// For more speed and smaller filesizes, MedianBlendedImage will be marked as non-transparent.
|
||||||
|
// This will speed up image saving by 2x, as there is no need to iterate over the whole image to find a single non opaque pixel.
|
||||||
|
func (mbi *MedianBlendedImage) Opaque() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// Progress returns the approximate progress of any process that scans the image from top to bottom.
|
// Progress returns the approximate progress of any process that scans the image from top to bottom.
|
||||||
func (mbi *MedianBlendedImage) Progress() (value, max int) {
|
func (mbi *MedianBlendedImage) Progress() (value, max int) {
|
||||||
size := mbi.Bounds().Size()
|
size := mbi.Bounds().Size()
|
||||||
|
3
compatibility.xml
Normal file
3
compatibility.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<Mod _format_version="0"
|
||||||
|
version_built_with="4">
|
||||||
|
</Mod>
|
2
mod.xml
2
mod.xml
@ -1,4 +1,4 @@
|
|||||||
<Mod name="MapCapture"
|
<Mod name="MapCapture"
|
||||||
description="This mod screen-captures a large part of the map, and stores the screenshot as image."
|
description="This mod lets you capture a large part of the world, and store it as image."
|
||||||
request_no_api_restrictions="1">
|
request_no_api_restrictions="1">
|
||||||
</Mod>
|
</Mod>
|
Loading…
Reference in New Issue
Block a user