Atony 9cc1a10480 Merge pull request #122 from All-Of-Us-Mods/dev
## Additions:
- Added the ability to map multiple translation IDs to a single shared string using `@ref:[translation id]` to reduce duplication.
- Added a new `ParseXmlFile` overload to accept a `Stream` instead of a `string`.
- Added a consistent way to add a localization prefix to all colors in a class.
- `IModdedOptionList` now allows typed iteration (PR #114)
## Improvements:
- Option property patches are generic in order to make option value handling faster.
- Improved iterations and allocations within the localization system for efficiency.
## Bugfixes:
- Fixed overlapping "Role" and "Game" settings buttons on the main options page (PR #121)
- Fixed match info guide crashing on mobile.
- Fix UI masking when using a CustomPhoneMenu within a meeting.
- Fixed certain `ModdedOption` types not being listed when getting options for the match info guide.
- Fixed local settings scroller being cut too early, hiding options as a result. (PR #115)
- Removed possibility of creating a new RoleManager instance when getting the intro sound of a base game role.
2026-11-15 22:08:45 -06:00
2026-09-06 09:54:01 -04:00
2026-09-13 18:40:37 -04:00
2026-08-14 06:57:19 -04:00
2024-05-13 17:06:13 -04:00
2026-09-06 07:03:31 -04:00
2026-09-29 20:55:42 -05:00
2024-08-27 18:23:54 -04:00
2026-11-15 21:54:12 -06:00
2024-08-23 11:59:42 -04:00
2025-10-14 14:06:43 -04:00
2026-09-06 07:03:31 -04:00

[English] | 简体中文

Starlight badge

This mod is not affiliated with Among Us or Innersloth LLC, and the content contained therein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC.

Mira API

A thorough, but simple, Among Us modding API and utility library that covers:

  • Roles
  • Options
  • Modifiers
  • Buttons
  • Custom Colors
  • Events
  • Voting
  • Assets
  • Keybinds
  • Local Settings
  • Custom Game Over Conditions
  • Compatibility
  • Game Modes (coming soon)

Mira API strives to be comprehensive, yet straightforward, while also using as many base game elements as possible. The result is a less intrusive, better modding API that covers general use cases.

Join the Discord for support and to stay updated on the latest releases

Usage

To start using Mira API, you need to:

  1. Add a reference to Mira API either through a DLL, project reference, or NuGet package.
  2. Add a BepInDependency on your plugin class like this: [BepInDependency(MiraApiPlugin.Id)]
  3. Implement the IMiraPlugin interface on your plugin class.

Mira API also depends on Reactor to function properly! Remember to include it as a reference and BepInDependency!

For a full example, see this file.

It is highly recommended to follow this project structure when using Mira API to keep your code clean and organized. You can also view the Example Mod in this repository for some guidance.

MyMiraMod/
├── Buttons/
│   └── MyCoolButton.cs
├── Options/
│   ├── Roles/
│   │   └── CoolCustomRoleOptions.cs
│   └── MainOptionGroup.cs
├── Patches/
│   ├── Roles/
│   │   └── CoolCustomRole/
│   │       ├── PlayerControlPatches.cs
│   │       └── ExileControllerPatches.cs
│   └── General/
│       └── HudManagerPatches.cs
├── Resources/
│   ├── CoolButton.png
│   └── myAssets-win-x86.bundle
├── Roles/
│   └── CoolCustomRole.cs
├── MyMiraModPlugin.cs
└── MyModAssets.cs

Documentation

Full documentation for every Mira API feature is available on the wiki:

Languages
C# 99.9%
Smalltalk 0.1%