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