40 pageLayout->setRowStretch(2, 0); |
40 pageLayout->setRowStretch(2, 0); |
41 pageLayout->setRowStretch(3, 1); |
41 pageLayout->setRowStretch(3, 1); |
42 pageLayout->setRowStretch(4, 1); |
42 pageLayout->setRowStretch(4, 1); |
43 |
43 |
44 BtnSinglePlayer = addButton(":/res/LocalPlay.png", pageLayout, 2, 0, 1, 2, true); |
44 BtnSinglePlayer = addButton(":/res/LocalPlay.png", pageLayout, 2, 0, 1, 2, true); |
45 BtnSinglePlayer->setToolTip(tr("Local Game (Play a game on a single computer)")); |
45 BtnSinglePlayer->setToolTip(tr("Local Game")); |
|
46 BtnSinglePlayer->setWhatsThis(tr("Play a game on a single computer")); |
46 pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
47 pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
47 |
48 |
48 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
49 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
49 BtnNet->setToolTip(tr("Network Game (Play a game across a network)")); |
50 BtnNet->setToolTip(tr("Network Game")); |
|
51 BtnNet->setWhatsThis(tr("Play a game across a network")); |
50 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
52 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
51 |
53 |
52 // button order matters for overlapping (what's on top and what isn't) |
54 // button order matters for overlapping (what's on top and what isn't) |
53 BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true); |
55 BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true); |
54 BtnInfo->setStyleSheet("border: transparent;background: transparent;"); |
56 BtnInfo->setStyleSheet("border: transparent;background: transparent;"); |
|
57 //BtnInfo->setToolTip(tr("Credits")); //tooltip looks horrible with transparent background buttons |
|
58 BtnInfo->setWhatsThis(tr("Read about who is behind the Hedgewars Project")); |
55 pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter); |
59 pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter); |
56 |
60 |
57 BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 4, 0, 1, 4, false); |
61 BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 4, 0, 1, 4, false); |
|
62 //BtnDataDownload->setToolTip(tr(Downloadable Content")); |
|
63 BtnDataDownload->setWhatsThis(tr("Access the user created content downloadable from our website")); |
58 pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter); |
64 pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter); |
59 |
65 |
60 return pageLayout; |
66 return pageLayout; |
61 } |
67 } |
62 |
68 |
89 if(frontendEffects) setAttribute(Qt::WA_NoSystemBackground, true); |
95 if(frontendEffects) setAttribute(Qt::WA_NoSystemBackground, true); |
90 mainNote->setOpenExternalLinks(true); |
96 mainNote->setOpenExternalLinks(true); |
91 |
97 |
92 if(!isDevBuild) |
98 if(!isDevBuild) |
93 { |
99 { |
94 //mainNote->setText(QLabel::tr("Tip: ") + randomTip()); |
|
95 setDefautDescription(QLabel::tr("Tip: ") + randomTip()); |
100 setDefautDescription(QLabel::tr("Tip: ") + randomTip()); |
96 } |
101 } |
97 else |
102 else |
98 { |
103 { |
99 setDefautDescription(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!")); |
104 setDefautDescription(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!")); |
100 //mainNote->setText(QLabel::tr("This development build is 'work in progress' and may not be compatible with other versions of the game. Some features might be broken or incomplete. Use at your own risk!")); |
|
101 } |
105 } |
102 |
106 |
103 } |
107 } |
104 |
108 |
105 QString PageMain::randomTip() const |
109 QString PageMain::randomTip() const |