mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-30 23:10:14 -05:00
ADD: Debug Warp Restoration + Translations (#2386)
* Finish translations for Map Select * First Pass * TWEAK: Add back Japanese as default to conserve vanilla * TWEAK: replace some array with structs + some translations * TWEAK: loading messages [TODO: proper translations] * TWEAK: forgot to push z64.h for loading messages + translated scene type * TWEAK: spacing * TWEAK: comment * TWEAK: Small german OPT position * TWEAK: german typo * TWEAK: translation to cutsceneLabels * TWEAK: Nabooru's name + Lairs * TWEAK: Updated Cvar to new way to call them * ADD: German * Debug localization * TWEAK: Age They are noted as a flag thingy and not a literal age * Tweak: Frogot the Great Fairy * TWEAK: adressed comment Co-authored-by: Amaro Martínez <xoas@airmail.cc>
This commit is contained in:
parent
cb5faa1ac8
commit
e79bd2587d
@ -1215,18 +1215,45 @@ typedef struct {
|
|||||||
struct SelectContext;
|
struct SelectContext;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* 0x00 */ char* name;
|
/* 0x00 */ char* japaneseName;
|
||||||
/* 0x04 */ void (*loadFunc)(struct SelectContext*, s32);
|
/* 0x04 */ char* englishName;
|
||||||
/* 0x08 */ s32 entranceIndex;
|
/* 0x08 */ char* germanName;
|
||||||
} SceneSelectEntry; // size = 0xC
|
/* 0x0C */ char* frenchName;
|
||||||
|
/* 0x10 */ void (*loadFunc)(struct SelectContext*, s32);
|
||||||
|
/* 0x14 */ s32 entranceIndex;
|
||||||
|
} SceneSelectEntry; // size = 0x18
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* */ char* name;
|
/* */ char* japaneseAge;
|
||||||
|
/* */ char* englishAge;
|
||||||
|
/* */ char* germanAge;
|
||||||
|
/* */ char* frenchAge;
|
||||||
|
} SceneSelectAgeLabels;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* */ char* japaneseMessage;
|
||||||
|
/* */ char* englishMessage;
|
||||||
|
/* */ char* germanMessage;
|
||||||
|
/* */ char* frenchMessage;
|
||||||
|
} SceneSelectLoadingMessages;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* */ char* englishAge;
|
||||||
|
/* */ char* germanAge;
|
||||||
|
/* */ char* frenchAge;
|
||||||
|
} BetterSceneSelectAgeLabels;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* */ char* englishName;
|
||||||
|
/* */ char* germanName;
|
||||||
|
/* */ char* frenchName;
|
||||||
/* */ s32 entranceIndex;
|
/* */ s32 entranceIndex;
|
||||||
} BetterSceneSelectEntrancePair;
|
} BetterSceneSelectEntrancePair;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* */ char* name;
|
/* */ char* englishName;
|
||||||
|
/* */ char* germanName;
|
||||||
|
/* */ char* frenchName;
|
||||||
/* */ void (*loadFunc)(struct SelectContext*, s32);
|
/* */ void (*loadFunc)(struct SelectContext*, s32);
|
||||||
/* */ s32 count;
|
/* */ s32 count;
|
||||||
/* */ BetterSceneSelectEntrancePair entrancePairs[18];
|
/* */ BetterSceneSelectEntrancePair entrancePairs[18];
|
||||||
|
@ -22,6 +22,7 @@ void BootCommands_Init()
|
|||||||
{
|
{
|
||||||
CVarRegisterInteger("gDebugEnabled", 0);
|
CVarRegisterInteger("gDebugEnabled", 0);
|
||||||
CVarRegisterInteger("gLanguages", LANGUAGE_ENG);
|
CVarRegisterInteger("gLanguages", LANGUAGE_ENG);
|
||||||
|
CVarRegisterInteger("gDebugWarpScreenTranslation", 1);
|
||||||
CVarRegisterInteger("gInvertYAxis", 1);
|
CVarRegisterInteger("gInvertYAxis", 1);
|
||||||
CVarSetInteger("gRandoGenerating", 0); // Clear when a crash happened during rando seed generation
|
CVarSetInteger("gRandoGenerating", 0); // Clear when a crash happened during rando seed generation
|
||||||
#if defined(__SWITCH__) || defined(__WIIU__)
|
#if defined(__SWITCH__) || defined(__WIIU__)
|
||||||
|
@ -1121,6 +1121,8 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::Tooltip("Hides the game version and build details in the boot logo start screen");
|
UIWidgets::Tooltip("Hides the game version and build details in the boot logo start screen");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Better Debug Warp Screen", "gBetterDebugWarpScreen", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Better Debug Warp Screen", "gBetterDebugWarpScreen", true, false);
|
||||||
UIWidgets::Tooltip("Optimized debug warp screen, with the added ability to chose entrances and time of day");
|
UIWidgets::Tooltip("Optimized debug warp screen, with the added ability to chose entrances and time of day");
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("Debug Warp Screen Translation", "gDebugWarpScreenTranslation", true, false);
|
||||||
|
UIWidgets::Tooltip("Translate the Debug Warp Screen based on the game language");
|
||||||
UIWidgets::PaddedSeparator();
|
UIWidgets::PaddedSeparator();
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(12.0f, 6.0f));
|
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(12.0f, 6.0f));
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0,0));
|
ImGui::PushStyleVar(ImGuiStyleVar_ButtonTextAlign, ImVec2(0,0));
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user