mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:04:56 +00:00
Implement CCredits, minor text parser fixes
This commit is contained in:
@@ -125,6 +125,11 @@ struct ITweakGui : ITweak {
|
||||
virtual float GetHudLightAttMulConstant() const = 0;
|
||||
virtual float GetHudLightAttMulLinear() const = 0;
|
||||
virtual float GetHudLightAttMulQuadratic() const = 0;
|
||||
virtual std::string_view GetCreditsTable() const = 0;
|
||||
virtual std::string_view GetCreditsFont() const =0;
|
||||
virtual std::string_view GetJapaneseCreditsFont() const=0;
|
||||
virtual const zeus::CColor& GetCreditsTextFontColor() const=0;
|
||||
virtual const zeus::CColor& GetCreditsTextBorderColor() const=0;
|
||||
|
||||
static float FaceReflectionDistanceDebugValueToActualValue(float v) { return 0.015f * v + 0.2f; }
|
||||
static float FaceReflectionHeightDebugValueToActualValue(float v) { return 0.005f * v - 0.05f; }
|
||||
|
||||
@@ -160,9 +160,9 @@ struct CTweakGui final : ITweakGui {
|
||||
Value<float> x2c0_hudLightAttMulQuadratic;
|
||||
Value<atUint32> m_scanSpeedsCount;
|
||||
Vector<float, AT_DNA_COUNT(m_scanSpeedsCount)> x2c4_scanSpeeds;
|
||||
String<-1> x2d0_;
|
||||
String<-1> x2e0_;
|
||||
String<-1> x2f0_;
|
||||
String<-1> x2d0_creditsTable;
|
||||
String<-1> x2e0_creditsFont;
|
||||
String<-1> x2f0_japaneseCreditsFont;
|
||||
DNAColor x300_;
|
||||
DNAColor x304_;
|
||||
Value<float> x308_;
|
||||
@@ -301,6 +301,11 @@ struct CTweakGui final : ITweakGui {
|
||||
float GetHudLightAttMulConstant() const override { return x2b8_hudLightAttMulConstant; }
|
||||
float GetHudLightAttMulLinear() const override { return x2bc_hudLightAttMulLinear; }
|
||||
float GetHudLightAttMulQuadratic() const override { return x2c0_hudLightAttMulQuadratic; }
|
||||
std::string_view GetCreditsTable() const override { return x2d0_creditsTable; }
|
||||
std::string_view GetCreditsFont() const override { return x2e0_creditsFont; }
|
||||
std::string_view GetJapaneseCreditsFont() const override { return x2f0_japaneseCreditsFont; }
|
||||
const zeus::CColor& GetCreditsTextFontColor() const override { return x300_; }
|
||||
const zeus::CColor& GetCreditsTextBorderColor() const override { return x304_; }
|
||||
|
||||
float GetScanSpeed(int idx) const override {
|
||||
if (idx < 0 || size_t(idx) >= x2c4_scanSpeeds.size())
|
||||
|
||||
Reference in New Issue
Block a user