summaryrefslogtreecommitdiff
path: root/indra/llui/llmenubutton.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-08-15 16:35:41 -0400
committerOz Linden <oz@lindenlab.com>2011-08-15 16:35:41 -0400
commitcb957d3dabfd0a419cb70461cc5bf3af2adba7a3 (patch)
treeac9978539aa02d80bf8c026aa3b2e1ba85404ecf /indra/llui/llmenubutton.cpp
parent7819b49086729187e198bf69f9c45f1c63f11ff2 (diff)
parentb8320207bb911a311a498426fdd4a987dd7748ea (diff)
merge late 3.0.1 beta candidate fixes
Diffstat (limited to 'indra/llui/llmenubutton.cpp')
-rw-r--r--indra/llui/llmenubutton.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llui/llmenubutton.cpp b/indra/llui/llmenubutton.cpp
index eed0085273..50d59f79f4 100644
--- a/indra/llui/llmenubutton.cpp
+++ b/indra/llui/llmenubutton.cpp
@@ -35,9 +35,16 @@
static LLDefaultChildRegistry::Register<LLMenuButton> r("menu_button");
+void LLMenuButton::MenuPositions::declareValues()
+{
+ declare("topleft", MP_TOP_LEFT);
+ declare("topright", MP_TOP_RIGHT);
+ declare("bottomleft", MP_BOTTOM_LEFT);
+}
LLMenuButton::Params::Params()
-: menu_filename("menu_filename")
+: menu_filename("menu_filename"),
+ position("position", MP_BOTTOM_LEFT)
{
}
@@ -45,7 +52,7 @@ LLMenuButton::Params::Params()
LLMenuButton::LLMenuButton(const LLMenuButton::Params& p)
: LLButton(p),
mIsMenuShown(false),
- mMenuPosition(MP_BOTTOM_LEFT)
+ mMenuPosition(p.position)
{
std::string menu_filename = p.menu_filename;