Commit 7b4d722f authored by AntiMetaman's avatar AntiMetaman Committed by GitHub

Merge pull request #16 from shadowfox87/master

fix name color algorithm
parents 31d64214 09efd2c7
......@@ -215,40 +215,44 @@ card style:
italic name: { if is_tw() then "Yu-Gi-Oh! DFG Leisho 5" else "Yu-Gi-Oh! DFG Leisho 4" }
size: { if is_tw() or is_cn() or is_jp() then 24 else if is_ko() then 27 else 32 }
color:
script: if use_name_color() then styling.name_color
else if card.rarity=="rare" then rgb(255,255,255)
else if card.rarity=="star rare" and is_blmonster() then rgb(255,255,255)
else if card.rarity=="star rare" then rgb(35,40,49)
else if card.rarity=="mosaic rare" and is_blmonster() then rgb(255,255,255)
else if card.rarity=="mosaic rare" then rgb(10,10,10)
else if card.rarity=="promo" then rgb(60,0,0)
else if card.rarity=="secret rare" then rgb(102,255,255)
else if card.rarity=="ghost rare (No foil)" then rgb(133,168,169)
else if card.rarity=="ultra rare" then rgb(255,240,0)
else if card.rarity=="ultimate rare" then rgb(88,76,12)
else if card.rarity=="ultimate rare (No foil)" then rgb(69,60,0)
else if card.rarity=="parallel rare" then rgb(88,76,12)
else if card.rarity=="gold rare" then rgb(88,76,12)
else if is_blmonster() then rgb(255,255,255)
else if is_nmonster() then rgb(255,255,255)
else rgb(0,0,0)
script:
if hide_foil() and is_blmonster() then rgb(255,255,255)
else if hide_foil() and is_nmonster() then rgb(255,255,255)
else if hide_foil() then rgb(0,0,0)
else if use_name_color() then styling.name_color
else if not hide_foil() and card.rarity=="rare" then rgb(255,255,255)
else if not hide_foil() and card.rarity=="star rare" and is_blmonster() then rgb(255,255,255)
else if not hide_foil() and card.rarity=="star rare" then rgb(35,40,49)
else if not hide_foil() and card.rarity=="mosaic rare" and is_blmonster() then rgb(255,255,255)
else if not hide_foil() and card.rarity=="mosaic rare" then rgb(10,10,10)
else if not hide_foil() and card.rarity=="promo" then rgb(60,0,0)
else if not hide_foil() and card.rarity=="secret rare" then rgb(102,255,255)
else if not hide_foil() and card.rarity=="ghost rare (No foil)" then rgb(133,168,169)
else if not hide_foil() and card.rarity=="ultra rare" then rgb(255,240,0)
else if not hide_foil() and card.rarity=="ultimate rare" then rgb(88,76,12)
else if not hide_foil() and card.rarity=="ultimate rare (No foil)" then rgb(69,60,0)
else if not hide_foil() and card.rarity=="parallel rare" then rgb(88,76,12)
else if not hide_foil() and card.rarity=="gold rare" then rgb(88,76,12)
else if is_blmonster() or is_link() then rgb(255,255,255)
else if is_nmonster() then rgb(255,255,255)
else rgb(0,0,0)
shadow color:
script:
if no_shadow() and is_blmonster() then rgba(0,0,0,0) #没阴影
else if set_shadow() then styling.shadow_color #自定义阴影颜色
else if card.rarity=="star rare" and is_blmonster() then rgb(255,255,255)
else if card.rarity=="star rare" then rgb(255,255,255)
else if card.rarity=="mosaic rare" and is_blmonster() then rgb(255,255,255)
else if card.rarity=="mosaic rare" then rgb(255,255,255)
else if card.rarity=="promo" then rgb(255,200,210)
###else if card.rarity=="secret rare" then rgb(182,162,255)
else if card.rarity=="ghost rare (No foil)" then rgb(234,255,255)
###else if card.rarity=="ultra rare" then rgb(255,215,0)
else if card.rarity=="ultimate rare" then rgb(255,215,0)
else if card.rarity=="ultimate rare (No foil)" then rgb(255,243,110)
else if card.rarity=="parallel rare" then rgb(255,215,0)
else if card.rarity=="gold rare" then rgb(255,215,0)
else if no_shadow() and is_spell_card() or is_trap_card() then rgb(0,0,0)
else if not hide_foil() and card.rarity=="star rare" and is_blmonster() then rgb(255,255,255)
else if not hide_foil() and card.rarity=="star rare" then rgb(255,255,255)
else if not hide_foil() and card.rarity=="mosaic rare" and is_blmonster() then rgb(255,255,255)
else if not hide_foil() and card.rarity=="mosaic rare" then rgb(255,255,255)
else if not hide_foil() and card.rarity=="promo" then rgb(255,200,210)
else if not hide_foil() and card.rarity=="secret rare" then rgb(182,162,255)
else if not hide_foil() and card.rarity=="ghost rare (No foil)" then rgb(234,255,255)
else if not hide_foil() and card.rarity=="ultra rare" then rgb(255,215,0)
else if not hide_foil() and card.rarity=="ultimate rare" then rgb(255,215,0)
else if not hide_foil() and card.rarity=="ultimate rare (No foil)" then rgb(255,243,110)
else if not hide_foil() and card.rarity=="parallel rare" then rgb(255,215,0)
else if not hide_foil() and card.rarity=="gold rare" then rgb(255,215,0)
else if no_shadow() and is_spell_card() or is_trap_card() then rgba(0,0,0,0)
else rgba(0,0,0,0)
shadow displacement x: 0.3
shadow displacement y: 1.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment