Greetings.
When you right-click a ship on the map you can select "Information" which brings you to one of two sub-tabs, info-list or order-overview, depending on which one was opened before. I want to have a specific new menu entry under "Information" called something like "Orders" to always go to the order-overview sub-tab in the Information Menu.
I extracted 8.cat as these looked like the scripts, and I reckon I have to change the file
"ui\addons\ego_interactmenu\menu_interactmenu.lua"
under the line
"if (not menu.componentOrder) and (not menu.construction) and (not menu.mission) and (not menu.missionoffer) then"
and add
menu.insertLuaAction("orderoverview", true)
I put my mod under "extensions" directory of X4 directory and it shows up in the main menu as "loaded" but no extra menu point in the context menus.
I'm at a loss. Are lua files not allowed or what did I do wrong?
.. just browsed viewtopic.php?f=181&t=403788 and he's having problems too, but it seems he's one step further. I was under the impression if I make the file with the correct folder structure so it shadows the original .lua it will just get taken instead (like the xml stuff), but it seems you gotta add stuff to your content.xml. I'll try that sometime.
[HELP] Add Behaviors Entry in Context Menu
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 716
- Joined: Tue, 20. Jun 06, 02:29
Re: [HELP] Add Behaviors Entry in Context Menu
Have you tried putting it relative to the actual base game rather than being an 'extension'? If you're replacing the LUA file in the game with your own, then maybe it'll work. I'm not sure how having two menu_interactmenu.lua files at once loaded (one as part of the extension, one as part of the base game) would work, but I suspect 'not well'.
Langy the Mutant Dwarf
-
- Posts: 66
- Joined: Sat, 9. Nov 13, 11:31