[Help] Preferred Method for adding right-click orders?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Alkeena
Posts: 603
Joined: Tue, 15. May 07, 20:43
x4

[Help] Preferred Method for adding right-click orders?

Post by Alkeena »

Hey, I'd like to dip my toe into putting together a few new orders (rather than behaviors) but the proper approach to adding things to the right click menu isn't immediately apparent to me. I tried pulling down the immediate orders mod as a potential reference, but it relies upon a right click api that seems to have been broken since ~3.2.

Has anyone put together a guide/reference/toolset that I might be able to look towards for building new orders?

Thanks!
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2178
Joined: Mon, 23. Nov 15, 18:02

Re: [Help] Preferred Method for adding right-click orders?

Post by j.harshaw »

not sure what the state of UI modding is nowadays, so sorry if this isn't much help, but UI integration for this would require modifying menu_interactmenu.lua

this work by SirNukes looks like it might help: https://www.nexusmods.com/x4foundations/mods/503
haven't worked with it myself, though, so no idea what's involved.
Alkeena
Posts: 603
Joined: Tue, 15. May 07, 20:43
x4

Re: [Help] Preferred Method for adding right-click orders?

Post by Alkeena »

j.harshaw wrote: Tue, 16. Mar 21, 22:45 not sure what the state of UI modding is nowadays, so sorry if this isn't much help, but UI integration for this would require modifying menu_interactmenu.lua

this work by SirNukes looks like it might help: https://www.nexusmods.com/x4foundations/mods/503
haven't worked with it myself, though, so no idea what's involved.
Much obliged!
kuertee
EGOSOFT
EGOSOFT
Posts: 818
Joined: Sun, 14. Dec 03, 13:05
x4

Re: [Help] Preferred Method for adding right-click orders?

Post by kuertee »

yup, i second the use of sir nuke's mod support api

Return to “X4: Foundations - Scripts and Modding”