applets/controller: Implement "Explain Text"

"Explain Text" is additional text that is shown for each player in the controller applet.
This commit is contained in:
Morph 2020-08-27 01:21:48 -04:00
parent 4c621b9b09
commit 00df69232a
6 changed files with 304 additions and 25 deletions

View file

@ -59,6 +59,9 @@ private:
// Updates the border color per player.
void UpdateBorderColor(std::size_t player_index);
// Sets the "Explain Text" per player.
void SetExplainText(std::size_t player_index);
// Updates the console mode.
void UpdateDockedState(bool is_handheld);
@ -94,6 +97,9 @@ private:
// LED patterns for currently connected controllers/players.
std::array<std::array<QCheckBox*, 4>, 8> led_patterns_boxes;
// Labels representing additional information known as "Explain Text" per player.
std::array<QLabel*, 8> explain_text_labels;
// Comboboxes with a list of emulated controllers per player.
std::array<QComboBox*, 8> emulated_controllers;