summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-18 13:05:06 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-18 13:05:06 +0200
commit69580bed0c0d5e07319c63bd66900bc793a8bfa2 (patch)
tree122b54d8c4f820cce982158ba1661f75c3a227df
parent11a1c2f8d872cb0ef24f093b2f1e042efca186c4 (diff)
downloadbiomed-69580bed0c0d5e07319c63bd66900bc793a8bfa2.tar.gz
biomed-69580bed0c0d5e07319c63bd66900bc793a8bfa2.tar.bz2
biomed-69580bed0c0d5e07319c63bd66900bc793a8bfa2.zip
Feedback after saving & a friendly reminder to backup savegames.
-rw-r--r--main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.go b/main.go
index f334507..f071df9 100644
--- a/main.go
+++ b/main.go
@@ -125,8 +125,20 @@ func (g *GUI) mkMenuBar() *gtk.MenuBar {
return menubar
}
+func (g *GUI) betaWarning() {
+ dlg := gtk.NewMessageDialog(g.window, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "This software is currently in beta.\nAlthough everythung seems to work, you should make a backup of your maps, just in case!")
+ dlg.Run()
+ dlg.Destroy()
+}
+
func (g *GUI) save() {
+ g.setBusy(true)
g.mapw.Save()
+ g.setBusy(false)
+
+ dlg := gtk.NewMessageDialog(g.window, gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, "Map saved!")
+ dlg.Run()
+ dlg.Destroy()
}
func (g *GUI) mkQuickOpen() (*gtk.Menu, bool) {
@@ -296,6 +308,7 @@ func (g *GUI) fixSnowIceToggled() {
func (g *GUI) Show() {
g.window.ShowAll()
+ g.betaWarning()
}
func (g *GUI) exitApp() {