Skip to content

Commit 7ae145d

Browse files
committed
Rename insert to replace
1 parent d8edf5f commit 7ae145d

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ All features can be turned on or off at will using the config screen.
3737
#### Quick-Action Buttons
3838

3939
- `Copy` all text to internal memory, retaining line-by-line formatting.
40-
- `Insert` copied text, replacing any existing content.
40+
- `Replace` all text with what was previously copied.
4141
- `Erase` all text.
4242
- `Revert` the text to the original state when the sign editor was opened.
4343
- Quick-action buttons can be configured to instantly close the screen when pressed.

common/src/main/java/dev/terminalmc/signtweaks/mixin/MinecraftMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class MinecraftMixin {
3838
)
3939
private void onUseItemOn(CallbackInfo ci, @Local(name = "heldItem") ItemStack heldItem) {
4040
if (heldItem.getItem() instanceof SignItem) {
41-
System.out.println("placed sign");
4241
SignTweaks.signPlaceTime = System.nanoTime();
4342
}
4443
}

common/src/main/java/dev/terminalmc/signtweaks/mixin/gui/AbstractSignEditScreenMixin.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ private GuiEventListener wrapAddDoneButton(
123123
original.call(instance, copyButton);
124124
movingX += buttonWidth + spaceX;
125125

126-
// Insert
127-
Button insertButton =
126+
// Replace
127+
Button replaceButton =
128128
Button.builder(
129-
localized("button", "insert"),
130-
(button) -> signEdit$insertText()
129+
localized("button", "replace"),
130+
(button) -> signEdit$replaceText()
131131
)
132132
.bounds(movingX, movingY, buttonWidth, buttonHeight)
133133
.build();
134-
original.call(instance, insertButton);
134+
original.call(instance, replaceButton);
135135
movingX = baseX + totalWidth - buttonWidth * 2 - spaceX;
136136

137137
// Erase
@@ -198,7 +198,7 @@ private GuiEventListener wrapAddDoneButton(
198198
* Replaces the sign text with {@link SignTweaks#copiedLines}.
199199
*/
200200
@Unique
201-
private void signEdit$insertText() {
201+
private void signEdit$replaceText() {
202202
if (SignTweaks.copiedLines != null) {
203203
System.arraycopy(
204204
SignTweaks.copiedLines,

common/src/main/resources/assets/signtweaks/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
"button.signtweaks.enhancedEditing": "Enhanced Editing",
1111
"button.signtweaks.copy": "Copy",
12-
"button.signtweaks.insert": "Insert",
12+
"button.signtweaks.replace": "Replace",
1313
"button.signtweaks.erase": "Erase",
1414
"button.signtweaks.revert": "Revert",
1515

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
template_version=22
1111

1212
# Mod Version
13-
mod_version=1.2.1
13+
mod_version=2.2.0
1414
# 'STABLE', 'BETA' or 'ALPHA'
1515
mod_version_type=STABLE
1616

0 commit comments

Comments
 (0)