Add Graphics::map_tab()

This function is useful to de-duplicate all the map page names at the
bottom, which are MAP, CREW/SHIP/GRAV, STATS, and SAVE. If selected, it
will surround the text in square brackets and automatically handle the
positioning.

Shamelessly copy-pasted from Dav999's localization branch.
This commit is contained in:
Misa
2020-06-20 18:33:55 -07:00
committed by Ethan Lee
parent 8c9c3d3751
commit aa3c1c8053
2 changed files with 15 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ public:
void printcrewnamedark(int x, int y, int t);
void map_tab(int opt, const std::string& text, bool selected = false);
void Print(int _x, int _y, std::string _s, int r, int g, int b, bool cen = false);
void PrintAlpha(int _x, int _y, std::string _s, int r, int g, int b, int a, bool cen = false);