Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ramdany7 committed Jun 25, 2024
1 parent 621af5d commit 0b63324
Show file tree
Hide file tree
Showing 17 changed files with 279 additions and 187 deletions.
163 changes: 96 additions & 67 deletions RCFI Tools.bat

Large diffs are not rendered by default.

Binary file modified images/Win11A-Back-Gradient.png
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/Win11A-Front-Bevel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Win11A-Front-BevelShadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Win11A-Front-GradientShadow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion templates/(Shadow Only).bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ set "shadow-Y-position=+6.5"

:: Template Command
::===================================
"%Converter%" "%inputfile%" -resize 490x490 ^( +clone -background %shadow-color% -shadow %shadow-opacity%x%shadow-blur%%shadow-x-position%%shadow-y-position% ^) +swap -background none -layers merge -gravity %image-position% -extent 512x512 -define icon:auto-resize="%TemplateIconSize%" "%outputfile%"
"%Converter%" "%inputfile%" -resize 490x490 ^( +clone -background %shadow-color% -shadow %shadow-opacity%x%shadow-blur%%shadow-x-position%%shadow-y-position% ^) +swap -background none -layers merge -gravity %image-position% -extent 512x512 -define icon:auto-resize="%TemplateIconSize%" "%outputfile%"



20 changes: 12 additions & 8 deletions templates/BeOrigin.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:: Template-Version=v1.0
:: Template-Version=v1.1
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -9,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

::--------- Label --------------------------
set "display-FolderName=yes"
set "FolderNameShort-characters-limit=11"
Expand All @@ -17,7 +21,6 @@ set "FolderNameLong-characters-limit=38"
set "FolderNameLong-font=Arial"
set "FolderName-Center=Auto"


::--------- Movie Info ---------------------
set "display-movieinfo=yes"
set "show-Rating=yes"
Expand Down Expand Up @@ -78,6 +81,12 @@ exit /b
::::::::::::::::::::::::::: CODE START :::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
-background none ^
Expand Down Expand Up @@ -119,8 +128,8 @@ exit /b

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b
call :GetInfo-nfo_file

set CODE-STAR-IMAGE= ( ^
"%star-image%" ^
Expand Down Expand Up @@ -283,11 +292,6 @@ exit /b


:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
25 changes: 13 additions & 12 deletions templates/DVDBox Dark.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
:: Template-Version=v1.1
:: 2023-09-13 Adding error handling for: when no DiscArt found.
:: 2023-12-16 Adding a feature to generate "DiscArt."
:: 2023-12-21 Adding a feature to search for an image to use as "DiscArt."
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
:: Template-Version=v1.2
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -13,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

set "display-DiscImage=yes"
set "DiscArt-search=*discart.png"
set "generate-DiscArt=yes"
Expand Down Expand Up @@ -57,6 +57,12 @@ exit /b
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
-background none ^
Expand Down Expand Up @@ -119,9 +125,8 @@ goto Generate_DiscArt-done

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
call :GetInfo-nfo_file
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b
if not defined rating exit /b

set CODE-STAR-IMAGE= ( ^
"%star-image%" ^
Expand All @@ -130,6 +135,7 @@ set CODE-STAR-IMAGE= ( ^
( +clone -background BLACK -shadow 40x1.2+1.8+3 ) ^
+swap -background none -layers merge -extent 512x512 ^
) -compose Over -composite
if not defined rating exit /b

set CODE-RATING= ( ^
-font "%rcfi%\resources\ANGIE-BOLD.TTF" ^
Expand Down Expand Up @@ -170,11 +176,6 @@ exit /b


:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
24 changes: 12 additions & 12 deletions templates/DVDBox Light.bat
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
:: Template-Version=v1.1
:: 2023-09-13 Adding error handling for: when no DiscArt found.
:: 2023-12-16 Adding a feature to generate "DiscArt."
:: 2023-12-21 Adding a feature to search for an image to use as "DiscArt."
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.

:: Template-Version=v1.2
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -14,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

set "display-DiscImage=yes"
set "DiscArt-search=*discart.png"
set "generate-DiscArt=yes"
Expand Down Expand Up @@ -58,6 +57,12 @@ exit /b
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
-background none ^
Expand Down Expand Up @@ -120,7 +125,7 @@ goto Generate_DiscArt-done

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
call :GetInfo-nfo_file
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b

set CODE-STAR-IMAGE= ( ^
Expand Down Expand Up @@ -171,11 +176,6 @@ exit /b


:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
20 changes: 12 additions & 8 deletions templates/DVDCase Bluray.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:: Template-Version=v1.1
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
:: Template-Version=v1.2
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -10,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

set "display-movieinfo=yes"
set "show-Rating=yes"
set "show-Genre=yes"
Expand Down Expand Up @@ -46,6 +49,12 @@ exit /b
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

:: Get background image
set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
Expand All @@ -70,7 +79,7 @@ exit /b

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
call :GetInfo-nfo_file
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b

set CODE-STAR-IMAGE= ( ^
Expand Down Expand Up @@ -120,11 +129,6 @@ set CODE-GENRE= ( ^
exit /b

:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
21 changes: 13 additions & 8 deletions templates/DVDCase Transparent Plastic.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:: Template-Version=v1.1
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
:: Template-Version=v1.2
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -10,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

set "display-movieinfo=yes"
set "show-Rating=yes"
set "show-Genre=yes"
Expand Down Expand Up @@ -45,6 +48,12 @@ endlocal
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
-background none ^
Expand All @@ -67,9 +76,10 @@ exit /b

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
call :GetInfo-nfo_file
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b


set CODE-STAR-IMAGE= ( ^
"%star-image%" ^
-scale 88x88! ^
Expand Down Expand Up @@ -119,11 +129,6 @@ exit /b


:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
2 changes: 2 additions & 0 deletions templates/DiscArt.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:: Template-Version=v1.0

:: Template Info
::========================================================
::` This template will also be used to automatically
Expand Down
22 changes: 12 additions & 10 deletions templates/Folder Horizontal.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:: Template-Version=v1.1
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
:: 2024-05-26 Adding function to trim transparent pixel from the logo and ClearArt image.
:: 2024-05-27 Changging Logo and ClearArt image size to keep aspect ratio.
:: Template-Version=v1.2
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.

:: Template Info
::========================================================
Expand All @@ -12,6 +11,8 @@

:: Template Config
::========================================================
set "use-GlobalConfig=Yes"

::--------- Label --------------------------
set "display-FolderName=yes"
set "FolderNameShort-characters-limit=10"
Expand Down Expand Up @@ -71,6 +72,12 @@ exit /b
::::::::::::::::::::::::::: CODE START :::::::::::::::::::::::::::::::::

:LAYER-BASE
if /i "%use-GlobalConfig%"=="Yes" (
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
)
)

set CODE-BACKGROUND= ( "%canvas%" ^
-scale 512x512! ^
-background none ^
Expand Down Expand Up @@ -98,8 +105,8 @@ exit /b

:LAYER-RATING
if /i not "%display-movieinfo%" EQU "yes" exit /b
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
if /i not "%Show-Rating%" EQU "yes" exit /b
call :GetInfo-nfo_file

set CODE-STAR-IMAGE= ( ^
"%star-image%" ^
Expand Down Expand Up @@ -263,11 +270,6 @@ exit /b


:GetInfo-nfo_file
if not exist "*.nfo" (
rem echo %TAB% %g_%No ".nfo" detected.%r_%
exit /b
)

for %%N in (*.nfo) do (
set "nfoName=%%~nxN"
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%
Expand Down
Loading

0 comments on commit 0b63324

Please sign in to comment.