Skip to content

Commit

Permalink
Card numbering style option
Browse files Browse the repository at this point in the history
  • Loading branch information
raohmaru committed Apr 16, 2023
1 parent f114328 commit bfb9f73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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~~
9 changes: 5 additions & 4 deletions generic-normal.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bfb9f73

Please sign in to comment.