Update config.def.hpp

This commit is contained in:
Tyler Perkins 2021-10-02 15:47:18 -04:00
parent 51b9e6401f
commit 5e926d529c

View File

@ -76,10 +76,8 @@ constexpr int IMG_FLAGS = 0
// Be sure to include the panel definition below, then add it to the system // Be sure to include the panel definition below, then add it to the system
#include "panel/panel.hpp" #include "panel/panel.hpp"
#include "panel/weather.hpp" #include "panel/weather.hpp"
static dashboard::panel::panel* PANELS[] = { extern dashboard::panel::panel* PANELS[];
new dashboard::panel::weather(), extern size_t PANELS_LENGTH;
};
// DATA_DIR // DATA_DIR
// Where all resources will be // Where all resources will be
@ -93,12 +91,8 @@ constexpr char DATA_IMG[] = DATA_IMG_;
// IMAGE_LOCATIONS // IMAGE_LOCATIONS
// Locations of all static images used // Locations of all static images used
static const char* IMAGE_LOCATIONS[] = { extern const char* IMAGE_LOCATIONS[];
"bmp_24.png", extern size_t IMAGE_LOCATIONS_LENGTH;
//Weather
"sunny.png",
"rainy.png",
};
// FONT_DIR // FONT_DIR
// Where all fonts are kept // Where all fonts are kept
@ -111,9 +105,8 @@ struct FONT_SIZE {
const char* _name; const char* _name;
const size_t _size; const size_t _size;
}; };
static const FONT_SIZE FONT_LOCATIONS[] = { extern const FONT_SIZE FONT_LOCATIONS[];
{ "Roboto_Mono/RobotoMono-Medium.ttf", 24 }, extern size_t FONT_LOCATIONS_LENGTH;
};
// CONST_STRINGS // CONST_STRINGS
// All constant strings // All constant strings
@ -121,9 +114,5 @@ struct FONT_SIZE_STRING {
const char* _text; const char* _text;
const FONT_SIZE _font_size; const FONT_SIZE _font_size;
}; };
static const FONT_SIZE_STRING CONST_STRINGS[] = { extern const FONT_SIZE_STRING CONST_STRINGS[];
//Weather strings extern size_t CONST_STRINGS_LENGTH;
{ "Today's Weather", { "Roboto_Mono/RobotoMono-Medium.ttf", 24 } },
{ "Sunny" , { "Roboto_Mono/RobotoMono-Medium.ttf", 24 } },
{ "Rainy" , { "Roboto_Mono/RobotoMono-Medium.ttf", 24 } },
};