Skip to content

feat(Action): Send IMC message to mod#11

Merged
boubou19 merged 4 commits into
masterfrom
feature/sendIMC-action
Apr 4, 2026
Merged

feat(Action): Send IMC message to mod#11
boubou19 merged 4 commits into
masterfrom
feature/sendIMC-action

Conversation

@leagris

@leagris leagris commented Mar 28, 2026

Copy link
Copy Markdown

Implements a new action type: sendIMC

Example: a button to open the GTNH-Credits screen

{
  "action": {
    "type": "sendIMC",
    "modid": "gtnhcredits",
    "message": "openCredits"
  }
}

@leagris leagris requested a review from a team March 28, 2026 23:14
@leagris leagris added the Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. label Mar 28, 2026
Implements a new action type: `sendIMC`

Example: a button to open the GTNH-Credits screen

```json
{
  "action": {
    "type": "sendIMC",
    "modid": "gtnhcredits",
    "message": "openCredits"
  }
}
```
@leagris leagris force-pushed the feature/sendIMC-action branch from bc5efc3 to 2e4743a Compare March 28, 2026 23:28
leagris added a commit to GTNewHorizons/GTNH-Credits that referenced this pull request Mar 29, 2026
An Inter-Mod Communication message to open the Credits
allow a simple integration with Custom Main Menu's
`sendIMC` action type.

Requires Custom Main Menu version > 1.13.0
with this feature: GTNewHorizons/Custom-Main-Menu#11
@leagris

leagris commented Mar 29, 2026

Copy link
Copy Markdown
Author

Feature compatible GTNH-Credits: GTNewHorizons/GTNH-Credits#3

leagris added 2 commits March 29, 2026 13:16
Provides a JSON Schema (draft-07) for mainmenu.json, fixing two gaps in
the SchemaStore schema: the alignment field now accepts custom alignment
keys defined in the "alignments" section, and the sendIMC action type is
documented with its required modid and message properties.

The file lives at the repo root and is not bundled in the mod jar.
Reference it from a mainmenu.json with:
  "$schema": "https://raw.githubusercontent.com/GTNewHorizons/Custom-Main-Menu/master/mainmenu.schema.json"
@boubou19 boubou19 merged commit 31fb505 into master Apr 4, 2026
1 check passed
@boubou19 boubou19 deleted the feature/sendIMC-action branch April 4, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants