]> git.mxchange.org Git - flightgear.git/commitdiff
make puListBox inherit puList colors (otherwise the GUI style isn't
authormfranz <mfranz>
Thu, 23 Mar 2006 17:44:10 +0000 (17:44 +0000)
committermfranz <mfranz>
Thu, 23 Mar 2006 17:44:10 +0000 (17:44 +0000)
respected, and black text on dark grey is a bit hard to read).
TODO: - submit that for inclusion in plib's puAuxList
      - drop custom version and use plib's (after 0.9.10)

src/GUI/puList.cxx
src/GUI/puList.hxx

index b99ccd4051b66d2547938c0e180af2d0c464d838..4654084adb66772bbf469149266adc7272612395 100644 (file)
@@ -116,4 +116,18 @@ puList::init (int w, int h)
     close();
 }
 
+void
+puList::setColourScheme (float r, float g, float b, float a)
+{
+    puObject::setColourScheme(r, g, b, a);
+    _list_box->setColourScheme(r, g, b, a);
+}
+
+void
+puList::setColour (int which, float r, float g, float b, float a)
+{
+    puObject::setColour(which, r, g, b, a);
+    _list_box->setColour(which, r, g, b, a);
+}
+
 // end of puList.cxx
index 2b4946a002751518c57845e75fffef11185ecb29..414a097a52a62f34846587ea7fde2955016f0089 100644 (file)
@@ -27,6 +27,9 @@ class puList : public puGroup
     // TODO: other string value funcs
     virtual char * getListStringValue ();
     virtual int getListIntegerValue();
+    virtual void setColourScheme (float r, float g, float b, float a);
+    virtual void setColour (int which, float r, float g, float b, float a);
+
 
  protected:
     virtual void init (int w, int h);