mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-18 13:01:12 +01:00
fixed exit function with q, added evolution trace to options fixed inverse
This commit is contained in:
@@ -95,7 +95,7 @@ func (scene *SceneOptions) Init() {
|
||||
|
||||
invert := NewCheckbox("Invert",
|
||||
func(args *widget.CheckboxChangedEventArgs) {
|
||||
scene.Config.Invert = true
|
||||
scene.Config.ToggleInvert()
|
||||
})
|
||||
scene.SetInitialValue(invert, scene.Config.Invert)
|
||||
|
||||
@@ -105,6 +105,12 @@ func (scene *SceneOptions) Init() {
|
||||
})
|
||||
scene.SetInitialValue(gridlines, scene.Config.ShowGrid)
|
||||
|
||||
evolution := NewCheckbox("Show evolution traces",
|
||||
func(args *widget.CheckboxChangedEventArgs) {
|
||||
scene.Config.ToggleEvolution()
|
||||
})
|
||||
scene.SetInitialValue(evolution, scene.Config.ShowEvolution)
|
||||
|
||||
separator := NewSeparator(3)
|
||||
|
||||
cancel := NewMenuButton("Close",
|
||||
@@ -116,6 +122,7 @@ func (scene *SceneOptions) Init() {
|
||||
rowContainer.AddChild(debugging)
|
||||
rowContainer.AddChild(invert)
|
||||
rowContainer.AddChild(gridlines)
|
||||
rowContainer.AddChild(evolution)
|
||||
rowContainer.AddChild(separator)
|
||||
rowContainer.AddChild(cancel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user