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")); |
|
46 BtnSinglePlayer->setWhatsThis(tr("Play a game on a single computer")); |
45 BtnSinglePlayer->setWhatsThis(tr("Play a game on a single computer")); |
47 pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
46 pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
48 |
47 |
49 //BtnNet = addButton(":/res/NetworkPlay.png", (QBoxLayout*)netLayout, 1, true); |
48 //BtnNet = addButton(":/res/NetworkPlay.png", (QBoxLayout*)netLayout, 1, true); |
50 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
49 BtnNet = addButton(":/res/NetworkPlay.png", pageLayout, 2, 2, 1, 2, true); |
51 BtnNet->setToolTip(tr("Network Game")); |
|
52 BtnNet->setWhatsThis(tr("Play a game across a network")); |
50 BtnNet->setWhatsThis(tr("Play a game across a network")); |
53 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
51 pageLayout->setAlignment(BtnNet, Qt::AlignHCenter); |
54 connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice())); |
52 connect(BtnNet, SIGNAL(clicked()), this, SLOT(toggleNetworkChoice())); |
55 |
53 |
56 originalNetworkIcon = BtnNet->icon(); |
54 originalNetworkIcon = BtnNet->icon(); |
63 //netLayoutWidget->setFixedSize(314, 260); |
61 //netLayoutWidget->setFixedSize(314, 260); |
64 netLayout->setSpacing(20); |
62 netLayout->setSpacing(20); |
65 netLayout->setAlignment(Qt::AlignHCenter); |
63 netLayout->setAlignment(Qt::AlignHCenter); |
66 |
64 |
67 BtnNetLocal = addButton("Play local network game", (QBoxLayout*)netLayout, 0, false); |
65 BtnNetLocal = addButton("Play local network game", (QBoxLayout*)netLayout, 0, false); |
68 BtnNetLocal->setToolTip(tr("Play a local network game")); |
|
69 BtnNetLocal->setWhatsThis(tr("Play a game across a local area network")); |
66 BtnNetLocal->setWhatsThis(tr("Play a game across a local area network")); |
70 BtnNetLocal->setFixedSize(BtnNet->width() - 50, 60); |
67 BtnNetLocal->setFixedSize(BtnNet->width() - 50, 60); |
71 BtnNetLocal->setVisible(false); |
68 BtnNetLocal->setVisible(false); |
72 |
69 |
73 BtnNetOfficial = addButton("Play official network game", (QBoxLayout*)netLayout, 0, false); |
70 BtnNetOfficial = addButton("Play official network game", (QBoxLayout*)netLayout, 0, false); |
74 BtnNetOfficial->setToolTip(tr("Play a network game")); |
|
75 BtnNetOfficial->setWhatsThis(tr("Play a game on an official server")); |
71 BtnNetOfficial->setWhatsThis(tr("Play a game on an official server")); |
76 BtnNetOfficial->setFixedSize(BtnNet->width() - 50, 60); |
72 BtnNetOfficial->setFixedSize(BtnNet->width() - 50, 60); |
77 BtnNetOfficial->setVisible(false); |
73 BtnNetOfficial->setVisible(false); |
78 |
74 |
79 // button order matters for overlapping (what's on top and what isn't) |
75 // button order matters for overlapping (what's on top and what isn't) |
80 BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true); |
76 BtnInfo = addButton(":/res/HedgewarsTitle.png", pageLayout, 0, 0, 1, 4, true); |
81 BtnInfo->setStyleSheet("border: transparent;background: transparent;"); |
77 BtnInfo->setStyleSheet("border: transparent;background: transparent;"); |
82 //BtnInfo->setToolTip(tr("Credits")); //tooltip looks horrible with transparent background buttons |
|
83 BtnInfo->setWhatsThis(tr("Read about who is behind the Hedgewars Project")); |
78 BtnInfo->setWhatsThis(tr("Read about who is behind the Hedgewars Project")); |
84 pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter); |
79 pageLayout->setAlignment(BtnInfo, Qt::AlignHCenter); |
85 |
80 |
86 BtnFeedback = addButton("Feedback", pageLayout, 4, 0, 1, 4, false); |
81 BtnFeedback = addButton("Feedback", pageLayout, 4, 0, 1, 4, false); |
87 BtnFeedback->setFixedSize(86, 27); |
82 BtnFeedback->setFixedSize(86, 27); |
88 BtnFeedback->setWhatsThis(tr("Leave a feedback here reporting issues, suggesting features or just saying how you like Hedgewars")); |
83 BtnFeedback->setWhatsThis(tr("Leave a feedback here reporting issues, suggesting features or just saying how you like Hedgewars")); |
89 pageLayout->setAlignment(BtnFeedback, Qt::AlignHCenter); |
84 pageLayout->setAlignment(BtnFeedback, Qt::AlignHCenter); |
90 |
85 |
91 BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 5, 0, 1, 4, false); |
86 BtnDataDownload = addButton(tr("Downloadable Content"), pageLayout, 5, 0, 1, 4, false); |
92 BtnDataDownload->setFixedSize(176, 27); |
87 BtnDataDownload->setFixedSize(176, 27); |
93 //BtnDataDownload->setToolTip(tr(Downloadable Content")); |
|
94 BtnDataDownload->setWhatsThis(tr("Access the user created content downloadable from our website")); |
88 BtnDataDownload->setWhatsThis(tr("Access the user created content downloadable from our website")); |
95 pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter); |
89 pageLayout->setAlignment(BtnDataDownload, Qt::AlignHCenter); |
96 |
90 |
97 // disable exit button sound |
91 // disable exit button sound |
98 btnBack->isSoundEnabled = false; |
92 btnBack->isSoundEnabled = false; |