game/tetris/config.cpp

115 lines
4.2 KiB
C++

#include "config.hpp"
std::map< std::string, std::map< std::string, std::string > > color_schemes = {
{ "default",
{
{ "piece_brick", "#FF0000" },
{ "piece_brick_out", "#AA0000" },
{ "piece_T", "#00FF00" },
{ "piece_T_out", "#00AA00" },
{ "piece_L_right", "#0000FF" },
{ "piece_L_right_out", "#0000AA" },
{ "piece_Z_right", "#FF00FF" },
{ "piece_Z_right_out", "#AA00AA" },
{ "piece_line", "#FFFF00" },
{ "piece_line_out", "#AAAA00" },
{ "piece_L_left", "#00FFFF" },
{ "piece_L_left_out", "#00AAAA" },
{ "piece_Z_left", "#FFFFFF" },
{ "piece_Z_left_out", "#AAAAAA" },
{ "shadow", "#AAAAAAAA" },
{ "shadow_out", "#888888" },
{ "background", "#222222" },
{ "line", "#888888" },
{ "barrier", "#AA0000" },
{ "text", "#FFFFFF" },
{ "text_out", "#000000" },
{ "menu_background", "#000000BB" },
{ "menu_item_background", "#FFFFFF40" },
} },
{ "gruvbox_dark",
{
{ "piece_brick", "#cc241d" },
{ "piece_brick_out", "#fb4934" },
{ "piece_T", "#98971a" },
{ "piece_T_out", "#b8bb26" },
{ "piece_L_right", "#458588" },
{ "piece_L_right_out", "#83a598" },
{ "piece_Z_right", "#b16286" },
{ "piece_Z_right_out", "#d3869b" },
{ "piece_line", "#d79921" },
{ "piece_line_out", "#fabd2f" },
{ "piece_L_left", "#689d6a" },
{ "piece_L_left_out", "#8ec07c" },
{ "piece_Z_left", "#a89984" },
{ "piece_Z_left_out", "#ebdbb2" },
{ "shadow", "#bdae9380" },
{ "shadow_out", "#fbf1c7" },
{ "background", "#282828" },
{ "line", "#fbf1c7" },
{ "barrier", "#d65d0e" },
{ "text", "#ebdbb2" },
{ "text_out", "#1d2021" },
{ "menu_background", "#282828BB" },
{ "menu_item_background", "#d5c4a180" },
} },
{ "gruvbox_light",
{
{ "piece_brick", "#cc241d" },
{ "piece_brick_out", "#9d0006" },
{ "piece_T", "#98971a" },
{ "piece_T_out", "#79740e" },
{ "piece_L_right", "#458588" },
{ "piece_L_right_out", "#076678" },
{ "piece_Z_right", "#b16286" },
{ "piece_Z_right_out", "#8f3f71" },
{ "piece_line", "#d79921" },
{ "piece_line_out", "#b57614" },
{ "piece_L_left", "#689d6a" },
{ "piece_L_left_out", "#427b58" },
{ "piece_Z_left", "#7c6f64" },
{ "piece_Z_left_out", "#3c3836" },
{ "shadow", "#665c5480" },
{ "shadow_out", "#282828" },
{ "background", "#d5c4a1" },
{ "line", "#282828" },
{ "barrier", "#d65d0e" },
{ "text", "#3c3836" },
{ "text_out", "#f9f5d7" },
{ "menu_background", "#d5c4a1BB" },
{ "menu_item_background", "#50494580" },
} },
{ "blackandwhite",
{
{ "piece_brick", "#FFFFFF" },
{ "piece_brick_out", "#000000" },
{ "piece_T", "#FFFFFF" },
{ "piece_T_out", "#000000" },
{ "piece_L_right", "#FFFFFF" },
{ "piece_L_right_out", "#000000" },
{ "piece_Z_right", "#FFFFFF" },
{ "piece_Z_right_out", "#000000" },
{ "piece_line", "#FFFFFF" },
{ "piece_line_out", "#000000" },
{ "piece_L_left", "#FFFFFF" },
{ "piece_L_left_out", "#000000" },
{ "piece_Z_left", "#FFFFFF" },
{ "piece_Z_left_out", "#000000" },
{ "shadow", "#FFFFFF80" },
{ "shadow_out", "#FFFFFF" },
{ "background", "#000000" },
{ "line", "#FFFFFF" },
{ "barrier", "#FFFFFF" },
{ "text", "#FFFFFF" },
{ "text_out", "#000000" },
{ "menu_background", "#000000BB" },
{ "menu_item_background", "#FFFFFF40" },
} },
};
std::vector< std::string > color_schemes_names = { "default", "gruvbox_dark",
"gruvbox_light",
"blackandwhite" };
long unsigned int selected_color_scheme = 0;
bool g_show_shadow = true;
bool g_show_3d = false;