mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-20 23:47:16 -05: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) Update() {
|
||||
if !v.visible || !v.enabled {
|
||||
return
|
||||
}
|
||||
@ -92,6 +88,9 @@ func (v *TextBox) Update() {
|
||||
}
|
||||
}
|
||||
|
||||
func (v *TextBox) Update() {
|
||||
}
|
||||
|
||||
func (v *TextBox) GetText() string {
|
||||
return v.text
|
||||
}
|
||||
|
@ -341,8 +341,6 @@ func (v *MainMenu) Advance(tickTime float64) error {
|
||||
v.diabloLogoRightBack.Advance(tickTime)
|
||||
v.diabloLogoLeft.Advance(tickTime)
|
||||
v.diabloLogoRight.Advance(tickTime)
|
||||
case ScreenModeServerIp:
|
||||
v.tcpJoinGameEntry.Update()
|
||||
}
|
||||
|
||||
switch v.screenMode {
|
||||
|
@ -482,7 +482,6 @@ func (v *SelectHeroClass) Advance(tickTime float64) error {
|
||||
if v.selectedHero != d2enum.HeroNone && allIdle {
|
||||
v.selectedHero = d2enum.HeroNone
|
||||
}
|
||||
v.heroNameTextbox.Update()
|
||||
v.okButton.SetEnabled(len(v.heroNameTextbox.GetText()) >= 2)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user