Browse Source

Read enabled property for controls from the form files.

Üstün Ergenoğlu 12 years ago
parent
commit
63d9afca7b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      gameplay/src/Control.cpp

+ 5 - 0
gameplay/src/Control.cpp

@@ -90,6 +90,11 @@ void Control::initialize(Theme::Style* style, Properties* properties)
     if (id)
         _id = id;
 
+    if (properties->exists("enabled"))
+    {
+        setEnabled(properties->getBool("enabled"));
+    }
+
     // Potentially override themed properties for all states.
     overrideThemedProperties(properties, STATE_ALL);