- void Add(const char *title, const T &value, const Sprite *icon = 0) { entries.push_back(Entry(title, value, icon)); }
+ int EntryCount() const { return entries.size(); }
+ T &ValueAt(int index) { return entries[index].value; }
+ const T &ValueAt(int index) const { return entries[index].value; }
+
+ void Add(const char *title, const T &value, bool enabled = true, const Sprite *icon = 0) { entries.push_back(Entry(title, value, enabled, icon)); }
+ void Disable(int index) { entries[index].enabled = false; }
+ void Enable(int index) { entries[index].enabled = true; }