1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-09 01:10:43 +00:00

Merge pull request #950 from gucio321/hotfix

Hotfix: necromancer animation in select hero class menu
This commit is contained in:
Tim Sarbin 2020-11-25 19:32:09 -05:00 committed by GitHub
commit 31934b62c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -519,13 +519,6 @@ func (v *SelectHeroClass) Render(screen d2interface.Surface) {
v.bgImage.RenderSegmented(screen, 4, 3, 0)
v.headingLabel.Render(screen)
if v.selectedHero != d2enum.HeroNone {
v.heroClassLabel.Render(screen)
v.heroDesc1Label.Render(screen)
v.heroDesc2Label.Render(screen)
v.heroDesc3Label.Render(screen)
}
for heroClass, heroInfo := range v.heroRenderInfo {
if heroInfo.Stance == d2enum.HeroStanceIdle || heroInfo.Stance == d2enum.HeroStanceIdleSelected {
v.renderHero(screen, heroClass)
@ -538,6 +531,13 @@ func (v *SelectHeroClass) Render(screen d2interface.Surface) {
}
}
if v.selectedHero != d2enum.HeroNone {
v.heroClassLabel.Render(screen)
v.heroDesc1Label.Render(screen)
v.heroDesc2Label.Render(screen)
v.heroDesc3Label.Render(screen)
}
v.campfire.Render(screen)
if v.heroNameTextbox.GetVisible() {