Skip to content

Commit

Permalink
chore: updated screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
exochron committed Dec 9, 2023
1 parent 071cb42 commit 9f5abfa
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
44 changes: 20 additions & 24 deletions DevZone/MoveScreenshots.ps1
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# move most recent screenshot into Images with specific name
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\11_options.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\10_options-menu.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\09_favorites-menu.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\08_notes.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\07_filter-rarity.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\06_filter-color.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\05_filter-family.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\04_filter-type.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\03_filter-source.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\02_sort.jpg -Force }
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last 1 | ForEach-Object { move ..\..\..\Screenshots\$_ .\Images\01_special.jpg -Force }
# move most recent screenshot into ./Images with specific name
$files = ("01_special.jpg", '02_sort.jpg', '03_filter-source.jpg', '04_filter-type.jpg', '05_filter-family.jpg', '06_filter-color.jpg', '07_filter-rarity.jpg', '08_notes.jpg', '09_favorites-menu.jpg', '10_options-menu.jpg', '11_options.jpg')
gci ..\..\..\Screenshots\ | sort LastWriteTime |select -last $files.Count | ForEach-Object -Begin{ $i=0 } -Process { $f=$files[$i++]; move ..\..\..\Screenshots\$_ .\Images\$f -Force }

# using imagick convert
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 01_special.jpg 01_special.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 02_sort.jpg 02_sort.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 03_filter-source.jpg 03_filter-source.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 04_filter-type.jpg 04_filter-type.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x1050+10+130 05_filter-family.jpg 05_filter-family.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 06_filter-color.jpg 06_filter-color.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 07_filter-rarity.jpg 07_filter-rarity.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 08_notes.jpg 08_notes.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 880x800+10+130 09_favorites-menu.jpg 09_favorites-menu.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 390x395+800+130 10_options-menu.jpg 10_options-menu.jpg
docker run --rm -v .\Images\:/imgs dpokidov/imagemagick:latest -crop 870x895+1745+140 11_options.jpg 11_options.jpg
# using imagick convert to crop images
# https://imagemagick.org/script/command-line-options.php#crop
function convert
{
docker run --rm -d -v .\Images\:/imgs dpokidov/imagemagick:latest @args
}
convert -crop 880x800+10+130 01_special.jpg 01_special.jpg
convert -crop 880x800+10+130 02_sort.jpg 02_sort.jpg
convert -crop 880x800+10+130 03_filter-source.jpg 03_filter-source.jpg
convert -crop 880x800+10+130 04_filter-type.jpg 04_filter-type.jpg
convert -crop 880x1050+10+130 05_filter-family.jpg 05_filter-family.jpg
convert -crop 880x800+10+130 06_filter-color.jpg 06_filter-color.jpg
convert -crop 880x800+10+130 07_filter-rarity.jpg 07_filter-rarity.jpg
convert -crop 880x800+10+130 08_notes.jpg 08_notes.jpg
convert -crop 880x800+10+130 09_favorites-menu.jpg 09_favorites-menu.jpg
convert -crop 415x415+800+130 10_options-menu.jpg 10_options-menu.jpg
convert -crop 870x895+1745+140 11_options.jpg 11_options.jpg
6 changes: 5 additions & 1 deletion DevZone/Screenshot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ function ADDON:TakeScreenshots()
frame:Hide()
end

C_CVar.SetCVar("mountJournalShowPlayer", 0) -- hide player

if WeakAuras then
WeakAuras:Toggle() -- turn off WA
end
MountJournalEnhanced_Open()
ToggleCollectionsJournal(COLLECTIONS_JOURNAL_TAB_INDEX_MOUNTS)

-- give time to load properly
C_Timer.After(0.5, function()
Expand Down Expand Up @@ -121,6 +123,8 @@ function ADDON:TakeScreenshots()
if WeakAuras then
WeakAuras:Toggle() -- turn on WA
end

C_CVar.SetCVar("mountJournalShowPlayer", 1) -- show player
end
)
end)
Expand Down
Binary file modified Images/01_special.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/02_sort.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/03_filter-source.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/04_filter-type.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/05_filter-family.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/06_filter-color.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/07_filter-rarity.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/08_notes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/09_favorites-menu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/10_options-menu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/11_options.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion SlashCommand.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function SlashCmdList.MOUNTJOURNALENHANCED(input)
elseif loweredInput == "debug off" then
ADDON.settings.ui.debugMode = false
print("MountJournalEnhanced: debug mode deactivated.")
elseif ADDON.TakeScreenshots and loweredInput == "sreenshots" then
elseif ADDON.TakeScreenshots and loweredInput == "screenshot" then
ADDON:TakeScreenshots()
elseif loweredInput == "reset size" then
ADDON.UI:RestoreWindowSize()
Expand Down

0 comments on commit 9f5abfa

Please sign in to comment.