basic mapgen

This commit is contained in:
2019-10-27 01:08:06 +03:00
parent ec9d3d9a73
commit b8c8a65fa7
6 changed files with 154 additions and 36 deletions

View File

@ -51,15 +51,15 @@ func (layer *Layer) NewWindow(x, y, w, h int) *UiWindow {
}
func (uiw *UiWindow) NoBorder() {
uiw.RenderToLayer(noborder, uiw.layer)
uiw.Blit(noborder, uiw.layer)
}
func (uiw *UiWindow) Splash() {
uiw.RenderToLayer(splash, uiw.layer)
uiw.Blit(splash, uiw.layer)
}
func (uiw *UiWindow) DoubleBordered(title string) {
uiw.RenderToLayer(doubleBorder, uiw.layer)
uiw.Blit(doubleBorder, uiw.layer)
if len(title) > (uiw.W - 2) {
title = title[:(uiw.W - 2)]
}