(svn r1487) -Fix: [1100736] wrong tooltip for place desert button
authordarkvater
Wed, 12 Jan 2005 11:50:41 +0000
changeset 989 e8cb18c99990
parent 988 4304525d1b8b
child 990 d2872f4948c1
(svn r1487) -Fix: [1100736] wrong tooltip for place desert button
main_gui.c
--- a/main_gui.c	Wed Jan 12 11:21:28 2005 +0000
+++ b/main_gui.c	Wed Jan 12 11:50:41 2005 +0000
@@ -1259,10 +1259,10 @@
 
 static void ScenEditLandGenWndProc(Window *w, WindowEvent *e)
 {
-	// XXX: show different tooltips in desert mode
 	switch(e->event) {
 	case WE_PAINT:
-		// XXX: only show reset button when nothing was built
+		// XXX - lighthouse button is widget 11!! Don't forget when changing
+		w->widget[11].tooltips = (_opt.landscape == LT_DESERT) ? STR_028F_DEFINE_DESERT_AREA : STR_028D_PLACE_LIGHTHOUSE; 
 		DrawWindowWidgets(w);
 
 		{