Add the option to dynamically enable/disable controls to the octopus

This commit is contained in:
Melanie
2013-04-22 23:45:56 +02:00
parent 1bc887f887
commit 1934e49f99

View File

@@ -356,6 +356,8 @@ bool HippoFloaterXmlImpl::execute(LLFloater *floater, LLUICtrl *ctrl,
/*ctrl->setLabel(value);*/
} else if (key == "setVisible") {
ctrl->setVisible(value != "0");
} else if (key == "setEnabled") {
ctrl->setEnabled(value != "0");
} else if (key == "notify") {
bool set = (value != "0");
if (HippoFloaterXmlImpl *floaterp = dynamic_cast<HippoFloaterXmlImpl*>(ctrl)) {