DrawOffset
This commit is contained in:
7
table.go
7
table.go
@@ -141,6 +141,13 @@ func (w *Table) Draw(screen tcell.Screen) {
|
||||
y++
|
||||
}
|
||||
}
|
||||
|
||||
func (w *Table) DrawOffset(c Coord, screen tcell.Screen) {
|
||||
p := w.GetPos()
|
||||
w.SetPos(p.Add(c))
|
||||
w.Draw(screen)
|
||||
w.SetPos(p)
|
||||
}
|
||||
func (w *Table) Active() bool { return w.active }
|
||||
func (w *Table) SetActive(a bool) { w.active = a }
|
||||
func (w *Table) Visible() bool { return w.visible }
|
||||
|
||||
Reference in New Issue
Block a user