mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
party panel: party panel is created only, when game isn't singlePlayer game
This commit is contained in:
parent
e982430c55
commit
c9859f25d3
@ -174,8 +174,6 @@ func NewGameControls(
|
|||||||
|
|
||||||
heroStatsPanel := NewHeroStatsPanel(asset, ui, hero.Name(), hero.Class, l, hero.Stats)
|
heroStatsPanel := NewHeroStatsPanel(asset, ui, hero.Name(), hero.Class, l, hero.Stats)
|
||||||
|
|
||||||
PartyPanel := NewPartyPanel(asset, ui, hero.Name(), l, hero, hero.Stats, players)
|
|
||||||
|
|
||||||
questLog := NewQuestLog(asset, ui, l, audioProvider, hero.Act)
|
questLog := NewQuestLog(asset, ui, l, audioProvider, hero.Act)
|
||||||
|
|
||||||
inventory, err := NewInventory(asset, ui, l, hero.Gold, inventoryRecord)
|
inventory, err := NewInventory(asset, ui, l, hero.Gold, inventoryRecord)
|
||||||
@ -208,7 +206,6 @@ func NewGameControls(
|
|||||||
inventory: inventory,
|
inventory: inventory,
|
||||||
skilltree: skilltree,
|
skilltree: skilltree,
|
||||||
heroStatsPanel: heroStatsPanel,
|
heroStatsPanel: heroStatsPanel,
|
||||||
PartyPanel: PartyPanel,
|
|
||||||
questLog: questLog,
|
questLog: questLog,
|
||||||
HelpOverlay: helpOverlay,
|
HelpOverlay: helpOverlay,
|
||||||
keyMap: keyMap,
|
keyMap: keyMap,
|
||||||
@ -236,6 +233,11 @@ func NewGameControls(
|
|||||||
isSinglePlayer: isSinglePlayer,
|
isSinglePlayer: isSinglePlayer,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !isSinglePlayer {
|
||||||
|
PartyPanel := NewPartyPanel(asset, ui, hero.Name(), l, hero, hero.Stats, players)
|
||||||
|
gc.PartyPanel = PartyPanel
|
||||||
|
}
|
||||||
|
|
||||||
hud := NewHUD(asset, ui, hero, miniPanel, actionableRegions, mapEngine, l, gc, mapRenderer)
|
hud := NewHUD(asset, ui, hero, miniPanel, actionableRegions, mapEngine, l, gc, mapRenderer)
|
||||||
gc.hud = hud
|
gc.hud = hud
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user