style(map): 调整信息框Y轴偏移并简化布局代码

1. 将EquipBoxComp和SkillBoxComp的IBOX_OFFSET_Y从60改为80
2. 移除IBoxComp中冗余的布局常量和自适应布局逻辑
This commit is contained in:
panFD
2026-08-03 09:10:37 +08:00
parent 115a50d0be
commit ae540e1232
3 changed files with 5 additions and 55 deletions

View File

@@ -164,8 +164,8 @@ export class SkillBoxComp extends CCComp {
/** 长按时长(秒) */
private static readonly LONG_PRESS_TIME: number = 0.5;
/** IBox 顶部相对图标的 Y 轴偏移(像素,弹窗顶部锚定在该点并向下生长 */
private static readonly IBOX_OFFSET_Y: number = 60;
/** IBox 相对图标的 Y 轴偏移(像素) */
private static readonly IBOX_OFFSET_Y: number = 80;
/** 信息框是否已弹出(区分长按完成与短按取消) */
private info_shown: boolean = false;