added wrap option to option popup

This commit is contained in:
2024-06-04 18:50:29 +02:00
parent f877cf5cb0
commit c4a00dcee2
2 changed files with 11 additions and 0 deletions

View File

@@ -111,6 +111,12 @@ func (scene *SceneOptions) Init() {
})
scene.SetInitialValue(evolution, scene.Config.ShowEvolution)
wrap := NewCheckbox("Wrap around edges",
func(args *widget.CheckboxChangedEventArgs) {
scene.Config.ToggleWrap()
})
scene.SetInitialValue(wrap, scene.Config.Wrap)
separator := NewSeparator(3)
cancel := NewMenuButton("Close",
@@ -123,6 +129,7 @@ func (scene *SceneOptions) Init() {
rowContainer.AddChild(invert)
rowContainer.AddChild(gridlines)
rowContainer.AddChild(evolution)
rowContainer.AddChild(wrap)
rowContainer.AddChild(separator)
rowContainer.AddChild(cancel)