Use standard tip IDs in common app

This commit is contained in:
notmatthewbeshay 2026-03-11 01:56:50 +11:00
parent c8150b1338
commit 64322c07a3
3 changed files with 6 additions and 6 deletions

View file

@ -144,7 +144,7 @@ XuiActionParam;
typedef struct typedef struct
{ {
int iSortValue; int iSortValue;
UINT uiStringID; int uiStringID;
} }
TIPSTRUCT; TIPSTRUCT;

View file

@ -5868,7 +5868,7 @@ void CMinecraftApp::InitialiseTips()
{ {
// We'll randomise the tips at start up based on their priority // We'll randomise the tips at start up based on their priority
ZeroMemory(m_TipIDA,sizeof(UINT)*MAX_TIPS_GAMETIP+MAX_TIPS_TRIVIATIP); ZeroMemory(m_TipIDA, sizeof(m_TipIDA));
// Make the first tip tell you that you can play splitscreen in HD modes if you are in SD // Make the first tip tell you that you can play splitscreen in HD modes if you are in SD
if(!RenderManager.IsHiDef()) if(!RenderManager.IsHiDef())
@ -5932,7 +5932,7 @@ void CMinecraftApp::InitialiseTips()
m_uiCurrentTip=0; m_uiCurrentTip=0;
} }
UINT CMinecraftApp::GetNextTip() int CMinecraftApp::GetNextTip()
{ {
static bool bShowSkinDLCTip=true; static bool bShowSkinDLCTip=true;
// don't display the DLC tip in the trial game // don't display the DLC tip in the trial game

View file

@ -549,7 +549,7 @@ protected:
static Random *TipRandom; static Random *TipRandom;
public: public:
void InitialiseTips(); void InitialiseTips();
UINT GetNextTip(); int GetNextTip();
int GetHTMLColour(eMinecraftColour colour); int GetHTMLColour(eMinecraftColour colour);
int GetHTMLColor(eMinecraftColour colour) { return GetHTMLColour(colour); } int GetHTMLColor(eMinecraftColour colour) { return GetHTMLColour(colour); }
int GetHTMLFontSize(EHTMLFontSize size); int GetHTMLFontSize(EHTMLFontSize size);
@ -565,8 +565,8 @@ public:
static void ExitGameFromRemoteSave( void *lpParameter ); static void ExitGameFromRemoteSave( void *lpParameter );
static int ExitGameFromRemoteSaveDialogReturned(void *pParam,int iPad,C4JStorage::EMessageResult result); static int ExitGameFromRemoteSaveDialogReturned(void *pParam,int iPad,C4JStorage::EMessageResult result);
private: private:
UINT m_TipIDA[MAX_TIPS_GAMETIP+MAX_TIPS_TRIVIATIP]; int m_TipIDA[MAX_TIPS_GAMETIP+MAX_TIPS_TRIVIATIP];
UINT m_uiCurrentTip; unsigned int m_uiCurrentTip;
static int TipsSortFunction(const void* a, const void* b); static int TipsSortFunction(const void* a, const void* b);
// XML // XML