A tModLoader Terraria mod to add Touch Bar functionality to Terraria for supported MacBook Pros, with the app written in Swift and the mod written in C#.
- Purchase and install Terraria and tModLoader.
- Download and extract
TerraTouchBar.zip
from the releases page. - Copy the extracted application to your desired location (e.g:
/Applications
). - Either download
TerraTouchBar
from tModLoader's Mod Browser, or downloadTerraTouchBar.tmod
from the releases page and copy it to~/Library/Application Support/Terraria/ModLoader/Mods
.
Simply launch Terraria and the TerraTouchBar application. The mod and the application will communicate automatically.
There are currently a few major issues with the project, the main one being that there are vast memory leaks when receiving updates to the inventory. I've taken the liberty of adding a Preview
button to the ContentView
, so that "mockup" updates can be sent. This allows anyone to debug these memory leaks, regardless of whether they own Terraria.
To create the memory leaks (for debugging):
- Launch the Xcode project
- Build and run
- Click the
Preview
button - Leave the application for a few minutes.