chore: resolve merge types in world-panels, hud-manager and client-world
This commit is contained in:
parent
e31e1b561a
commit
773e3be117
|
|
@ -563,8 +563,8 @@ export class HudManager {
|
|||
/** Server-authoritative death / mercenary / party / trade state synced by `HudModel`. */
|
||||
isDead = false
|
||||
merc: any = null
|
||||
hireList: any[] = []
|
||||
mercHireList: any[] = []
|
||||
hireList: readonly any[] = []
|
||||
mercHireList: readonly any[] = []
|
||||
partyMembers: any[] = []
|
||||
summonPortraits: any[] = []
|
||||
trade: any = null
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ import {
|
|||
type VendorNpcId,
|
||||
getTownNpcDescriptorByName,
|
||||
getTownNpcDescriptorByVendorId,
|
||||
getTownNpcDescriptorByHcIdx,
|
||||
getLocalizedNpcName,
|
||||
getLocalizedNpcGreetings,
|
||||
} from '../../common/units/npc-table.ts'
|
||||
|
|
@ -863,8 +864,8 @@ export class WorldPanelsHud {
|
|||
private _activePanel: WorldPanelType = 'none'
|
||||
isDead = false
|
||||
merc: any = null
|
||||
hireList: any[] = []
|
||||
mercHireList: any[] = []
|
||||
hireList: readonly any[] = []
|
||||
mercHireList: readonly any[] = []
|
||||
hireScrollOffset = 0
|
||||
hireSelectedIndex = -1
|
||||
hireHoveredIndex: number | null = null
|
||||
|
|
@ -3686,7 +3687,7 @@ export class WorldPanelsHud {
|
|||
// Warning text: "This Mercenary will replace your current one." (VerifyTransaction9)
|
||||
const warnText = lookupTbl('VerifyTransaction9', this.lang) ?? (this.lang === 'ENG' ? 'This Mercenary will replace your current one.' : '這個傭兵會換掉前一位。')
|
||||
if (font) {
|
||||
this.drawWrappedText(ctx, font, warnText, cx + 24, cy + 32, confirmW - 48, 16, 4, 'font16', 'gold', 'center')
|
||||
this.drawWrappedText(ctx, font, warnText, cx + 24, cy + 32, confirmW - 48, 16, 4, 'fontformal12')
|
||||
} else {
|
||||
fillTextSafe(warnText, cx + 24, cy + 32, '#e8c26b')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -932,7 +932,7 @@ export class ClientWorld {
|
|||
this._containers.clearShop()
|
||||
this._npcInteraction = { ...cur, npcId: cmd.npcId, window: 'gamble', activeWindow: 'gamble' }
|
||||
} else if (cmd.action === 3) {
|
||||
this._npcInteraction = { ...cur, npcId: cmd.npcId, window: 'hire', activeWindow: 'hire' }
|
||||
this._npcInteraction = { ...cur, npcId: cmd.npcId, window: 'none', activeWindow: 'hire' }
|
||||
}
|
||||
break
|
||||
case 'NpcCancel':
|
||||
|
|
|
|||
Loading…
Reference in New Issue