mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-01 15:46:17 -04:00
parent
6ed86ee660
commit
15b78372b2
@ -72,10 +72,6 @@ func (v *TextBox) Render(target d2render.Surface) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (v *TextBox) Advance(elapsed float64) {
|
func (v *TextBox) Advance(elapsed float64) {
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *TextBox) Update() {
|
|
||||||
if !v.visible || !v.enabled {
|
if !v.visible || !v.enabled {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -92,6 +88,9 @@ func (v *TextBox) Update() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (v *TextBox) Update() {
|
||||||
|
}
|
||||||
|
|
||||||
func (v *TextBox) GetText() string {
|
func (v *TextBox) GetText() string {
|
||||||
return v.text
|
return v.text
|
||||||
}
|
}
|
||||||
|
@ -341,8 +341,6 @@ func (v *MainMenu) Advance(tickTime float64) error {
|
|||||||
v.diabloLogoRightBack.Advance(tickTime)
|
v.diabloLogoRightBack.Advance(tickTime)
|
||||||
v.diabloLogoLeft.Advance(tickTime)
|
v.diabloLogoLeft.Advance(tickTime)
|
||||||
v.diabloLogoRight.Advance(tickTime)
|
v.diabloLogoRight.Advance(tickTime)
|
||||||
case ScreenModeServerIp:
|
|
||||||
v.tcpJoinGameEntry.Update()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch v.screenMode {
|
switch v.screenMode {
|
||||||
|
@ -482,7 +482,6 @@ func (v *SelectHeroClass) Advance(tickTime float64) error {
|
|||||||
if v.selectedHero != d2enum.HeroNone && allIdle {
|
if v.selectedHero != d2enum.HeroNone && allIdle {
|
||||||
v.selectedHero = d2enum.HeroNone
|
v.selectedHero = d2enum.HeroNone
|
||||||
}
|
}
|
||||||
v.heroNameTextbox.Update()
|
|
||||||
v.okButton.SetEnabled(len(v.heroNameTextbox.GetText()) >= 2)
|
v.okButton.SetEnabled(len(v.heroNameTextbox.GetText()) >= 2)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user