summaryrefslogtreecommitdiffstats
path: root/src/Frontend.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-03 17:35:09 +0200
committerGitHub <noreply@github.com>2019-07-03 17:35:09 +0200
commit92af18c165444080fae8bcd2dc9ea6f439ac0039 (patch)
treec7136d627079976fc976cd7b6d66e7ef46cf79f1 /src/Frontend.h
parentfixed boat rendering (diff)
parentUpdate Frontend. (diff)
downloadre3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.gz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.bz2
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.lz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.xz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.zst
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.zip
Diffstat (limited to '')
-rw-r--r--src/Frontend.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/Frontend.h b/src/Frontend.h
index dd6464b8..9b9377da 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 ASPECT_RATIO_SCALE
#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;
@@ -431,7 +439,6 @@ public:
static int8 &m_PrefsVsync;
static int8 &m_PrefsVsyncDisp;
static int8 &m_PrefsFrameLimiter;
- static int8 &BlurOn;
static int8 &m_PrefsShowSubtitles;
static int8 &m_PrefsSpeakers;
static int8 &m_ControlMethod;
@@ -443,6 +450,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 +461,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);
@@ -485,10 +495,16 @@ public:
void SetHelperText(int text);
void ShutdownJustMenu();
static float StretchX(float);
- static float StretchY(float );
+ static float StretchY(float);
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");