Skip to content

Commit

Permalink
add config screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed Jan 6, 2025
1 parent ed6195d commit 65b48f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@

- add config screen
3 changes: 3 additions & 0 deletions src/main/java/de/mari_023/ae2wtlib/AE2wtlibForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import net.neoforged.neoforge.capabilities.Capabilities;
import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent;
import net.neoforged.neoforge.client.event.ClientTickEvent;
import net.neoforged.neoforge.client.gui.ConfigurationScreen;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
import net.neoforged.neoforge.common.CommonHooks;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent;
Expand All @@ -41,6 +43,7 @@ public AE2wtlibForge(IEventBus modEventBus, ModContainer modContainer) {
CommonHooks.markComponentClassAsValid(ItemStack.class);// TODO figure out if there is a better way
modContainer.registerConfig(ModConfig.Type.COMMON, AE2wtlibConfig.SPEC,
AE2wtlibAPI.MOD_NAME + ".toml");
modContainer.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
modEventBus.addListener((RegisterEvent e) -> {
if (e.getRegistryKey().equals(Registries.MENU)) {
AE2wtlib.registerMenus();
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/assets/ae2wtlib/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@
"key.ae2.wireless_pattern_encoding_terminal": "lɐuᴉɯɹǝ⟘ ƃuᴉpoɔuƎ uɹǝʇʇɐԀ ssǝlǝɹᴉM uǝdO",
"key.ae2.ae2wtlib_restock": "ʞɔoʇsǝᴚ ǝlƃƃo⟘",
"key.ae2.ae2wtlib_magnet": "pɹɐƆ ʇǝuƃɐW ǝlƃƃo⟘",
"key.ae2.ae2wtlib_stow": "ɯǝʇsʎS ƎW oʇuᴉ puɐɥ uᴉ ʞɔɐʇs ʍoʇS"
"key.ae2.ae2wtlib_stow": "ɯǝʇsʎS ƎW oʇuᴉ puɐɥ uᴉ ʞɔɐʇs ʍoʇS",

"ae2wtlib.configuration.magnet_card_range": "ǝƃuɐɹ pɹɐƆ ʇǝuƃɐW"
}
4 changes: 3 additions & 1 deletion src/main/resources/assets/ae2wtlib/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@
"key.ae2.wireless_pattern_encoding_terminal": "Open Wireless Pattern Encoding Terminal",
"key.ae2.ae2wtlib_restock": "Toggle Restock",
"key.ae2.ae2wtlib_magnet": "Toggle Magnet Card",
"key.ae2.ae2wtlib_stow": "Stow stack in hand into ME System"
"key.ae2.ae2wtlib_stow": "Stow stack in hand into ME System",

"ae2wtlib.configuration.magnet_card_range": "Magnet Card Range"
}

0 comments on commit 65b48f0

Please sign in to comment.