diff mde/gui/renderer/SimpleRenderer.d @ 103:42e241e7be3e

ContentList content type; getting content items/lists from Options generically via content.Items, and a new addContent widget function. Several improvements to generic handling of content. New button-with-text widget. Some tidy-up. Some name changes, to increase uniformity. Bug-fix: floating widgets of fixed size could previously be made larger than intended from config dimdata.
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 25 Nov 2008 18:01:44 +0000
parents 0ea4a3e651ae
children c9fc2d303178
line wrap: on
line diff
--- a/mde/gui/renderer/SimpleRenderer.d	Sat Nov 22 20:59:36 2008 +0000
+++ b/mde/gui/renderer/SimpleRenderer.d	Tue Nov 25 18:01:44 2008 +0000
@@ -59,6 +59,8 @@
     
     
     //FIXME - make these do something
+    // They should restrict the drawing of floating widgets to the floating area, for instance,
+    // although this isn't strictly necessary.
     void restrict (wdim x, wdim y, wdim w, wdim h) {}
     void relax () {}
     
@@ -67,7 +69,7 @@
         glRecti(x, y+h, x+w, y);
         
         if (border.capability != 0) {
-            glColor3f (0f, 0f, .7f);
+            glColor3f (0f, 0f, .6f);
             glBegin (GL_TRIANGLES);
             wdim t = border.x1 + border.y1;
             glVertex2i (x, y);
@@ -134,8 +136,8 @@
         TextAdapter a;
         a.font = defaultFont;
         a.content = text;
-	a.colour = Colour (col);
-	a.index = size_t.max;
+	a.colour_ = Colour (col);
+	a.index_ = size_t.max;
 	return a;
     }