mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-01 07:57:21 -04:00
change default param value for BreakLines
This commit is contained in:
@@ -124,7 +124,7 @@ namespace randomizer::logic::hints {
|
||||
midnaHintText += getTextObject("Midna Hints Required Dungeons Intro Zero Dungeons");
|
||||
}
|
||||
|
||||
midnaHintText.BreakLines(Text::MAX_LINE_WIDTH_NORMAL_TEXTBOX);
|
||||
midnaHintText.BreakLines();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -378,7 +378,7 @@ namespace randomizer {
|
||||
if (!code.empty()) {
|
||||
// Assume worst case for player name width.
|
||||
// 8 chars max * max char width
|
||||
if (code == "<player_name>") {
|
||||
if (code == "<player name>") {
|
||||
curLineWidth += 8 * 21;
|
||||
}
|
||||
i += code.length();
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace randomizer {
|
||||
*/
|
||||
void Replace(const std::string& oldStr, const Text& replacementText, int count = 1);
|
||||
void Replace(const std::string& oldStr, const std::string& replacementText, int count = 1);
|
||||
void BreakLines(int maxLineWidth = MAX_LINE_WIDTH_ITEM_TEXTBOX);
|
||||
void BreakLines(int maxLineWidth = MAX_LINE_WIDTH_NORMAL_TEXTBOX);
|
||||
void Capitalize();
|
||||
bool Empty() const;
|
||||
Text& operator+=(const Text& rhs);
|
||||
|
||||
Reference in New Issue
Block a user