From eb0703fac0e4a8a491ef4bd4343a2b47fdc66aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 5 Apr 2009 22:28:29 +0000 Subject: [PATCH] Show an explanation alert, and a score total. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29955 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/tracker/iconvader/IconVader.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/add-ons/tracker/iconvader/IconVader.cpp b/src/add-ons/tracker/iconvader/IconVader.cpp index d96b9d9d6c..c1bac3d0a6 100644 --- a/src/add-ons/tracker/iconvader/IconVader.cpp +++ b/src/add-ons/tracker/iconvader/IconVader.cpp @@ -80,8 +80,8 @@ process_refs(entry_ref dir, BMessage* refs, void* /*reserved*/) - //alert = new BAlert("Error", "Plop", "Ok"); - //alert->Go(); + alert = new BAlert("Error", "IconVader:\nClick on the icons to get points. Avoid symlinks!", "Ok"); + alert->Go(); int32 score = 0; @@ -122,6 +122,11 @@ process_refs(entry_ref dir, BMessage* refs, void* /*reserved*/) snooze(100000); } + BString scoreStr("You scored "); + scoreStr << score << " points!"; + alert = new BAlert("Error", scoreStr.String(), "Cool!"); + alert->Go(); + status = B_ERROR; if (!msgr.LockTarget()) {