summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/main.go b/main.go
index 3520de5..d6ea47e 100644
--- a/main.go
+++ b/main.go
@@ -10,9 +10,11 @@ import (
)
type GUI struct {
- window *gtk.Window
- statusbar *gtk.Statusbar
+ window *gtk.Window
+ statusbar *gtk.Statusbar
+
showbiomes *gtk.CheckButton
+ fixsnowice *gtk.CheckButton
statusContext uint
lastStatus string
@@ -155,6 +157,11 @@ func (g *GUI) mkSidebar() *gtk.ScrolledWindow {
g.showbiomes.Connect("toggled", g.showbiomesToggled)
vbox.PackStart(g.showbiomes, false, false, 3)
+ g.fixsnowice = gtk.NewCheckButtonWithLabel("Fix Snow/Ice")
+ g.fixsnowice.SetTooltipText("Add Snow/Ice for Taiga/Ice Plains. Remove Snow/Ice for other biomes.")
+ g.fixsnowice.Connect("toggled", g.fixsnowiceToggled)
+ vbox.PackStart(g.fixsnowice, false, false, 3)
+
fill := gtk.NewRadioButtonWithLabel(nil, "Fill")
fill.SetActive(true)
fill.Connect("toggled", g.mkUpdateToolFx(fill, NewFillTool()))
@@ -274,6 +281,10 @@ func (g *GUI) showbiomesToggled() {
g.mapw.SetShowBiomes(g.showbiomes.GetActive())
}
+func (g *GUI) fixsnowiceToggled() {
+ g.mapw.SetFixSnowIce(g.fixsnowice.GetActive())
+}
+
/*func (g *GUI) undo() {
fmt.Println("Undo")
}*/