added support for custom tokens in dislaychannel

This commit is contained in:
louis
2014-10-11 16:31:39 +02:00
parent 04340d11c9
commit 0e0f05cfcb
16 changed files with 132 additions and 4 deletions

View File

@@ -479,6 +479,17 @@ void cDisplayChannelView::DisplayMessage(eMessageType Type, const char *Text) {
DrawViewElement(veMessage, &stringTokens, &intTokens);
}
void cDisplayChannelView::DrawCustomTokens(void) {
if (!ViewElementImplemented(veCustomTokens)) {
return;
}
if (!tmplView)
return;
map < string, string > stringTokens = tmplView->GetCustomTokens();
map < string, int > intTokens;
DrawViewElement(veCustomTokens, &stringTokens, &intTokens);
}
void cDisplayChannelView::Action(void) {
SetInitFinished();
FadeIn();