package shelves
|
|
|
|
import "github.com/gdamore/tcell/v2"
|
|
|
|
func (a *Shelves) Draw(screen tcell.Screen) {
|
|
a.refresh()
|
|
a.Box.DrawForSubclass(screen, a)
|
|
|
|
x, y, width, height := a.GetInnerRect()
|
|
|
|
a.shelfTable.SetRect(x, y, width, height)
|
|
a.shelfTable.Draw(screen)
|
|
|
|
x, y, width, height = a.shelfTable.GetInnerRect()
|
|
|
|
for _, diag := range a.allDialogs {
|
|
if diag.IsDisplay() {
|
|
diag.SetRect(x, y, width, height)
|
|
diag.Draw(screen)
|
|
|
|
return
|
|
}
|
|
}
|
|
}
|