目录— 个文件
⌕
目录加载中…
…/bridge/ui/UIPanelPath.ts
1
2/**
3 * UI界面的路径
4 * 完整
5 */
6export class UIPanelPath {
7 //***通用的相关界面********************************************************************************************************//
8 public static UICommonTipPanel = "UICommonTipPanel"; //通用提示
9 public static UICommonLoadingPanel = "UICommonLoadingPanel"; //通用加载(进度条+百分比)
10 public static UICommonRewardPanel = "UICommonRewardPanel"; //通用奖励
11 public static UICommonReceiveRewardPanel = "UICommonReceiveRewardPanel"; //通用领取奖励弹窗(单条奖励)
12 public static UICommonGuidePanel = "UICommonGuidePanel"; //通用引导界面
13 public static UIShareDetailPanel = "UIShareDetailPanel"; //分享详情界面
14 public static UIShareRewardPanel = "UIShareRewardPanel"; //每日分享奖励界面
15 public static UIAddDeskPanel = "UIAddDeskPanel"; //添加桌面弹窗
16 public static UITestPanel = "UITestPanel"; //测试界面
17
18
19 //***大厅的相关界面********************************************************************************************************//
20 public static UISiderPanel = "UISiderPanel"; //侧边栏界面
21 public static UICollectPanel = "UICollectPanel"; //收集界面
22 public static UISettingPanel = "UISettingPanel"; //设置界面
23 public static UIFreeCoinPanel = "UIFreeCoinPanel"; //免费金币界面
24 public static UIPowerGetPanel = "UIPowerGetPanel"; //免费体力界面
25 public static UISubscribePanel = "UISubscribePanel"; //推荐流订阅界面
26 public static UICollectGuidePanel = "UICollectWXTipsPanel"; //收藏指引界面
27 public static UIWXSubscribePanel = "UIWXSubscribePanel"; //微信订阅界面
28 // public static UIIsSubscribePanel = "UIIsSubscribePanel"; //是否订阅界面
29 // public static UIIsAddDeskPanel = "UIIsAddDeskPanel"; //是否添加桌面界面
30
31 public static UISevenSignPanel = "UISevenSignPanel"; //七日签到界面
32 public static UIInvitationPanel = "UIInvitationPanel"; //邀请界面
33 public static UIRankPanel = "UIRankPanel"; // 排行榜(世界 + 好友;好友榜当前为微信托管)
34
35
36 //***找物体游戏相关界面********************************************************************************************************//
37 public static UIGameFindWinPanel = "UIGameFindWinPanel"; //找物体游戏胜利
38 public static UIGameFindFailPanel = "UIGameFindFailPanel"; //找物体游戏失败
39 public static UIGameFindHintOverlayPanel = "UIGameFindHintOverlayPanel"; //找物体游戏提示界面
40
41 public static UIGameFindWinPanel_Blue = "UIGameFindWinPanel_Blue"; //找物体游戏胜利 -power
42 public static UIGameFindFailPanel_Power = "UIGameFindFailPanel_Power"; //找物体游戏失败 -power
43
44
45 // 加载优化 -lobbyFindScene
46 public static LobbyFindScene = "LobbyFindScene"; //大厅找物体游戏场景
47
48 //***选关界面********************************************************************************************************//
49 /** 独立热点选关面板。 */
50 public static UIHotspotPanel = "UIHotspotPanel";
51 public static UISelectLevelPanel = "UISelectLevelPanel"; //选关界面
52
53 //***图鉴界面********************************************************************************************************//
54 public static UILevelArchivePanel = "UILevelArchivePanel"; //图鉴主面板
55 public static UILevelArchivePreviewPanel = "UILevelArchivePreviewPanel"; //图鉴大图预览面板
56 public static UILevelArchiveReplayUnlockPanel = "UILevelArchiveReplayUnlockPanel"; //图鉴重复游玩解锁提示
57
58 //***里程碑界面********************************************************************************************************//
59 public static UIMilestonePanel = "UIMilestonePanel"; //里程碑主面板
60 public static UIMilestoneShowPanel = "UIMilestoneShowPanel"; //里程碑成就弹窗
61
62 //***成就界面********************************************************************************************************//
63 public static UIAchievementPanel = "UIAchievementPanel"; //成就面板
64 public static UIAchievementCompletePanel = "UIAchievementCompletePanel"; //成就完成弹窗
65 public static UIDailyChallengeCalendarPanel = "UIDailyChallengeCalendarPanel"; //每日挑战日历
66}
讲解67 行
面板路径人工通读
UIPanelPath.ts
声明项目所有 UI 面板的预制体名称常量,按通用、大厅、找物游戏、选关、图鉴、里程碑、成就分区。UI 模块按这些名字查找并打开面板,UIPanelReportConfig 也用它们作为埋点映射的键。
按分区浏览,重点留意值与常量名不一致的几个条目。
特殊处理与易错点
- 易错点UICollectGuidePanel 的值是 UICollectWXTipsPanel,与常量名不一致,改动需同时同步预制体名。L26
- 特殊处理LobbyFindScene 混在面板列表里,实际是大厅场景名而不是面板预制体。L46
- 设计常量值必须与 resources 下的预制体名完全一致,否则打开面板时找不到资源。L4
6注释UIPanelPath:UI界面的路径 完整
8注释通用的相关界面
20注释大厅的相关界面
31注释public static UIIsSubscribePanel = "UIIsSubscribePanel"; //是否订阅界面 public static UIIsAddDeskPanel = "UIIsAddDeskPanel"; //是否添加桌面界面
37注释找物体游戏相关界面
46注释加载优化 -lobbyFindScene
50注释选关界面
54注释图鉴界面
59注释里程碑界面
63注释成就界面