fix wu line iface, pending opacity

This commit is contained in:
2026-01-21 11:39:44 +03:00
parent 2be7717477
commit 378729616f
10 changed files with 108 additions and 51 deletions

View File

@@ -0,0 +1,36 @@
package gamelog
import (
"time"
)
var Log = &GameLog{RedrawLogs: true}
type GameLog struct {
Messages []Message
MaxHeight int
RedrawLogs bool
}
type Message struct {
GameTS uint64
RealTS time.Time
Message string
}
func (gl *GameLog) GetMaxHeight() int {
return gl.MaxHeight
}
func (gl *GameLog) SetMaxHeight(i int) {
gl.MaxHeight = i
}
func (gl *GameLog) Msg(msg string) {
gl.Messages = append(gl.Messages, Message{
GameTS: 0, //fixme
RealTS: time.Now(),
Message: msg,
})
gl.RedrawLogs = true
}