Allow levels to select a font via XML, show correct font in levels list

There still needs to be a menu for selecting a font, but it can now be
loaded and saved correctly in the XML!
This commit is contained in:
Dav999-v authored and Misa Elizabeth Kai committed 2023-02-13 23:27:00 -08:00
1 parent 8d5e3b1a8a
commit 7db0e73109
6 files changed
+51 -9

No files matched your search

+6
View File
@@ -63,6 +63,10 @@ struct LevelMetaData
* was stored in this struct (for the levels list) */
bool title_is_gettext;
bool creator_is_gettext;
/* This is for the metadata in the levels list,
* so it will only be a main font (no custom ones). */
uint8_t level_main_font_idx;
};
struct CliPlaytestArgs
@@ -158,6 +162,8 @@ public:
int levmusic;
int mapwidth, mapheight; //Actual width and height of stage
std::string level_font_name;
int version;
SDL_Color getonewaycol(int rx, int ry);