Implemented Widger::Visible and Enabled usage

This commit is contained in:
Robert Osfield
2014-05-26 16:27:33 +00:00
parent b04a4813ba
commit 5d635287c0
4 changed files with 39 additions and 28 deletions

View File

@@ -61,12 +61,12 @@ bool Popup::handleImplementation(osgGA::EventVisitor* ev, osgGA::Event* event)
void Popup::close()
{
if (_transform.valid()) _transform->setNodeMask(0x0);
setVisible(false);
}
void Popup::open()
{
if (_transform.valid()) _transform->setNodeMask(0xffffffff);
setVisible(true);
}
void Popup::leaveImplementation()