Font, Softer Breast (#19)

* add breast parameter editer

* add pre-config, add scale set

* support disable replace font
This commit is contained in:
chinosk
2024-06-15 14:21:07 -05:00
committed by GitHub
parent ca0e6e6a9a
commit f5a88a9127
10 changed files with 975 additions and 234 deletions

View File

@@ -7,6 +7,7 @@ namespace GakumasLocal::Config {
bool dbgMode = false;
bool enabled = true;
bool replaceFont = true;
bool forceExportResource = true;
bool textTest = false;
int gameOrientation = 0;
@@ -27,6 +28,19 @@ namespace GakumasLocal::Config {
int reflectionQualityLevel = 4;
int lodQualityLevel = 4;
bool enableBreastParam = false;
int bUseLimit = 1;
float bDamping = 0.33f;
float bStiffness = 0.08f;
float bSpring = 1.0f;
float bPendulum = 0.055f;
float bPendulumRange = 0.15f;
float bAverage = 0.20f;
float bRootWeight = 0.5f;
bool bUseArmCorrection = true;
bool bUseScale = false;
float bScale = 1.0f;
void LoadConfig(const std::string& configStr) {
try {
const auto config = nlohmann::json::parse(configStr);
@@ -35,6 +49,7 @@ namespace GakumasLocal::Config {
GetConfigItem(dbgMode);
GetConfigItem(enabled);
GetConfigItem(replaceFont);
GetConfigItem(forceExportResource);
GetConfigItem(gameOrientation);
GetConfigItem(textTest);
@@ -52,6 +67,18 @@ namespace GakumasLocal::Config {
GetConfigItem(maxBufferPixel);
GetConfigItem(reflectionQualityLevel);
GetConfigItem(lodQualityLevel);
GetConfigItem(enableBreastParam);
GetConfigItem(bUseLimit);
GetConfigItem(bDamping);
GetConfigItem(bStiffness);
GetConfigItem(bSpring);
GetConfigItem(bPendulum);
GetConfigItem(bPendulumRange);
GetConfigItem(bAverage);
GetConfigItem(bRootWeight);
GetConfigItem(bUseArmCorrection);
GetConfigItem(bUseScale);
GetConfigItem(bScale);
}
catch (std::exception& e) {