Indicator update (#76)

* update indicator script and remove color indicator dot styling options

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2024-09-24 13:44:27 -05:00
committed by GitHub
parent 28dc1c3383
commit 8f8d9c637a
60 changed files with 273 additions and 437 deletions

View File

@@ -208,16 +208,6 @@ init script:
not (styling.symbol == "none")
}
has_identity :=
{
styling.color_indicator_dot and length(color_to_base_prefix()) > 0
}
has_adventure_color_indicator :=
{
styling.adventure_color_indicator_dot and length(color_to_base_prefix_2()) > 0
}
has_custom_rarity :=
{
contains(set.mainframe_rarity_name, match: ".png")
@@ -1111,24 +1101,6 @@ styling field:
# localized description:
# fr: Utiliser un champ de texte sur la gauche de la carte?
initial: no
styling field:
type: boolean
name: color indicator dot
description: Use the color indicator dot?
# localized caption:
# fr: Indicateur de couleur
# localized description:
# fr: Utiliser un indicateur de couleur, par exemple sur les cartes sans coût de lancement?
initial: no
styling field:
type: boolean
name: adventure color indicator dot
description: Use the color indicator dot for the adventure?
# localized caption:
# fr: Indicateur de couleur sur l'aventure
# localized description:
# fr: Utiliser un indicateur de couleur sur l'aventure, par exemple si elle n'a pas de coût de lancement?
initial: no
styling field:
type: text
name: alt rarity color
@@ -1520,9 +1492,9 @@ card style:
color: { type_font_color() }
separator color: red
type 2:
left: { if has_adventure_color_indicator() then 100 else 70 }
left: { if has_identity_2() then 100 else 70 }
top: { 713 + type2_font_vertical() }
right: { 354 - if styling.center_adventure_type and has_adventure_color_indicator() then 30 else 0 }
right: { 354 - if styling.center_adventure_type and has_identity_2() then 30 else 0 }
height: 29
alignment: { if styling.center_adventure_type then "center middle shrink-overflow" else "left middle shrink-overflow" }
z index: 42
@@ -2108,7 +2080,7 @@ extra card style:
width: 30
height: 30
z index: 40
visible: { has_adventure_color_indicator() }
visible: { has_identity_2() }
render style: image
image: { adventure_color_indicator_dot_image() }
illustrator brush:
@@ -2282,7 +2254,7 @@ extra card style:
z index: 41
mask: { border("identity") }
adventure color indicator dot border:
visible: { set.border_color != rgb(0,0,0) and has_adventure_color_indicator() }
visible: { set.border_color != rgb(0,0,0) and has_identity_2() }
left: 68
top: 712
width: 30