From c929d5631e73cc48025d2a007474a98c87b292cb Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 19 Jan 2023 15:25:47 -0500 Subject: [PATCH] [13] add rating adjustments to ratings overlay --- VERSION | 2 +- defaults/overlays/ratings.yml | 11 +++++--- docs/defaults/overlays/ratings.md | 43 +++++++++++++++++-------------- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/VERSION b/VERSION index 9bfcc1fa..822c5146 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop12 +1.18.3-develop13 diff --git a/defaults/overlays/ratings.yml b/defaults/overlays/ratings.yml index eb5acc36..0f3e8f4a 100644 --- a/defaults/overlays/ratings.yml +++ b/defaults/overlays/ratings.yml @@ -38,6 +38,9 @@ templates: addon_offset: 15 rating<>_addon_offset: <> rating<>_addon_position: <> + minimum_rating: 0.0 + fresh_rating: 6.0 + maximum_rating: 10.0 side: left horizontal_position: left vertical_position: center @@ -399,15 +402,15 @@ templates: - rating_alignment: horizontal value: left gte: - default: 0.0 + default: <> conditions: - image_level: Fresh - value: 6.0 + value: <> lte: - default: 6.0 + default: <> conditions: - image_level: Fresh - value: 10.0 + value: <> gsuffix: conditions: - rating<>: [critic, audience, user] diff --git a/docs/defaults/overlays/ratings.md b/docs/defaults/overlays/ratings.md index 3e86372d..80193fc1 100644 --- a/docs/defaults/overlays/ratings.md +++ b/docs/defaults/overlays/ratings.md @@ -78,26 +78,29 @@ 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`, `mal`, `mdb`, or `star` | -| `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`, `mdb`, or `star` | -| `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`, `mdb`, or `star` | -| `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`, `mdb`, or `star` | +| `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`, `mdb`, or `star` | +| `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`, `mdb`, or `star` | +| `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` | +| `minimum_rating` | **Description:** Minimum Rating to display
**Default:** 0.0
**Values:** Any Number | +| `fresh_rating` | **Description:** Determines when ratings are considered Fresh
**Default:** 6.0
**Values:** Any Number | +| `maximum_rating` | **Description:** Maximum Rating to display
**Default:** 10.0
**Values:** Any Number | +| `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.