diff options
author | Richard Nelson <richard@lindenlab.com> | 2011-09-26 19:48:17 -0700 |
---|---|---|
committer | Richard Nelson <richard@lindenlab.com> | 2011-09-26 19:48:17 -0700 |
commit | f56bf69dfed63d8b7d5d8994c0c3cafced803a0f (patch) | |
tree | 0fd26f3246c40491d079a05b13c4a99f0b790c3f /indra/llui/llcommandmanager.h | |
parent | 67c9f1daa7a631ba09ef94387665d226e3193a6a (diff) |
initial support for switching between icons only and icons + text
Diffstat (limited to 'indra/llui/llcommandmanager.h')
-rw-r--r-- | indra/llui/llcommandmanager.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/llui/llcommandmanager.h b/indra/llui/llcommandmanager.h index 7ed8785f17..8435d915f3 100644 --- a/indra/llui/llcommandmanager.h +++ b/indra/llui/llcommandmanager.h @@ -41,10 +41,22 @@ public: friend class LLCommand; friend class LLCommandManager; + struct Params : public LLInitParam::Block<Params> + { + Mandatory<std::string> name; + + Params() + : name("name") + {} + }; + LLCommandId(const std::string& name) : mName(name) - { - } + {} + + LLCommandId(const Params& p) + : mName(p.name) + {} const std::string& name() const { return mName; } |