From ab4845b9ff1394192b1fec7c54d9cbb4117253ef Mon Sep 17 00:00:00 2001 From: YozoraXCII <96386153+YozoraXCII@users.noreply.github.com> Date: Fri, 11 Nov 2022 14:01:03 +0000 Subject: [PATCH] Add "average" as a rating overlay option with image. --- defaults/overlays/images/rating/Average.png | Bin 0 -> 1305 bytes defaults/overlays/ratings.yml | 4 +- docs/defaults/overlays/ratings.md | 40 ++++++++++---------- 3 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 defaults/overlays/images/rating/Average.png diff --git a/defaults/overlays/images/rating/Average.png b/defaults/overlays/images/rating/Average.png new file mode 100644 index 0000000000000000000000000000000000000000..dea002170029970c45a04725b9d99f07c085647d GIT binary patch literal 1305 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r51|<6gKdl8)k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+nAI{vB1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!ovKsVXIz(B#=QqR!b zFxkjFEip+)!N|bKNZ-Ih-_T6g$jHjr)XKzA0Sc6W78a$XSp~VcL9GMwY?U%fN(!v> z^~=l4^~#O)@{7{-4J|D#^$m>ljf`}GDs+o0^GXscbn}XpVJ5hw7AF^F7L;V>=P7_p zOiaozEwNPsIu_!K+yY-;xWReF(69oAntnxMfxe-hfqrf-$ZKHL#U(+h2xnkbT^v$b zkg6Y)TAW{6lnjiLG-a4(VDRC$2&53`8Y`Fl?$S+VZGS)Lu&oV;4(PkmH?9jZNHuj(0P(G`4g!G**J@O~K-Es9qDCdi8;h(FesWQcS~y zfXN5MgeP4f2cGy-^MEP72$-}rB>74h7#KS}T^vIyZoQcsn{~v1hwZztWzhP&#;YzY z56ZZ1U#N3(@o`m!YNJi5!Vx=vcT4ayAB>4vf4+Z3^6%9qEsgIF{$z+?*u=I@`}PL0 zqy)u=eLpIBjvV-VZ5rzf2@lTYThAK`FmJ#8SfZox`I|kVyk90WSgH23<|sunR;h9u z8b~^@C-7DDKi$Q3`&)dSE$@b?mtW7guVwgoY%%|~x^;~Qq*<~L%x?CO_fY0_U|^as zgGs}Hr~S>l#b-S~)J-=KVDBs6_G&_`#GHG%N)B&!glw4C-gy1`F@}we&0nwCd^jeR z$(a97Wl{41)ALuu_Dp?s?d-f();&K@voPlKB`lS#%HrEr%`o%fUDgi~73EAe+ipH{ zv*K`IS71CK8`|8+$Y905$?$HK9M2t|3ydBN0u7z!Lbs<%Fn7M+!PM_7nX`StgDW4R zJ4!Fi^ShB4s~y85!=TJ?PP%k^?>ycGOnX|Uu&tZ*L98R(>2Xw1g(>sY1D__yi@(jY u7P;x5`to|zF(aF>kNJEtYB|07jBE^2879k~7X69@6;__EelF{r5}E*XD8*6$ literal 0 HcmV?d00001 diff --git a/defaults/overlays/ratings.yml b/defaults/overlays/ratings.yml index fe489a96..087ea146 100644 --- a/defaults/overlays/ratings.yml +++ b/defaults/overlays/ratings.yml @@ -85,7 +85,7 @@ templates: default: true conditions: - image_level: Top - rating<>_image: [anidb, letterboxd, rt_popcorn, mdblist, tmdb, trakt, mal] + rating<>_image: [anidb, letterboxd, rt_popcorn, mdblist, tmdb, trakt, mal, average] value: false - image_level: Top overlay_level: episode @@ -129,6 +129,8 @@ templates: value: Trakt - rating<>_image: mal value: MAL + - rating<>_image: average + value: Average rating<>_horizontal_align: default: left conditions: diff --git a/docs/defaults/overlays/ratings.md b/docs/defaults/overlays/ratings.md index df0db296..760e2399 100644 --- a/docs/defaults/overlays/ratings.md +++ b/docs/defaults/overlays/ratings.md @@ -78,26 +78,26 @@ All [Shared Overlay Variables](../overlay_variables) can be appended by `rating1 | `back_radius` | `30` | | `back_height` | `105` | -| Variable | Description & Values | -|:-----------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `rating1` | **Description:** Choose the rating to display in rating1.
**Values:** `critic`, `audience`, or `user` | -| `rating1_image` | **Description:** Choose the rating image to display in rating1.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, or `mal` | -| `rating2` | **Description:** Choose the rating to display in rating2.
**Values:** `critic`, `audience`, or `user` | -| `rating2_image` | **Description:** Choose the rating image to display in rating2.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, or `mal` | -| `rating3` | **Description:** Choose the rating to display in rating3.
**Values:** `critic`, `audience`, or `user` | -| `rating3_image` | **Description:** Choose the rating image to display in rating3.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, or `mal` | -| `horizontal_position` | **Description:** Choose the horizontal position for the rating group.
**Default:** `left`
**Values:** `left`, `right`, or `center` | -| `vertical_position` | **Description:** Choose the vertical position for the rating group.
**Default:** `center`
**Values:** `top`, `bottom`, or `center` | -| `rating_alignment` | **Description:** Choose the display alignment for the rating group.
**Default:** `vertical`
**Values:** `horizontal`, or `vertical` | -| `font`1 | **Description:** Choose the font for the Overlay.
**Default:** `fonts/Inter-Bold.ttf`
**Values:** Path to font file | -| `font_style`1 | **Description:** Font style for Variable Fonts.
**Values:** Variable Font Style | -| `font_size`1 | **Description:** Choose the font size for the Overlay.
**Default:** `63`
**Values:** Any Number greater then 0 | -| `font_color`1 | **Description:** Choose the font color for the Overlay.
**Default:** `#FFFFFF`
**Values:** Color Hex Code in format `#RGB`, `#RGBA`, `#RRGGBB` or `#RRGGBBAA` | -| `stroke_width`1 | **Description:** Font Stroke Width for the Text Overlay.
**Values:** Any Number greater then 0 | -| `stroke_color`1 | **Description:** Font Stroke Color for the Text Overlay.
**Values:** Color Hex Code in format `#RGB`, `#RGBA`, `#RRGGBB` or `#RRGGBBAA` | -| `addon_offset`1 | **Description:** Text Addon Image Offset from the text.
**Default:** `15`
**Values:** Any Number greater then 0 | -| `addon_position`1 | **Description:** Text Addon Image Alignment in relation to the text.
**Default:** `left`
**Values:** `left`, `right`, `top`, `bottom` | -| `overlay_level` | **Description:** Choose the Overlay Level.
**Values:** `episode` | +| Variable | Description & Values | +|:-----------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `rating1` | **Description:** Choose the rating to display in rating1.
**Values:** `critic`, `audience`, or `user` | +| `rating1_image` | **Description:** Choose the rating image to display in rating1.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, `mal` or `average` | +| `rating2` | **Description:** Choose the rating to display in rating2.
**Values:** `critic`, `audience`, or `user` | +| `rating2_image` | **Description:** Choose the rating image to display in rating2.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, `mal` or `average` | +| `rating3` | **Description:** Choose the rating to display in rating3.
**Values:** `critic`, `audience`, or `user` | +| `rating3_image` | **Description:** Choose the rating image to display in rating3.
**Values:** `anidb`, `imdb`, `letterboxd`, `tmdb`, `metacritic`, `rt_popcorn`, `rt_tomato`, `trakt`, `mal` or `average` | +| `horizontal_position` | **Description:** Choose the horizontal position for the rating group.
**Default:** `left`
**Values:** `left`, `right`, or `center` | +| `vertical_position` | **Description:** Choose the vertical position for the rating group.
**Default:** `center`
**Values:** `top`, `bottom`, or `center` | +| `rating_alignment` | **Description:** Choose the display alignment for the rating group.
**Default:** `vertical`
**Values:** `horizontal`, or `vertical` | +| `font`1 | **Description:** Choose the font for the Overlay.
**Default:** `fonts/Inter-Bold.ttf`
**Values:** Path to font file | +| `font_style`1 | **Description:** Font style for Variable Fonts.
**Values:** Variable Font Style | +| `font_size`1 | **Description:** Choose the font size for the Overlay.
**Default:** `63`
**Values:** Any Number greater then 0 | +| `font_color`1 | **Description:** Choose the font color for the Overlay.
**Default:** `#FFFFFF`
**Values:** Color Hex Code in format `#RGB`, `#RGBA`, `#RRGGBB` or `#RRGGBBAA` | +| `stroke_width`1 | **Description:** Font Stroke Width for the Text Overlay.
**Values:** Any Number greater then 0 | +| `stroke_color`1 | **Description:** Font Stroke Color for the Text Overlay.
**Values:** Color Hex Code in format `#RGB`, `#RGBA`, `#RRGGBB` or `#RRGGBBAA` | +| `addon_offset`1 | **Description:** Text Addon Image Offset from the text.
**Default:** `15`
**Values:** Any Number greater then 0 | +| `addon_position`1 | **Description:** Text Addon Image Alignment in relation to the text.
**Default:** `left`
**Values:** `left`, `right`, `top`, `bottom` | +| `overlay_level` | **Description:** Choose the Overlay Level.
**Values:** `episode` | 1. These Variables can be appended by `rating1_`, `rating2_`, or `rating3_` to change that attribute on each rating individually.