Skip to content

Commit

Permalink
add a keybind for block search and update bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Feb 25, 2025
1 parent 73b2913 commit 1cd4bd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/schema/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void fetch() {
log("The mod is up to date");
else {
log("The mod is outdated");
ui.showCustomConfirm("@updater.name", bundle.format("updater.info", mod.meta.version, latest), "@mods.browser.reinstall", "@ok", Updater::update, () -> {});
ui.showCustomConfirm("@update.name", bundle.format("update.info", mod.meta.version, latest), "@mods.browser.reinstall", "@ok", Updater::update, () -> {});
}

}, Main::err);
Expand Down
1 change: 1 addition & 0 deletions src/java/schema/input/Keybind.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public enum Keybind {
select(0, KeyCode.mouseLeft),
deselect(0, KeyCode.q),
hexblock(3, KeyCode.q),
srcblock(3, KeyCode.e),
pause_bd(0, KeyCode.e),
clear_bd(0, KeyCode.c),
drop(3, KeyCode.mouseMiddle),
Expand Down
8 changes: 8 additions & 0 deletions src/resources/bundles/bundle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
update.name = [red]\u26A0[] Schema is outdated!
update.info = Your version of the mod is [accent]outdated[].\nThis annoying dialog can be turned off in settings.\n\n[gray]The current version is v{0} while the latest is v{1}[]

# dialogs

keybind.name = < Keybinds >
keybind.reset-all = Reset All Keybindings
keybind.reset = Reset
Expand Down Expand Up @@ -25,6 +30,7 @@ keybind.replace = Replace
keybind.select = Select/Shoot
keybind.deselect = Deselect
keybind.hexblock = Choose Block
keybind.srcblock = Search Block
keybind.pause-bd = Pause Building
keybind.clear-bd = Clear Building
keybind.drop = Drop Items From Building
Expand Down Expand Up @@ -59,6 +65,8 @@ keybind.tgl-block-status = Toggle Block Statuses
keybind.tgl-block-health = Toggle Block Health
keybind.tgl-fullscreen = Toggle Fullscreen

# fragments

cmnd.no-units = [accent]< no units under command >
cmnd.clear = [accent]Press {0}\nto clear

Expand Down

0 comments on commit 1cd4bd6

Please sign in to comment.