[editorKeysounds] Allow pushing string vectors.

This will save me a headache for later.
This commit is contained in:
Jason Felds
2012-02-10 14:14:42 -05:00
parent a25fa01b34
commit 616f0742be
+13
View File
@@ -50,6 +50,19 @@ struct MenuRowDef
PUSH(c23);PUSH(c23);PUSH(c24);PUSH(c25);
#undef PUSH
}
MenuRowDef(int r, RString n, bool e, EditMode s,
bool bTT, bool bTI, int d, vector<RString> options):
iRowCode(r), sName(n), bEnabled(e), pfnEnabled(NULL),
emShowIn(s), iDefaultChoice(d), choices(),
bThemeTitle(bTT), bThemeItems(bTI)
{
FOREACH(RString, options, str)
{
if (*str != "") choices.push_back(*str);
}
}
MenuRowDef( int r, RString n, bool e, EditMode s, bool bTT, bool bTI,
int d, const char *c0=NULL, const char *c1=NULL,
const char *c2=NULL, const char *c3=NULL,