#include "Story.hxx" extern "C" { #include } Story::Story(char * filename, char * font, char * boldfont) : Paragraph(filename, font) { char headlineFile[255], datelineFile[255]; sprintf(headlineFile, "%s.head", filename); sprintf(datelineFile, "%s.date", filename); headline = new Paragraph(headlineFile, boldfont); headline->SetPosition(0, 0, 18); AddChild(headline); dateline = new Paragraph(datelineFile, font); dateline->SetPosition(0, 0, 6); AddChild(dateline); this->SetScale(1.0); } void Story::SetColor(float r, float g, float b) { this->Paragraph::SetColor(r, g, b); headline->SetColor(1, 1, 1); dateline->SetColor(r/2, g/2, b/2); } void Story::SetTransparency(float t) { this->Paragraph::SetTransparency(t); headline->SetTransparency(t); dateline->SetTransparency(t); } void Story::SetBlur(float t) { this->Paragraph::SetBlur(t); headline->SetBlur(t); dateline->SetBlur(t); } pfDCS * Story::SetScale(float s) { headline->SetScale(s * 1.3); dateline->SetScale(s); return this->Paragraph::SetScale(s); }