treballant en arreglas els includes de SDL3
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "param.h"
|
||||
#include <SDL3/SDL_log.h> // Para SDL_LogCategory, SDL_LogError, SDL_LogInfo
|
||||
#include <fstream> // Para basic_istream, basic_ifstream, ifstream
|
||||
#include <sstream> // Para basic_istringstream
|
||||
#include <stdexcept> // Para runtime_error
|
||||
#include <string> // Para operator==, stoi, char_traits, string, ope...
|
||||
#include "utils.h" // Para Zone, Color, NotifyPosition, getFileName
|
||||
#include <SDL3/SDL.h> // Para SDL_LogCategory, SDL_LogError, SDL_LogInfo
|
||||
#include <fstream> // Para basic_istream, basic_ifstream, ifstream
|
||||
#include <sstream> // Para basic_istringstream
|
||||
#include <stdexcept> // Para runtime_error
|
||||
#include <string> // Para operator==, stoi, char_traits, string, ope...
|
||||
#include "utils.h" // Para Zone, Color, NotifyPosition, getFileName
|
||||
|
||||
Param param;
|
||||
|
||||
@@ -80,9 +80,9 @@ void initParam()
|
||||
param.notification.color = Color(48, 48, 48);
|
||||
|
||||
// INTRO
|
||||
param.intro.bg_color = Color::fromHex("543149");
|
||||
param.intro.card_color = Color::fromHex("CBDBFC");
|
||||
param.intro.shadow_color = Color::fromHex("00000080");
|
||||
param.intro.bg_color = Color::fromHex("543149");
|
||||
param.intro.card_color = Color::fromHex("CBDBFC");
|
||||
param.intro.shadow_color = Color::fromHex("00000080");
|
||||
param.intro.text_distance_from_bottom = 48;
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ bool setParams(const std::string &var, const std::string &value)
|
||||
param.title.title_c_c_position = std::stoi(value);
|
||||
}
|
||||
|
||||
else if (var == "title.bg_color")
|
||||
else if (var == "title.bg_color")
|
||||
{
|
||||
param.title.bg_color = Color::fromHex(value);
|
||||
}
|
||||
@@ -461,12 +461,12 @@ bool setParams(const std::string &var, const std::string &value)
|
||||
param.intro.card_color = Color::fromHex(value);
|
||||
}
|
||||
|
||||
else if (var == "intro.shadow_color")
|
||||
else if (var == "intro.shadow_color")
|
||||
{
|
||||
param.intro.shadow_color = Color::fromHex(value);
|
||||
}
|
||||
|
||||
else if (var == "intro.text_distance_from_bottom")
|
||||
else if (var == "intro.text_distance_from_bottom")
|
||||
{
|
||||
param.intro.text_distance_from_bottom = std::stoi(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user