summaryrefslogtreecommitdiffstats
path: root/src/render/Font.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-05 16:05:16 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-05 16:05:16 +0100
commit8224a6a38156ccba7c69b66fab3388463fc727b1 (patch)
treee274d6a8e74d361cc5d5e654f7ca7a1d234f07a8 /src/render/Font.h
parentMerge pull request #795 from withmorten/master (diff)
downloadre3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar.gz
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar.bz2
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar.lz
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar.xz
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.tar.zst
re3-8224a6a38156ccba7c69b66fab3388463fc727b1.zip
Diffstat (limited to 'src/render/Font.h')
-rw-r--r--src/render/Font.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/render/Font.h b/src/render/Font.h
index 51035601..be1eabed 100644
--- a/src/render/Font.h
+++ b/src/render/Font.h
@@ -63,6 +63,31 @@ enum
#define FONT_LOCALE(style) (style)
#endif
+#ifdef BUTTON_ICONS
+enum
+{
+ BUTTON_NONE = -1,
+#if 0 // unused
+ BUTTON_UP,
+ BUTTON_DOWN,
+ BUTTON_LEFT,
+ BUTTON_RIGHT,
+#endif
+ BUTTON_CROSS,
+ BUTTON_CIRCLE,
+ BUTTON_SQUARE,
+ BUTTON_TRIANGLE,
+ BUTTON_L1,
+ BUTTON_L2,
+ BUTTON_L3,
+ BUTTON_R1,
+ BUTTON_R2,
+ BUTTON_R3,
+ MAX_BUTTON_ICONS
+};
+#endif // BUTTON_ICONS
+
+
class CFont
{
#ifdef MORE_LANGUAGES
@@ -77,6 +102,14 @@ public:
static CSprite2d Sprite[MAX_FONTS];
static CFontDetails Details;
+#ifdef BUTTON_ICONS
+ static CSprite2d ButtonSprite[MAX_BUTTON_ICONS];
+ static int PS2Symbol;
+
+ static void DrawButton(float x, float y);
+#endif // BUTTON_ICONS
+
+
static void Initialise(void);
static void Shutdown(void);
static void InitPerFrame(void);