PShell_DefaultText and PShell_NormalText

This commit is contained in:
krystalgamer 2024-06-02 17:36:53 +02:00
parent 81927d1a1f
commit f2c438ef8c
4 changed files with 32 additions and 0 deletions

View File

@ -67,6 +67,17 @@ void Mess_ClearSimpleMessageList(void)
void DeleteSimpleMessage(SimpleMessage*)
{}
// @TODO
void Mess_SetRGB(unsigned char, unsigned char, unsigned char, int)
{}
// @TODO
void Mess_SetCurrentFont(char *)
{}
void validate_SimpleMessage(void)
{
}

2
mess.h
View File

@ -11,10 +11,12 @@ struct SimpleMessage
EXPORT void Mess_SetTextJustify(unsigned char);
EXPORT void Mess_SetScale(int);
EXPORT void Mess_SetRGB(unsigned char, unsigned char, unsigned char, int);
EXPORT void Mess_SetRGBBottom(unsigned char, unsigned char, unsigned char);
EXPORT char* Mess_GetCurrentFont(void);
EXPORT void Mess_UnloadFont(void);
EXPORT int Mess_TextHeight(char *);
EXPORT void Mess_SetCurrentFont(char *);
EXPORT void Mess_ClearSimpleMessageList(void);
EXPORT void DeleteSimpleMessage(SimpleMessage*);

View File

@ -1,4 +1,5 @@
#include "pshell.h"
#include "mess.h"
EXPORT int __cdecl PShell_DrawMenuBox(int, int, int, int, int, int, int, int){
@ -135,3 +136,19 @@ void PShell_BigCheat(void)
}
CExpandingBox::~CExpandingBox(){}
// @Ok
void PShell_NormalFont(void)
{
Mess_SetScale(256);
Mess_SetCurrentFont("sp_fnt00.fnt");
}
// @Ok
void PShell_DefaultText(void)
{
PShell_NormalFont();
Mess_SetTextJustify(0);
Mess_SetRGB(0x80, 0x80, 0x80, 0);
Mess_SetRGBBottom(0x45, 60, 107);
}

View File

@ -30,5 +30,7 @@ public:
EXPORT int PShell_GetNumCostumePSXs(void);
EXPORT void PShell_BigCheat(void);
EXPORT void PShell_NormalFont(void);
EXPORT void PShell_DefaultText(void);
#endif