void DisplayMessage::DisplayString(const char* Text, Scriptable *target) const { Label *l = core->GetMessageLabel(); if (l) { l->SetText(Text); } TextArea *ta = core->GetMessageTextArea(); if (ta) { ta->AppendText( Text, -1 ); } else { if(target) { char *tmp = strdup(Text); target->DisplayHeadText(tmp); } } }
void DisplayMessage::DisplayMarkupString(const String& Text) const { TextArea *ta = core->GetMessageTextArea(); if (ta) ta->AppendText( Text ); }