diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-21 19:23:41 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-21 19:23:41 (GMT) |
| commit | a9352008cf3765070a0634cb198820ebda9427f1 (patch) | |
| tree | f7c0b242dc4c59a15eaae29775e71dd2b4de5505 | |
| parent | 468e678cd6361f9f3224c3511a2a464ccc6c79d9 (diff) | |
| download | powder-a9352008cf3765070a0634cb198820ebda9427f1.zip powder-a9352008cf3765070a0634cb198820ebda9427f1.tar.gz | |
your own comments are yellow, save owner's comments are red (like on the forums)
| -rw-r--r-- | src/gui/preview/PreviewView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/preview/PreviewView.cpp b/src/gui/preview/PreviewView.cpp index f78b941..f55f6b5 100644 --- a/src/gui/preview/PreviewView.cpp +++ b/src/gui/preview/PreviewView.cpp @@ -559,6 +559,10 @@ void PreviewView::NotifyCommentsChanged(PreviewModel * sender) tempUsername = new ui::Label(ui::Point(5, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorNameFormatted); tempUsername->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; tempUsername->Appearance.VerticalAlign = ui::Appearance::AlignBottom; + if (sender->GetSave() && sender->GetSave()->GetUserName() == comments->at(i)->authorName) + tempUsername->SetTextColour(ui::Colour(255, 100, 100)); + else if (Client::Ref().GetAuthUser().ID && Client::Ref().GetAuthUser().Username == comments->at(i)->authorName) + tempUsername->SetTextColour(ui::Colour(255, 255, 100)); currentY += 16; commentComponents.push_back(tempUsername); |
