Root/
Source at commit 2a2634b3640286bf05fa5158e5f71ba1d2490aea created 9 years 5 months ago. By Nebuleon Fumika, Remove all touch-screen-related code | |
---|---|
1 | // Various authors. |
2 | // License: GPL version 2 or later. |
3 | |
4 | #include "helppopup.h" |
5 | |
6 | #include "gmenu2x.h" |
7 | |
8 | |
9 | HelpPopup::HelpPopup(GMenu2X& gmenu2x) |
10 | : gmenu2x(gmenu2x) |
11 | { |
12 | } |
13 | |
14 | void HelpPopup::paint(Surface& s) { |
15 | Font& font = *gmenu2x.font; |
16 | Translator &tr = gmenu2x.tr; |
17 | int helpBoxHeight = 154; |
18 | |
19 | s.box(10, 50, 300, helpBoxHeight + 4, |
20 | gmenu2x.skinConfColors[COLOR_MESSAGE_BOX_BG]); |
21 | s.rectangle(12, 52, 296, helpBoxHeight, |
22 | gmenu2x.skinConfColors[COLOR_MESSAGE_BOX_BORDER]); |
23 | font.write(s, tr["CONTROLS"], 20, 60); |
24 | #if defined(PLATFORM_A320) || defined(PLATFORM_GCW0) |
25 | font.write(s, tr["A: Launch link / Confirm action"], 20, 80); |
26 | font.write(s, tr["B: Show this help menu"], 20, 95); |
27 | font.write(s, tr["L, R: Change section"], 20, 110); |
28 | font.write(s, tr["SELECT: Show contextual menu"], 20, 155); |
29 | font.write(s, tr["START: Show options menu"], 20, 170); |
30 | #endif |
31 | } |
32 | |
33 | bool HelpPopup::handleButtonPress(InputManager::Button button) { |
34 | if (button == InputManager::CANCEL) { |
35 | dismiss(); |
36 | } |
37 | return true; |
38 | } |
39 |
Branches:
install_locations
master
opkrun
packages