mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat: 重构战报弹窗与模拟器视图,优化UI与逻辑
重构BattleReportDialog和BattleSimulatorView相关静态资源,替换旧版JS/CSS文件,提升界面一致性和交互体验。新增和优化空状态、滚动区域等通用UI组件,移除部分冗余composable,完善多语言内容。引入导弹逻辑,补充版本检测工具,提升整体代码结构和可维护性。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import type { Planet, Player, BuildQueueItem, FleetMission, BattleResult, SpyReport, Officer, SpiedNotification, NPCActivityNotification, IncomingFleetAlert } from '@/types/game'
|
||||
import type { Planet, Player, BuildQueueItem, FleetMission, BattleResult, SpyReport, Officer, SpiedNotification, NPCActivityNotification, IncomingFleetAlert, MissileAttack } from '@/types/game'
|
||||
import { TechnologyType, OfficerType } from '@/types/game'
|
||||
import type { Locale } from '@/locales'
|
||||
import pkg from '../../package.json'
|
||||
@@ -9,6 +9,7 @@ export const useGameStore = defineStore('game', {
|
||||
state: () => ({
|
||||
gameTime: Date.now(),
|
||||
isPaused: false,
|
||||
gameSpeed: 1,
|
||||
player: {
|
||||
id: 'player1',
|
||||
name: '',
|
||||
@@ -17,6 +18,7 @@ export const useGameStore = defineStore('game', {
|
||||
officers: {} as Record<OfficerType, Officer>,
|
||||
researchQueue: [] as BuildQueueItem[],
|
||||
fleetMissions: [] as FleetMission[],
|
||||
missileAttacks: [] as MissileAttack[],
|
||||
battleReports: [] as BattleResult[],
|
||||
spyReports: [] as SpyReport[],
|
||||
spiedNotifications: [] as SpiedNotification[],
|
||||
@@ -25,7 +27,9 @@ export const useGameStore = defineStore('game', {
|
||||
incomingFleetAlerts: [] as IncomingFleetAlert[],
|
||||
giftNotifications: [],
|
||||
giftRejectedNotifications: [],
|
||||
points: 0
|
||||
points: 0,
|
||||
isGMEnabled: false, // 明确设置 GM 模式默认为 false
|
||||
lastVersionCheckTime: 0 // 最后一次检查版本的时间戳,默认为0
|
||||
} as Player,
|
||||
currentPlanetId: '',
|
||||
isDark: '',
|
||||
|
||||
Reference in New Issue
Block a user