mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
refactor: 优化主界面布局与通知系统
重构App.vue,首页独立无侧边栏,其他页面采用统一侧边栏布局。新增右下角固定通知区,集成返回顶部、队列通知、外交通知和敌方警报。移除新手引导组件,替换为弱引导提示系统。支持星球重命名弹窗。优化NPC成长与行为定时器逻辑,提升性能和可维护性。删除issue模板及相关文档描述。
This commit is contained in:
@@ -569,11 +569,17 @@ export interface Player {
|
||||
isGMEnabled?: boolean // GM模式开关(默认false,通过秘籍激活)
|
||||
lastVersionCheckTime?: number // 最后一次自动检查版本的时间戳(被动检测)
|
||||
lastManualUpdateCheck?: number // 最后一次手动检查更新的时间戳(主动检测)
|
||||
// 外交系统字段
|
||||
diplomaticRelations?: Record<string, DiplomaticRelation> // 玩家对NPC的关系(key: npcId)
|
||||
// 外交系统字段(外交关系存储在 NPC.relations 中)
|
||||
diplomaticReports?: DiplomaticReport[] // 外交变化报告
|
||||
// 新手引导字段
|
||||
tutorialProgress?: TutorialProgress // 新手引导进度
|
||||
// 隐私协议同意状态
|
||||
privacyAgreed?: boolean // 是否已同意隐私协议
|
||||
// 弱引导系统
|
||||
dismissedHints?: string[] // 已关闭的提示ID列表
|
||||
hintsEnabled?: boolean // 是否启用弱引导提示(默认true)
|
||||
// 显示设置
|
||||
backgroundEnabled?: boolean // 是否启用背景动画(默认false)
|
||||
}
|
||||
|
||||
export interface NotificationSettings {
|
||||
@@ -609,6 +615,7 @@ export interface Universe {
|
||||
export interface NPC {
|
||||
id: string
|
||||
name: string
|
||||
note?: string // 玩家添加的备注
|
||||
planets: Planet[]
|
||||
technologies: Record<TechnologyType, number>
|
||||
difficulty: 'easy' | 'medium' | 'hard'
|
||||
|
||||
Reference in New Issue
Block a user