mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 01:15:44 -04:00

Removed the arm7 section Changed the makefile to only use the arm9 stuff Epicpkmn: Fix source/Graphics/GraphicsManager.cpp Co-Authored-By: Pk11 <epicpkmn11@outlook.com> Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
61 lines
1021 B
C++
61 lines
1021 B
C++
#include <nds.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <vector>
|
|
|
|
#include "Graphics/GraphicsManager.h"
|
|
#include "Libraries/gfxconsole.h"
|
|
|
|
#include "hoo06_bmf.h"
|
|
#include "gomics_bmf.h"
|
|
#include "370_bmf.h"
|
|
#include "ver08_bmf.h"
|
|
|
|
#ifndef __TEXTMANAGER_H__
|
|
#define __TEXTMANAGER_H__
|
|
|
|
#define NUMBER_OF_FONTS 4
|
|
|
|
typedef enum {
|
|
FONT_CONSOLE,
|
|
FONT_SCORE,
|
|
FONT_NUMBERING,
|
|
FONT_VERDANA
|
|
} FONT;
|
|
|
|
using namespace std;
|
|
|
|
class TextManager
|
|
{
|
|
public:
|
|
static TextManager& Top() { return sTop; }
|
|
static TextManager& Bottom() { return sBottom; }
|
|
|
|
static void Init();
|
|
|
|
static void Warn(char* format, ...);
|
|
|
|
void SetFont(FONT font);
|
|
|
|
void PrintFloat(char* format, ...);
|
|
void Print(char* format, ...);
|
|
void Clear();
|
|
|
|
void PrintLocate(int x, int y, DrawOrigin origin, char* format, ...);
|
|
|
|
protected:
|
|
gfxPrintConsole* mConsole;
|
|
int mFonts[NUMBER_OF_FONTS];
|
|
|
|
static TextManager sTop, sBottom;
|
|
|
|
static void AddFont(FONT font, const u8* data);
|
|
|
|
private:
|
|
TextManager();
|
|
|
|
};
|
|
|
|
#endif
|
|
|