diff mde/gui/widget/Floating.d @ 159:b06b04c75e86

Finished last commit, rearranged code for the WidgetManager class. There is now a GUI options section. Created a third WidgetManager class called WidgetLoader to handle file loading/saving. Moved most of the code in WMScreen's draw/clickEvent/motionEvent functions to WidgetManager.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 21 May 2009 20:55:10 +0200
parents f132e599043f
children ccd01fde535e
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d	Fri Apr 24 17:35:53 2009 +0100
+++ b/mde/gui/widget/Floating.d	Thu May 21 20:55:10 2009 +0200
@@ -19,6 +19,7 @@
 import mde.gui.widget.AParentWidget;
 import mde.gui.exception;
 import mde.content.IContent;
+import mde.content.AStringContent;
 
 import tango.util.log.Log : Log, Logger;
 
@@ -39,7 +40,7 @@
 class FloatingAreaWidget : AParentWidget
 {
     static this () {
-	raiseOnHover = ;
+	raiseOnHover = new BoolContent ("GUI.raiseOnHover");
     }
     
     this (IWidgetManager mgr, IParentWidget parent, widgetID id, WidgetData data, IContent content) {
@@ -173,7 +174,7 @@
         debug scope (failure)
             logger.warn ("getWidget: failure; values: click; pos; width: {},{}; {},{}; {},{}", cx, cy, x, y, w, h);
         
-	size_t event = getFloatingWidget (cx,cy, raiseOnHover);
+	size_t event = getFloatingWidget (cx,cy, raiseOnHover());
 	if (event > sWData.length)
 	    return this;	// no match