Skip to content
Snippets Groups Projects
Commit 7c10ef72 authored by ¡Cinder! ㊝'s avatar ¡Cinder! ㊝ :speech_balloon:
Browse files

Don't pretend you don't love set_child_visible()

parent d16ea787
No related branches found
No related tags found
1 merge request!81Local Inventory setup, Hex editor, Legacy Profiles that aren't ass, and sundry methods abound
...@@ -877,3 +877,8 @@ LLPanel* LLPanel::createFactoryPanel(const std::string& name) ...@@ -877,3 +877,8 @@ LLPanel* LLPanel::createFactoryPanel(const std::string& name)
LLPanel::Params panel_p; LLPanel::Params panel_p;
return LLUICtrlFactory::create<LLPanel>(panel_p); return LLUICtrlFactory::create<LLPanel>(panel_p);
} }
void set_child_visible(LLView* parent, const std::string& child_name, bool visible)
{
parent->getChildView(child_name)->setVisible(visible);
}
...@@ -313,5 +313,6 @@ template<typename T> ...@@ -313,5 +313,6 @@ template<typename T>
LLRegisterPanelClass::instanceFast().addPanelClass(tag,&LLRegisterPanelClass::defaultPanelClassBuilder<T>); LLRegisterPanelClass::instanceFast().addPanelClass(tag,&LLRegisterPanelClass::defaultPanelClassBuilder<T>);
} }
void set_child_visible(LLView* parent, const std::string& child_name, bool visible);
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment