-rw-r--r-- | noncore/games/kbill/kbill.cpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/noncore/games/kbill/kbill.cpp b/noncore/games/kbill/kbill.cpp index 568df95..9fcfd5d 100644 --- a/noncore/games/kbill/kbill.cpp +++ b/noncore/games/kbill/kbill.cpp | |||
@@ -16,10 +16,14 @@ | |||
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #include <qmessagebox.h> | 18 | #include <qmessagebox.h> |
19 | #include <qmultilinedit.h> | ||
19 | #include <qmenubar.h> | 20 | #include <qmenubar.h> |
21 | #include <qtextbrowser.h> | ||
22 | #include <qfont.h> | ||
23 | #include <qwidget.h> | ||
20 | #include "kbill.h" | 24 | #include "kbill.h" |
21 | #include "inputbox.h" | 25 | #include "inputbox.h" |
22 | 26 | #include "helpdialog.h" | |
23 | #include "objects.h" | 27 | #include "objects.h" |
24 | #include "Strings.h" | 28 | #include "Strings.h" |
25 | 29 | ||
@@ -31,7 +35,7 @@ KBill::KBill() : QMainWindow() { | |||
31 | //these are dissabled until I fix them | 35 | //these are dissabled until I fix them |
32 | //file->insertItem(("Warp to level..."), this, SLOT(WarpTo())); | 36 | //file->insertItem(("Warp to level..."), this, SLOT(WarpTo())); |
33 | //file->insertItem(("View high scores"), this, SLOT(ViewHighScores())); | 37 | //file->insertItem(("View high scores"), this, SLOT(ViewHighScores())); |
34 | file->insertItem(("Quit game"), this, SLOT(Quit())); | 38 | |
35 | 39 | ||
36 | help = new QPopupMenu(); | 40 | help = new QPopupMenu(); |
37 | help->insertItem(("Story of kBill"), this, SLOT(Story())); | 41 | help->insertItem(("Story of kBill"), this, SLOT(Story())); |
@@ -107,12 +111,22 @@ void KBill::ViewHighScores() { | |||
107 | 111 | ||
108 | void KBill::Story() { | 112 | void KBill::Story() { |
109 | field->stopTimer(); | 113 | field->stopTimer(); |
110 | QMessageBox::message( ("Story"), (storystr), 0); | 114 | HelpDialog *stryDialog = new HelpDialog(this,"helpdialog",1); |
115 | QString stryString = "<b>The Story</b><p>Yet again, the fate of the world rests in your hands! An evil computer hacker, known only by his handle 'Bill', has created the ultimate computer virus. A virus so powerful that it has the power to transmute an ordinary computer into a toaster oven. (oooh!) 'Bill' has cloned himself into a billion-jillion micro-Bills. Their sole purpose is to deliver the nefarious virus, which has been cleverly diguised as a popular operating system. As System Administrator and Exterminator, your job is to keep Bill from succeeding at his task."; | ||
116 | stryDialog->setCaption("The story of KBill"); | ||
117 | stryDialog->TextBrowser1->setText(stryString); | ||
118 | stryDialog->resize(200,200); | ||
119 | stryDialog->show(); | ||
111 | field->startTimer(); | 120 | field->startTimer(); |
112 | } | 121 | } |
113 | 122 | ||
114 | void KBill::Rules() { | 123 | void KBill::Rules() { |
115 | field->stopTimer(); | 124 | field->stopTimer(); |
116 | QMessageBox::message(("Rules"), (rulesstr), 0); | 125 | HelpDialog *rulesDialog = new HelpDialog(this,"helpdialog",1); |
126 | rulesDialog->setCaption("The rules of KBill"); | ||
127 | QString rulesStr = "<b>The Rules</b><p>kBill has been painstakingly designed and researched in order to make it as easy to use for the whole family as it is for little Sally. Years - nay - days of beta testing and consulting with the cheapest of human interface designers have resulted in a game that is easy to use, yet nothing at all like a Macintosh.<p><UL><LI>Whack the Bills (click)</LI><LI>Restart the computer (click)</LI><LI>Pick up stolen OSes & return (drag) them to their respective computers</LI><LI>Drag the bucket to extinguish sparks</LI><LI>Scoring is based on total uptime, with bonuses for killing Bills.</LI></UL><P>As for the rest, you can probably work it out for yourself. We did, so it can't be too hard"; | ||
128 | rulesDialog->TextBrowser1->setText(rulesStr); | ||
129 | rulesDialog->resize(200,200); | ||
130 | rulesDialog->show(); | ||
117 | field->startTimer(); | 131 | field->startTimer(); |
118 | } | 132 | } |