2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
2020-06-26 15:17:35 +00:00
|
|
|
// HelpStyle.h
|
|
|
|
//
|
2022-03-18 19:14:51 +00:00
|
|
|
// Style (colors, position, icons etc.) for the help system.
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_CORE_HELP_STYLE_H
|
|
|
|
#define ES_CORE_HELP_STYLE_H
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2021-08-17 20:11:16 +00:00
|
|
|
#include "utils/MathUtil.h"
|
2020-09-21 17:17:34 +00:00
|
|
|
|
2014-05-29 20:41:47 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Font;
|
2017-11-01 22:21:10 +00:00
|
|
|
class ThemeData;
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2020-06-26 15:17:35 +00:00
|
|
|
struct HelpStyle {
|
2021-08-16 16:25:01 +00:00
|
|
|
glm::vec2 position;
|
2023-04-09 10:47:44 +00:00
|
|
|
glm::vec2 positionDimmed;
|
2021-08-16 16:25:01 +00:00
|
|
|
glm::vec2 origin;
|
2023-04-09 10:47:44 +00:00
|
|
|
glm::vec2 originDimmed;
|
2020-06-26 15:17:35 +00:00
|
|
|
unsigned int textColor;
|
2021-08-22 14:43:15 +00:00
|
|
|
unsigned int textColorDimmed;
|
|
|
|
unsigned int iconColor;
|
|
|
|
unsigned int iconColorDimmed;
|
2020-06-26 15:17:35 +00:00
|
|
|
std::shared_ptr<Font> font;
|
2023-04-09 10:47:44 +00:00
|
|
|
std::shared_ptr<Font> fontDimmed;
|
2021-08-20 15:20:05 +00:00
|
|
|
float entrySpacing;
|
2023-04-09 10:47:44 +00:00
|
|
|
float entrySpacingDimmed;
|
2021-08-20 15:20:05 +00:00
|
|
|
float iconTextSpacing;
|
2023-04-09 10:47:44 +00:00
|
|
|
float iconTextSpacingDimmed;
|
2022-02-13 11:18:33 +00:00
|
|
|
float opacity;
|
2023-04-09 10:47:44 +00:00
|
|
|
float opacityDimmed;
|
2022-02-09 19:44:22 +00:00
|
|
|
std::string letterCase;
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2021-08-22 15:51:19 +00:00
|
|
|
struct CustomButtonIcons {
|
2022-03-18 19:14:51 +00:00
|
|
|
// Generic
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string dpad_updown;
|
2023-06-28 18:32:49 +00:00
|
|
|
std::string dpad_up;
|
|
|
|
std::string dpad_down;
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string dpad_leftright;
|
|
|
|
std::string dpad_all;
|
|
|
|
std::string thumbstick_click;
|
|
|
|
std::string button_l;
|
|
|
|
std::string button_r;
|
|
|
|
std::string button_lr;
|
2021-09-17 19:14:43 +00:00
|
|
|
std::string button_lt;
|
|
|
|
std::string button_rt;
|
2022-12-07 16:34:07 +00:00
|
|
|
std::string button_ltrt;
|
2021-08-22 15:51:19 +00:00
|
|
|
|
2022-03-18 19:14:51 +00:00
|
|
|
// SNES
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_a_SNES;
|
|
|
|
std::string button_b_SNES;
|
|
|
|
std::string button_x_SNES;
|
|
|
|
std::string button_y_SNES;
|
|
|
|
std::string button_back_SNES;
|
2023-01-21 10:34:35 +00:00
|
|
|
std::string button_start_SNES;
|
2021-08-22 15:51:19 +00:00
|
|
|
|
2023-01-21 11:58:16 +00:00
|
|
|
// Switch Pro
|
|
|
|
std::string button_a_switch;
|
|
|
|
std::string button_b_switch;
|
|
|
|
std::string button_x_switch;
|
|
|
|
std::string button_y_switch;
|
|
|
|
std::string button_back_switch;
|
|
|
|
std::string button_start_switch;
|
|
|
|
|
2022-03-18 19:14:51 +00:00
|
|
|
// PlayStation
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_a_PS;
|
|
|
|
std::string button_b_PS;
|
|
|
|
std::string button_x_PS;
|
|
|
|
std::string button_y_PS;
|
2023-01-21 12:45:54 +00:00
|
|
|
std::string button_back_PS123;
|
|
|
|
std::string button_start_PS123;
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_back_PS4;
|
2023-01-21 10:34:35 +00:00
|
|
|
std::string button_start_PS4;
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_back_PS5;
|
2023-01-21 10:34:35 +00:00
|
|
|
std::string button_start_PS5;
|
2021-08-22 15:51:19 +00:00
|
|
|
|
2022-03-18 19:14:51 +00:00
|
|
|
// XBOX
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_a_XBOX;
|
|
|
|
std::string button_b_XBOX;
|
|
|
|
std::string button_x_XBOX;
|
|
|
|
std::string button_y_XBOX;
|
|
|
|
std::string button_back_XBOX;
|
2023-01-21 10:34:35 +00:00
|
|
|
std::string button_start_XBOX;
|
2021-08-22 15:51:19 +00:00
|
|
|
std::string button_back_XBOX360;
|
2023-01-21 10:34:35 +00:00
|
|
|
std::string button_start_XBOX360;
|
2021-08-22 15:51:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CustomButtonIcons mCustomButtons;
|
|
|
|
|
2022-03-18 19:14:51 +00:00
|
|
|
HelpStyle();
|
2020-06-26 15:17:35 +00:00
|
|
|
void applyTheme(const std::shared_ptr<ThemeData>& theme, const std::string& view);
|
2017-10-31 17:12:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ES_CORE_HELP_STYLE_H
|