From bfb9f73c28321f375dd6cfa6b299614b372f9f93 Mon Sep 17 00:00:00 2001 From: Raohmaru Date: Sun, 16 Apr 2023 20:56:28 +0200 Subject: [PATCH] Card numbering style option --- CHANGELOG.md | 1 + TODO.md | 2 +- generic-normal.mse-style/style | 9 +++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d59eba..8519b1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ + image + Update color of cards. + Add card color for the type "Rule". ++ Style option for the font size of the card number. ### v1.4.0 + Individual text color for each part of the card. diff --git a/TODO.md b/TODO.md index 96403fd..052e5ac 100644 --- a/TODO.md +++ b/TODO.md @@ -5,9 +5,9 @@ - [X] Rarity - [X] Card border size - [x] Add more colors to the bg color list, or use a list of tokens +- [x] Card number font size - [ ] Allow gradients in bg - [ ] Bg images .mse-include - [ ] Custom Rules / Flavour separator -- [ ] Card number font size - [ ] ~~Rounded boxes~~ - [ ] ~~Boxes border size~~ diff --git a/generic-normal.mse-style/style b/generic-normal.mse-style/style index af60d20..043e395 100644 --- a/generic-normal.mse-style/style +++ b/generic-normal.mse-style/style @@ -518,6 +518,7 @@ card style: width: {645 - img_bd_width() * 2} height: {image_height() - img_bd_width() * 2} z index: 1 + visible: {image_height() > 0} ############################# Text box type: @@ -575,22 +576,22 @@ card style: visible: {set.Extended_Card_Info} number: - top: {if card.gamecode == "" then 980 else 1000} + top: {if card.gamecode == "" then 980 else 996} left: {if styling.layout == L_NAME_IMG_TYPE then 53 else 99} width: 120 height: 20 z index: 2 - alignment: top left + alignment: left middle font: name: {styling.copyright_font} - size: 12 + size: {copyright_fsz()} color: {styling.copyright_color} visible: {set.Extended_Card_Info} ############################# Copyright stuff gamecode: left: {if styling.layout == L_NAME_IMG_TYPE then 53 else 99} - top: 980 + top: {if card.number != "" then 976 else 980} width: {if styling.layout == L_NAME_IMG_TYPE then 318 else 256} height: 22 alignment: left middle shrink-overflow