Context Menu API
🟡 Updated this yearPreview

🔍 Analysis
- 🏆 #15 of 27 Modders Resources mods in this game by downloads
📋 About This Mod
Context Menu API
An API mod for X4: Foundations that extends the modding surface beyond what SirNukes Mod Support APIs covers, targeting menus and context frame modes not exposed by that API. Currently it supports the Information panel context frames on Map screen, and the Personnel Management, Inventory, Spacesuit Upgrades, and Transaction Log context frames on Player Info screen.
Overview
The mod intercepts createContextFrame on the supported menus and fires a signal before the frame is built. Consumers respond synchronously (within the same MD tick / Lua call) by appending entries via the builder API.
Two integration paths exist, both with equivalent capabilities:
-
[]MD API - for Mission Director scripts. Uses Get_Actions / Add_Action cue signals.[/]
[]Lua API - for Lua UI scripts. Register a callback via cmAPI.registerLuaCallback(fn); the function returns a list of entry tables, which the API renders using the same pipeline as MD entries.[/]
-
[]X4: Foundations: Version 8. 00HF4 or higher and UI Extensions and HUD: Version v8. 0. 4.x or higher by kuertee:
[
] Available on Nexus Mods: UI Extensions and HUD[/]
[]X4: Foundations: Version 9. 00 beta 3 or higher and UI Extensions and HUD: Version v9. 0. 0. 0. 3 or higher by kuertee.[/]
[]Mod Support APIs: Version 1. 95 or higher by SirNukes:
-
[] Available on Steam: SirNukes Mod Support APIs[/]
[
]Available on Nexus Mods: Mod Support APIs[/]
[]Options Helper: Version 1. 0 or higher by Chem O`Dun:
-
[]Available on Steam: Options Helper[/]
[
]Available on Nexus Mods: Options Helper[/]
Installation
-
[]Steam Workshop: Context Menu API[/]
[]Nexus Mods: Context Menu API[/]
Refer to Context Menu API Guide for usage details!
Extension options
Options Menu > Extension options > Context Menu API:
-
[]Debug mode: Controls log verbosity. Options: None (default), Debug, Trace. Use Debug or Trace only when troubleshooting - these write to the game log on every refresh.[/]
Credits
[]Author: Chem O`Dun, on Nexus Mods and Steam Workshop[/]
[]"X4: Foundations" is a trademark of Egosoft.[/]
-
[]Debug mode: Controls log verbosity. Options: None (default), Debug, Trace. Use Debug or Trace only when troubleshooting - these write to the game log on every refresh.[/]
📊 Mod Details
- Game
- X4 Foundations Mods
- Author
- ChemODun
- Version
- 1.00
- Downloads
- 225
- Endorsements
- 6
- Category
- Modders Resources
- Created
- 5/14/2026
- Updated
- 5/14/2026
🔧 How to Install X4foundations Mods
Download from Nexus Mods.
📖 Full step-by-step install guide for X4foundations →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for X4foundations commands, item IDs, and more.
Keep browsing — more X4foundations mods await