Пример #1
0
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);
		}
	}
}
Пример #2
0
void DisplayMessage::DisplayMarkupString(const String& Text) const
{
    TextArea *ta = core->GetMessageTextArea();
    if (ta)
        ta->AppendText( Text );
}