Skip to content

Commit

Permalink
v1.1.1 (real)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Mar 24, 2024
2 parents ada8860 + 0f4c232 commit 30c2dc4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,10 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
else { randomString = "Good luck on that stargrinding session!"; }
}
#endif
endTextLabel->setString(randomString, true); // set string
endTextLabel->setAlignment(CCTextAlignment::kCCTextAlignmentCenter); // center text

endTextLabel->setString(randomString, true); // set string
endTextLabel->setAlignment(CCTextAlignment::kCCTextAlignmentCenter); // center text

float scale = 0.36f * (228.f / strlen(randomString));
float scale = 0.36f * (228.f / strlen(randomString));
if (strcmp("BELIEVE", randomString) == 0) scale = 1.5f;
else if (strcmp("endTextLabel->setString(randomString.c_str(), true);", randomString) == 0) scale = 0.4f;
else if (scale > Mod::get()->getSettingValue<double>("maxScale")) scale = Mod::get()->getSettingValue<double>("maxScale");
Expand All @@ -272,4 +271,4 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
if (strcmp("", randomString) == 0) { endTextLabel->setString(fallbackString, true); } // fallback string
}
}
};
};

0 comments on commit 30c2dc4

Please sign in to comment.