mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-17 04:30:57 +01:00
remove old debug prints, update TODO
This commit is contained in:
@@ -278,10 +278,8 @@ func (config *Config) SwitchTheme(theme string) {
|
||||
}
|
||||
|
||||
func (config *Config) ToggleGridlines() {
|
||||
fmt.Printf("toggle grid lines, current: %t\n", config.ShowGrid)
|
||||
config.ShowGrid = !config.ShowGrid
|
||||
config.RestartCache = true
|
||||
fmt.Printf("toggle grid lines, new: %t\n", config.ShowGrid)
|
||||
}
|
||||
|
||||
func (config *Config) ToggleEvolution() {
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image/color"
|
||||
|
||||
"github.com/alecthomas/repr"
|
||||
"github.com/ebitenui/ebitenui"
|
||||
"github.com/ebitenui/ebitenui/widget"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
@@ -96,8 +94,6 @@ func (scene *SceneOptions) Init() {
|
||||
gridlines := NewCheckbox("Show grid lines",
|
||||
scene.Config.ShowGrid,
|
||||
func(args *widget.CheckboxChangedEventArgs) {
|
||||
fmt.Println("CHECKBOX CALLED")
|
||||
repr.Println(args.State)
|
||||
scene.Config.ToggleGridlines()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user