summaryrefslogtreecommitdiffstats
path: root/src/Frontend.h
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-07-02 13:59:19 +0200
committer_AG <gennariarmando@outlook.com>2019-07-02 14:36:40 +0200
commit6c693e3bbfe46cb445e4664eb91ef85c811a6240 (patch)
treed088600e9f1a18be005476d7a43a7232ccd1764f /src/Frontend.h
parentMerge pull request #86 from erorcun/erorcun (diff)
downloadre3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.gz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.bz2
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.lz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.xz
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.zst
re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.zip
Diffstat (limited to 'src/Frontend.h')
-rw-r--r--src/Frontend.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Frontend.h b/src/Frontend.h
index dd6464b8..a833254a 100644
--- a/src/Frontend.h
+++ b/src/Frontend.h
@@ -29,7 +29,11 @@
#define MENUSELECT_BOX_MAX 20.5f
#define MENUSELECT_BOX_MIN 17.0f
+#ifndef MID_RADIOICONS
#define MENURADIO_ICON_X 31.5f
+#else
+#define MENURADIO_ICON_X -262.0f
+#endif
#define MENURADIO_ICON_Y 29.5f
#define MENURADIO_ICON_W 60.0f
#define MENURADIO_ICON_H 60.0f
@@ -39,6 +43,8 @@
#define MENUSLIDER_X 306.0f
+#define buf(a) (char*)(a)
+
enum eLanguages
{
LANGUAGE_AMERICAN,
@@ -314,6 +320,7 @@ enum eMenuColumns
enum eMenuRow
{
+ MENUROW_NONE = -1,
MENUROW_0,
MENUROW_1,
MENUROW_2,
@@ -347,7 +354,8 @@ struct tSkinInfo
struct CMenuScreen
{
char m_ScreenName[8];
- int32 m_PreviousPage[3]; // eMenuScreen
+ int32 unk;
+ int32 m_PreviousPage[2]; // eMenuScreen
int32 m_ParentEntry[2]; // eMenuRow
struct CMenuEntry
@@ -417,7 +425,7 @@ public:
int m_nHoverOption;
int m_nCurrScreen;
int m_nCurrOption;
- int m_nCurrentInput;
+ int m_nPrevOption;
int m_nPrevScreen;
int field_558;
int m_nCurrSaveSlot;
@@ -443,6 +451,8 @@ public:
static int8 &m_bFrontEnd_ReloadObrTxtGxt;
static int32 &m_PrefsMusicVolume;
static int32 &m_PrefsSfxVolume;
+ static uint8 *m_PrefsSkinFile;
+
static bool &m_bStartUpFrontEndRequested;
static bool &m_bShutDownFrontEndRequested;
static bool &m_PrefsAllowNastyGame;
@@ -452,6 +462,7 @@ public:
static void CentreMousePointer();
void CheckCodesForControls(int, int);
bool CheckHover(int x1, int x2, int y1, int y2);
+ void CheckSliderMovement(int);
int CostructStatLine(int);
void DisplayHelperText();
float DisplaySlider(float, float, float, float, float, float);
@@ -489,6 +500,12 @@ public:
void SwitchMenuOnAndOff();
void UnloadTextures();
void WaitForUserCD();
+
+ // New content:
+ uint8 GetNumberOfMenuOptions();
+ void SwitchToNewScreen(int8 screen);
+ void SetDefaultPreferences(int8 screen);
+
};
static_assert(sizeof(CMenuManager) == 0x564, "CMenuManager: error");