dfc watermarks, saga fix
This commit is contained in:
@@ -475,16 +475,16 @@ init script:
|
||||
8: {[card_style.level_8_text.top, card_style.level_8_text.bottom-card_style.level_8_text.top]}
|
||||
]
|
||||
auto_snap := {
|
||||
snap_array := split_text(replace(styling.snap_chapter_to_box, match:",[^,]+$", replace:","), match:",")
|
||||
abil := to_number(pull_comma_array(styling.snap_chapter_to_box, cell:input-1, end:true)) ###textbox to snap to
|
||||
if abil == 0 then 600 else snap_calc(input, snap_array:snap_array, abil:abil)
|
||||
}
|
||||
snap_array := split_text(replace(line, match:",[^,]+$", replace:","), match:",")
|
||||
abil := to_number(pull_comma_array(line, cell:input-1, end:true)) ###textbox to snap to
|
||||
if abil == 0 then 600 else snap_calc(input, snap_array:snap_array, abil:abil, bump:bump)
|
||||
}@(bump:0)
|
||||
snap_calc := {
|
||||
out := 0
|
||||
abil_array := saga_lore_count(snap_array) ###chapters in each box
|
||||
ch_count := abil_array[abil-1] ###chapters in this box
|
||||
self_index := saga_ch_placement(snap_array)[input-1] ###input's index
|
||||
box_deets := coords_map[abil]() ###[top, height]
|
||||
box_deets := coords_map[abil+bump]() ###[top, height]
|
||||
remain := box_deets[1] - 30*ch_count ###remaining space after chapter hexes
|
||||
excess := remain - 10*(ch_count-1) ###remaining after 10px gaps
|
||||
if excess >= 0 then out := box_deets[0] + excess/2 + 40*(self_index-1) ###top + buffer*index + hex*index-1
|
||||
@@ -502,12 +502,12 @@ init script:
|
||||
out
|
||||
}
|
||||
chapter0 := { if styling.reminder_coordinate != "" then max(60,min(to_number(styling.reminder_coordinate),438)) else 155}
|
||||
chapter1 := { if length(comma_count(styling.snap_chapter_to_box)) > 0 then auto_snap(1) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:0, end:true, default:(if two_boxes() then 183 else 185))) }
|
||||
chapter2 := { if length(comma_count(styling.snap_chapter_to_box)) > 1 then auto_snap(2) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:1, end:true, default:(if two_boxes() then 223 else 279))) }
|
||||
chapter3 := { if length(comma_count(styling.snap_chapter_to_box)) > 2 then auto_snap(3) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:2, end:true, default:(if two_boxes() then 329 else 373))) }
|
||||
chapter4 := { if length(comma_count(styling.snap_chapter_to_box)) > 3 then auto_snap(4) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:3, end:true, default:600)) }
|
||||
chapter5 := { if length(comma_count(styling.snap_chapter_to_box)) > 4 then auto_snap(5) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:4, end:true, default:600)) }
|
||||
chapter6 := { if length(comma_count(styling.snap_chapter_to_box)) > 5 then auto_snap(6) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:5, end:true, default:600)) }
|
||||
chapter1 := { if length(comma_count(styling.snap_chapter_to_box)) > 0 then auto_snap(1, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:0, end:true, default:(if two_boxes() then 183 else 185))) }
|
||||
chapter2 := { if length(comma_count(styling.snap_chapter_to_box)) > 1 then auto_snap(2, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:1, end:true, default:(if two_boxes() then 223 else 279))) }
|
||||
chapter3 := { if length(comma_count(styling.snap_chapter_to_box)) > 2 then auto_snap(3, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:2, end:true, default:(if two_boxes() then 329 else 373))) }
|
||||
chapter4 := { if length(comma_count(styling.snap_chapter_to_box)) > 3 then auto_snap(4, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:3, end:true, default:600)) }
|
||||
chapter5 := { if length(comma_count(styling.snap_chapter_to_box)) > 4 then auto_snap(5, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:4, end:true, default:600)) }
|
||||
chapter6 := { if length(comma_count(styling.snap_chapter_to_box)) > 5 then auto_snap(6, line:styling.snap_chapter_to_box) else to_number(pull_comma_array(styling.move_loyalty_costs, cell:5, end:true, default:600)) }
|
||||
|
||||
chapter1b := { if to_number(pull_comma_array(styling.snap_chapter_to_back_box, cell:0, end:true)) > 0 then auto_snap(1, line:styling.snap_chapter_to_back_box, bump:4) else to_number(pull_comma_array(styling.move_back_loyalty_costs, cell:0, end:true, default:(if back_two_boxes() then 183 else 185))) }
|
||||
chapter2b := { if to_number(pull_comma_array(styling.snap_chapter_to_back_box, cell:1, end:true)) > 0 then auto_snap(2, line:styling.snap_chapter_to_back_box, bump:4) else to_number(pull_comma_array(styling.move_back_loyalty_costs, cell:1, end:true, default:(if back_two_boxes() then 223 else 279))) }
|
||||
@@ -4182,7 +4182,7 @@ extra card style:
|
||||
width: 30
|
||||
height: 34
|
||||
render style: image
|
||||
z index: 3
|
||||
z index: 5
|
||||
image: {alt_chapters("1")}
|
||||
visible: {back_saga()}
|
||||
chapter 2b:
|
||||
|
||||
Reference in New Issue
Block a user