feat: M1 companion 資料層與 band 角色行
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -232,3 +232,9 @@ export function parseDf(out: string): number | undefined {
|
||||
const m = row && /(\d+)%/.exec(row)
|
||||
return m ? Number(m[1]) : undefined
|
||||
}
|
||||
|
||||
// band 的所有行:第一行恆為 HUD;有角色時才多第二行角色行
|
||||
export function bandLines(d: HudData, columns: number, compact: boolean, companion: Seg[] | null): Seg[][] {
|
||||
const first = fit(d, columns, compact)
|
||||
return companion ? [first, companion] : [first]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user