Files
fruit-pop-googleplay/assets/orchard/scripts/DialogReferenceLayout.ts
T
2026-11-20 20:32:40 +08:00

68 lines
3.7 KiB
TypeScript

/** 完整切图中心坐标,原点在1080×1920参考图左上角。 / Full-canvas sprite centres in the portrait reference, without alpha trimming. */
export type DialogBox = readonly [key: string, x: number, y: number, width: number, height: number];
export const REFERENCE_IMAGES: Record<string, DialogBox> = {
PreferencesShell: ['preferences-shell', 538, 856, 884, 1050],
PreferencesTitle: ['preferences-heading', 539.5, 465.5, 505, 85],
PreferencesFlourish: ['preferences-flourish', 540.5, 529.5, 471, 43],
PreferencesMusicRow: ['melody-row', 540, 650.5, 788, 155],
PreferencesSoundRow: ['effects-row', 540, 816, 788, 155],
PreferencesVibrationRow: ['haptics-row', 540, 981.5, 788, 155],
PreferencesMusicToggle: ['toggle-lit', 791, 650.5, 210, 91],
PreferencesSoundToggle: ['toggle-lit', 791, 816, 210, 91],
PreferencesVibrationToggle: ['toggle-lit', 791, 981.5, 210, 91],
PreferencesGuide: ['instructions-pill', 540, 1159.5, 630, 133],
PreferencesClose: ['dismiss-orb', 890.5, 415.5, 123, 121],
RepeatShell: ['repeat-shell', 536.5, 1009, 905, 980],
RepeatGarnish: ['repeat-garnish', 544, 521.5, 228, 213],
RepeatTitle: ['repeat-title', 537, 663.5, 684, 157],
RepeatStart: ['repeat-confirm', 535, 1303.5, 808, 203],
RepeatClose: ['dismiss-orb', 902, 595, 114, 112],
EmptyWalletShell: ['empty-wallet-shell', 534.5, 957.5, 879, 1135],
EmptyWalletTitle: ['empty-wallet-heading', 536.5, 531.5, 747, 329],
EmptyWalletGarnish: ['empty-wallet-garnish', 531.5, 845.5, 707, 391],
EmptyWalletNote: ['empty-wallet-note', 539.5, 1095.5, 539, 111],
EmptyWalletGift: ['empty-wallet-gift', 539, 1262, 780, 175],
EmptyWalletLater: ['empty-wallet-later', 537, 1409, 354, 86],
EmptyWalletClose: ['shortfall-dismiss', 897, 425, 116, 116],
BonusAwardScatter1: ['bonus-award-emblem', 265, 638, 270, 266],
BonusAwardScatter2: ['bonus-award-emblem', 538.5, 618.5, 289, 285],
BonusAwardScatter3: ['bonus-award-emblem', 815, 638, 270, 266],
BonusAwardTitle: ['bonus-award-title', 542, 864, 952, 282],
BonusAwardCaption: ['bonus-award-caption', 535, 1323, 756, 122],
BonusAwardStart: ['bonus-begin', 541, 1503.5, 646, 219],
BonusSummaryShell: ['bonus-summary-shell', 538, 994, 996, 960],
BonusSummaryGarnish: ['bonus-summary-garnish', 540.5, 506.5, 499, 259],
BonusSummaryTitle: ['bonus-summary-title', 539, 754, 762, 248],
BonusSummaryCaption: ['bonus-summary-caption', 543.5, 934, 831, 90],
BonusSummaryAmountPlate: ['bonus-summary-amount', 539, 1075.5, 870, 229],
BonusSummaryContinue: ['bonus-dismiss', 540, 1291, 684, 206],
};
/** 两种领取状态单独还原,不能仅替换标题而保留错误底板。 / Each gift state owns its complete art and layout. */
export const GIFT_REFERENCE: Record<'available' | 'claimed', Record<string, DialogBox>> = {
available: {
GiftShell: ['gift-shell', 537, 938.5, 960, 1247],
GiftTitle: ['gift-heading', 545, 454, 584, 104],
GiftGarnish: ['gift-garnish', 530.5, 743.5, 407, 389],
GiftAmountPlate: ['gift-amount', 538, 1012.5, 766, 163],
GiftDailyLabel: ['gift-daily', 546.5, 1149.5, 731, 65],
GiftClaim: ['gift-collect', 537, 1306, 648, 198],
GiftClose: ['gift-dismiss', 917, 399, 116, 116],
},
claimed: {
GiftShell: ['claimed-shell', 536, 958, 934, 1212],
GiftTitle: ['claimed-heading', 537.5, 517, 763, 372],
GiftGarnish: ['claimed-garnish', 540, 844.5, 348, 247],
GiftAmountPlate: ['claimed-amount', 535, 1035, 750, 168],
GiftDailyLabel: ['claimed-caption', 538.5, 1180.5, 749, 61],
GiftCollected: ['gift-collected', 533.5, 1311.5, 567, 143],
GiftClose: ['claimed-dismiss', 892, 474, 106, 106],
},
};
export const REPEAT_OPTIONS = [
{ count: 10, key: 'ten', x: 356, y: 917 },
{ count: 25, key: 'quarter', x: 727, y: 917 },
{ count: 50, key: 'half', x: 355, y: 1092 },
{ count: 100, key: 'century', x: 730, y: 1092 },
] as const;