Closed MelonCode closed 1 year ago
Introduction of Shortcut Key to Open Inventory
A new setting, openInventoryKeybind
, has been added to the ItemSwapperSharedMod
class, providing users a shortcut key option to open the inventory screen. This simplifies access to the inventory for users and enhances usability.
Integration with ViveCraft for Better Compatibility
The creation of a new ViveCraftSupport
class makes the module compatible with ViveCraft, a modification that adapts the game for VR platforms. This includes updates in the SwitchItemOverlay
class and GuiSelectionHandler
class for proper functioning with ViveCraft. Moreover, the ViveCraftSupport
class has been added to the resource pack enhancing the support for VivCraft.
Configuration Option for ViveCraft Compatibility
The addition of vivecraftCompat
property to the Config
class enables users to switch on/off ViveCraft support based on their needs, thereby offering users greater control over their settings.
Localization Entries for ViveCraft New language strings supporting ViveCraft have been added to the language files. Users using ViveCraft will now see properly localized messages, thereby improving their VR gaming experience.
MidnightControls Compatibility Added code to ensure that ViveCraft support is added only when MidnightControls, another modification, is absent. This prevents potential conflicts between the two modifications, and enhances overall stability.
Improvements in Key Binding Registration
Registered the key binding openInventoryKeybind
for enhanced user experience and usability.
Note: Minor alterations in the import statements are also included in this PR.
Greetings. This Pull Request adds basic ViveCraft support by allowing direct input from mouse cursor. It also adds new keybind for opening inventory (unbound to any key by default), as pop-up inventory is often more convinient then usual one in VR, so it allows quick access to it by making action accessible to VR controller
This PR also introduces 1 new option param
vivecraftCompat
that allows to turn direct input off. This option is only visible if ViveCraft is installed. The default value of this option istrue
, however it would not be used unless mod is found.PR also adds following localization keys to all language files
text.itemswapper.vivecraftCompat
- For option item titletext.itemswapper.vivecraftCompat.tooltip
- For option item tooltipkey.itemswapper.openInventory
- For new key bind