diff --git a/cmd/game/main.go b/cmd/game/main.go index 9a2605c..ff7f7c9 100644 --- a/cmd/game/main.go +++ b/cmd/game/main.go @@ -154,7 +154,7 @@ func main() { &State, types.NewCenteredRect(mw.Rect, 70, 25), true, - ).SetBgColor("#ef305c70"). + ).SetBgColor("#ef6d559d"). SetFgColor("white"), ) diff --git a/engine/screens/devmenu.go b/engine/screens/devmenu.go index 46642ad..d558749 100644 --- a/engine/screens/devmenu.go +++ b/engine/screens/devmenu.go @@ -5,6 +5,7 @@ import ( "lab.zaar.be/thefish/alchemyst-go/engine/gamestate" "lab.zaar.be/thefish/alchemyst-go/engine/types" "lab.zaar.be/thefish/alchemyst-go/ui/mainwindow" + "strings" ) type DevmenuScreen struct { @@ -53,6 +54,7 @@ func (devm *DevmenuScreen) HandleInput(input string) { level.Tiles[idx].Visible = false level.Tiles[idx].Explored = false } + devm.scm.SetScreen(devm.scm.PreviousScreen) break case "v": level := devm.state.Level @@ -61,6 +63,7 @@ func (devm *DevmenuScreen) HandleInput(input string) { level.Tiles[idx].Explored = true } fmt.Printf("making everything visible!") + devm.scm.SetScreen(devm.scm.PreviousScreen) break case "Escape": fallthrough @@ -88,8 +91,14 @@ func (devm *DevmenuScreen) Render() { menuLayer.WithColor(devm.fgColor).PrintInside( devm.Rect, - "v - all visible\ni - all invisible", + strings.Join([]string{ + "Dev Menu:", + "[color=green]v[/color] - set all tiles visible", + "[color=green]i[/color] - set all tiles invisible", + }, "\n"), 1, ) + menuLayer.Print(devm.X+2, devm.Y+devm.H-1, "[color=green]Space[/color] to close") + } \ No newline at end of file