ui starting, menu screen, ingame help

This commit is contained in:
2019-11-08 03:36:26 +03:00
parent 4532320ce3
commit cb7718860a
11 changed files with 271 additions and 40 deletions

View File

@ -43,9 +43,9 @@ type UiWindow struct {
fillage types.RectFill
}
func (layer *Layer) NewWindow(x, y, w, h int) *UiWindow {
func (layer *Layer) NewWindow(rect *types.Rect) *UiWindow {
return &UiWindow{
Rect: types.NewRect(x, y, w, h),
Rect: rect,
layer: layer,
}
}