Update script
fix nameline scaling by the content_width of casting_cost_1 for all faces
This commit is contained in:
@@ -4262,7 +4262,8 @@ casting_cost_width :=
|
||||
scale := min(map.width, map.height)/375
|
||||
minimum := 30 * scale
|
||||
buffer := 5 * scale
|
||||
max(minimum, card_style.casting_cost.content_width) + buffer + offset
|
||||
cost_field := if face == 1 then card_style.casting_cost else card_style["casting_cost_{face}"]
|
||||
max(minimum, cost_field.content_width) + buffer + offset
|
||||
}
|
||||
casting_cost_height :=
|
||||
{
|
||||
@@ -4331,7 +4332,8 @@ name_top :=
|
||||
name_right :=
|
||||
{
|
||||
map := face_coordinates_map(face)
|
||||
casting_cost_width_1 := if card_style.casting_cost.content_width == 0 then 0 else card_style.casting_cost.content_width + 3 * min(map.width, map.height)/375
|
||||
cost_field := if face == 1 then card_style.casting_cost else card_style["casting_cost_{face}"]
|
||||
casting_cost_width_1 := if cost_field.content_width == 0 then 0 else cost_field.content_width + 3 * min(map.width, map.height)/375
|
||||
if map.width > map.height then
|
||||
map.left + 482 * map.width/523 - casting_cost_width_1 + offset
|
||||
else map.left + 341 * map.width/375 - casting_cost_width_1 + offset
|
||||
|
||||
Reference in New Issue
Block a user