mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-24 05:46:51 -04:00
convert jpn ui/text changes to runtime checks
This commit is contained in:
@@ -17,6 +17,20 @@ class dSelect_cursor_c;
|
||||
|
||||
class dMenu_Option_c : public dDlst_base_c {
|
||||
public:
|
||||
enum {
|
||||
PROC_ATTEN_e,
|
||||
#if TARGET_PC || VERSION == VERSION_GCN_JPN
|
||||
PROC_RUBY_e,
|
||||
#endif
|
||||
PROC_VIB_e,
|
||||
PROC_SOUND_e,
|
||||
PROC_CHANGE_MOVE_e,
|
||||
PROC_CONFIRM_OPEN_MOVE_e,
|
||||
PROC_CONFIRM_MOVE_MOVE_e,
|
||||
PROC_CONFIRM_SELECT_MOVE_e,
|
||||
PROC_CONFIRM_CLOSE_MOVE_e,
|
||||
};
|
||||
|
||||
dMenu_Option_c(JKRArchive*, STControl*);
|
||||
void _create();
|
||||
void _delete();
|
||||
@@ -31,7 +45,7 @@ public:
|
||||
bool _close();
|
||||
void atten_init();
|
||||
void atten_move();
|
||||
#if VERSION == VERSION_GCN_JPN
|
||||
#if TARGET_PC || VERSION == VERSION_GCN_JPN
|
||||
void ruby_init();
|
||||
void ruby_move();
|
||||
#endif
|
||||
@@ -189,7 +203,7 @@ private:
|
||||
/* 0x3E2 */ u8 field_0x3e2;
|
||||
/* 0x3E3 */ u8 field_0x3e3;
|
||||
/* 0x3E4 */ u8 field_0x3e4;
|
||||
#if VERSION == VERSION_GCN_JPN
|
||||
#if TARGET_PC || VERSION == VERSION_GCN_JPN
|
||||
/* 0x3E5 */ u8 field_0x3e5_JPN;
|
||||
#endif
|
||||
/* 0x3E5 */ u8 field_0x3e5;
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
#include "helpers/endian.h"
|
||||
#include "helpers/string.hpp"
|
||||
|
||||
#if REGION_JPN
|
||||
#if TARGET_PC
|
||||
#define D_MSG_CLASS_PAGE_CNT_MAX 40
|
||||
#define D_MSG_CLASS_CHAR_CNT_MAX 0x210
|
||||
#define D_MSG_CLASS_LINE_MAX 12
|
||||
#elif REGION_JPN
|
||||
#define D_MSG_CLASS_PAGE_CNT_MAX 30
|
||||
#define D_MSG_CLASS_CHAR_CNT_MAX 0x210
|
||||
#define D_MSG_CLASS_LINE_MAX 9
|
||||
|
||||
@@ -8,6 +8,10 @@ public:
|
||||
dMsgUnit_c();
|
||||
void setTag(int, int, TEXT_SPAN, bool);
|
||||
|
||||
#if TARGET_PC
|
||||
void setTag_jpn(int, int, TEXT_SPAN, bool);
|
||||
#endif
|
||||
|
||||
virtual ~dMsgUnit_c();
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public:
|
||||
s32 createStart(u16);
|
||||
bool checkStartAnimeEnd();
|
||||
void playBckAnimation(f32);
|
||||
#if VERSION == VERSION_GCN_JPN
|
||||
#if TARGET_PC || VERSION == VERSION_GCN_JPN
|
||||
bool isLeadByte(int);
|
||||
#endif
|
||||
void drawPikari(int);
|
||||
|
||||
Reference in New Issue
Block a user