mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Increase max replay name length from 32 to 128
This commit is contained in:
1 parent
907d981877
commit
e15d40ff0f
3 files changed
+3
No files matched your search
@@ -93,6 +93,7 @@ public class CombineReplayScreen extends Screen {
|
||||
rowHelper.addChild(new BottomTextWidget(204, 10, Component.literal("New Replay Name"), this.font).alignLeft(), 2);
|
||||
|
||||
EditBox replayNameEditBox = new EditBox(this.font, 0, 0, 204, 20, Component.literal(this.newReplayName));
|
||||
replayNameEditBox.setMaxLength(128);
|
||||
replayNameEditBox.setValue(this.newReplayName);
|
||||
replayNameEditBox.setResponder(string -> this.newReplayName = string);
|
||||
rowHelper.addChild(replayNameEditBox, 2);
|
||||
|
||||
@@ -57,6 +57,7 @@ public class EditReplayScreen extends Screen {
|
||||
rowHelper.addChild(new BottomTextWidget(204, 10, Component.literal("Replay Name"), this.font).alignLeft(), 2);
|
||||
|
||||
EditBox replayNameEditBox = new EditBox(this.font, 0, 0, 204, 20, Component.literal(this.changedReplayName));
|
||||
replayNameEditBox.setMaxLength(128);
|
||||
replayNameEditBox.setValue(this.changedReplayName);
|
||||
replayNameEditBox.setResponder(this::setReplayName);
|
||||
rowHelper.addChild(replayNameEditBox, 2);
|
||||
|
||||
@@ -63,6 +63,7 @@ public class SaveReplayScreen extends Screen {
|
||||
rowHelper.addChild(new BottomTextWidget(204, 10, Component.literal("Replay Name"), this.font).alignLeft(), 2);
|
||||
|
||||
EditBox replayNameEditBox = new EditBox(this.font, 0, 0, 204, 20, Component.literal(this.replayName));
|
||||
replayNameEditBox.setMaxLength(128);
|
||||
replayNameEditBox.setValue(this.replayName);
|
||||
replayNameEditBox.setResponder(this::setReplayName);
|
||||
rowHelper.addChild(replayNameEditBox, 2);
|
||||
|
||||
Reference in new issue
Block a user