Переглянути джерело

Read enabled property for controls from the form files.

Üstün Ergenoğlu 12 роки тому
батько
коміт
63d9afca7b
1 змінених файлів з 5 додано та 0 видалено
  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)
     if (id)
         _id = id;
         _id = id;
 
 
+    if (properties->exists("enabled"))
+    {
+        setEnabled(properties->getBool("enabled"));
+    }
+
     // Potentially override themed properties for all states.
     // Potentially override themed properties for all states.
     overrideThemedProperties(properties, STATE_ALL);
     overrideThemedProperties(properties, STATE_ALL);